UNPKG

@thisismissem/adonisjs-respond-with

Version:

A small plugin for Adonis.js to make responding with different content-types easier.

96 lines (95 loc) 2.74 kB
{ "name": "@thisismissem/adonisjs-respond-with", "description": "A small plugin for Adonis.js to make responding with different content-types easier.", "version": "2.1.1", "engines": { "node": ">=20.6.0" }, "main": "./build/index.js", "type": "module", "files": [ "build/", "build/stubs", "!build/bin", "!build/tests" ], "exports": { ".": "./build/index.js", "./types": "./build/src/types.js", "./provider": "./build/providers/respond_with.js" }, "scripts": { "clean": "del-cli build", "copy:templates": "copyfiles \"stubs/**/*.stub\" build", "check-exports": "attw --pack . --profile esm-only --ignore-rules=cjs-resolves-to-esm", "typecheck": "tsc --noEmit", "lint": "eslint '**/*.ts'", "format": "prettier --ignore-path .gitignore --write .", "quick:test": "node --import=./tsnode.esm.js --enable-source-maps bin/test.ts", "pretest": "npm run lint", "test": "c8 npm run quick:test", "prebuild": "npm run lint && npm run clean", "build": "tsc", "postbuild": "npm run copy:templates", "prettier:write": "prettier --ignore-path .gitignore --write", "version-packages": "changeset version && npm run prettier:write CHANGELOG.md && git add package.json CHANGELOG.md", "release": "npm run build && changeset publish", "prepublishOnly": "npm run build" }, "devDependencies": { "@adonisjs/assembler": "^7.7.0", "@adonisjs/core": "^6.12.0", "@adonisjs/eslint-config": "^2.0.0-beta.7", "@adonisjs/prettier-config": "^1.4.0", "@adonisjs/tsconfig": "^1.4.0", "@arethetypeswrong/cli": "^0.18.1", "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.12", "@japa/assert": "^4.0.1", "@japa/file-system": "^2.3.2", "@japa/runner": "^4.2.0", "@swc/core": "^1.10.15", "@types/node": "^22.13.1", "@types/mime-types": "^2.1.4", "@types/sinon": "^17.0.3", "c8": "^10.1.3", "copyfiles": "^2.4.1", "del-cli": "^6.0.0", "eslint": "^9.20.1", "prettier": "^3.5.0", "sinon": "^20.0.0", "ts-node": "^10.9.2", "typescript": "^5.7.3", "yalc": "^1.0.0-pre.53" }, "peerDependencies": { "@adonisjs/core": "^6.2.0", "mime-types": "^3.0.1" }, "contributors": [ { "name": "Emelia Smith", "url": "https://github.com/thisismissem" } ], "repository": "github:thisismissem/adonisjs-respond-with", "license": "MIT", "keywords": [ "adonisjs", "content-negotiation" ], "prettier": "@adonisjs/prettier-config", "publishConfig": { "access": "public", "tag": "latest" }, "c8": { "reporter": [ "text", "html" ], "exclude": [ "tests/**" ] } }