From c9bd9c5b0790cb3541ffdf7dd1d13bfbf79503c6 Mon Sep 17 00:00:00 2001 From: Luc Gagan Date: Sun, 12 Nov 2023 14:42:25 -0600 Subject: [PATCH] fix: remove tests from dist --- package.json | 6 +++--- tsconfig.build.json | 8 ++++++++ tsconfig.json | 1 - 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 tsconfig.build.json 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