Skip to content

Commit

Permalink
chore: publish source maps and use tsc for generating types
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 23, 2023
1 parent 703d8dd commit 6565564
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"main": "build/index.js",
"type": "module",
"files": [
"build"
"build",
"!build/bin",
"!build/examples",
"!build/tests"
],
"exports": {
".": "./build/index.js",
Expand All @@ -19,10 +22,10 @@
"test": "cross-env NODE_DEBUG=adonisjs:ace c8 npm run quick:test",
"clean": "del-cli build",
"build:schema": "ts-json-schema-generator --path='src/types.ts' --type='CommandMetaData' --tsconfig='tsconfig.json' --out='schemas/command_metadata_schema.json'",
"copy:files": "copyfiles --up=1 schemas/* build && copyfiles --up=1 stubs/*.stub build",
"copy:files": "copyfiles --up=1 schemas/*.stub build && copyfiles --up=1 stubs/*.stub build",
"precompile": "npm run lint && npm run clean",
"typecheck": "tsc --noEmit",
"compile": "tsup-node",
"compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
"postcompile": "npm run build:schema && npm run copy:files",
"build": "npm run compile",
"release": "np",
Expand Down Expand Up @@ -126,7 +129,8 @@
"outDir": "./build",
"clean": true,
"format": "esm",
"dts": true,
"dts": false,
"sourcemap": true,
"target": "esnext"
}
}

0 comments on commit 6565564

Please sign in to comment.