diff --git a/package.json b/package.json index 7bfb7e7..e4ae7d4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,10 @@ "main": "build/index.js", "type": "module", "files": [ - "build" + "build", + "!build/bin", + "!build/examples", + "!build/tests" ], "exports": { ".": "./build/index.js", @@ -19,7 +22,8 @@ "test": "cross-env NODE_DEBUG=adonisjs:env c8 npm run quick:test", "clean": "del-cli build", "typecheck": "tsc --noEmit", - "compile": "npm run lint && npm run clean && tsup-node", + "precompile": "npm run lint && npm run clean", + "compile": "tsup-node && tsc --emitDeclarationOnly --declaration", "build": "npm run compile", "release": "np", "version": "npm run build", @@ -109,7 +113,8 @@ "outDir": "./build", "clean": true, "format": "esm", - "dts": true, + "dts": false, + "sourcemap": true, "target": "esnext" } } diff --git a/test/editor.spec.ts b/tests/editor.spec.ts similarity index 100% rename from test/editor.spec.ts rename to tests/editor.spec.ts diff --git a/test/env.spec.ts b/tests/env.spec.ts similarity index 100% rename from test/env.spec.ts rename to tests/env.spec.ts diff --git a/test/loader.spec.ts b/tests/loader.spec.ts similarity index 100% rename from test/loader.spec.ts rename to tests/loader.spec.ts diff --git a/test/parser.spec.ts b/tests/parser.spec.ts similarity index 100% rename from test/parser.spec.ts rename to tests/parser.spec.ts diff --git a/test/processor.spec.ts b/tests/processor.spec.ts similarity index 100% rename from test/processor.spec.ts rename to tests/processor.spec.ts diff --git a/test/validator.spec.ts b/tests/validator.spec.ts similarity index 100% rename from test/validator.spec.ts rename to tests/validator.spec.ts