diff --git a/package.json b/package.json index 8dbb341..4f012a4 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,9 @@ "main" ] }, - "types": "./dist/src/index.d.ts", + "types": "./dist/index.d.ts", "name": "auto-playwright", - "main": "./dist/src/index.js", + "main": "./dist/index.js", "sideEffects": false, "description": "Automate Playwright tests using ChatGPT.", "repository": { @@ -50,7 +50,7 @@ }, "scripts": { "start": "tsx ./tests/bin/startServer.ts", - "build": "tsc --noEmit false", + "build": "tsc --project tsconfig.build.json", "format": "prettier --write ./src", "lint": "prettier --check ./src && knip", "semantic-release": "semantic-release", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..ca253d1 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "outDir": "dist" + }, + "include": ["src"] +} diff --git a/tsconfig.json b/tsconfig.json index a1a660f..9b3c7d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,6 @@ "noImplicitReturns": true, "noUnusedLocals": true, "noUnusedParameters": false, - "outDir": "dist", "strict": true, "target": "ES2022", "useUnknownInCatchVariables": false