diff options
| author | Li Zhineng <[email protected]> | 2025-07-24 10:00:19 +0800 |
|---|---|---|
| committer | Li Zhineng <[email protected]> | 2025-07-24 10:00:19 +0800 |
| commit | 58b7c54a209a6eb42d5f7dfc64d729e90907da81 (patch) | |
| tree | e2925b776b20bf8b1fae17160d649d8c9685600f | |
| parent | 85e04f4bd25d65aaba7067440d80744964507ae9 (diff) | |
| download | wave-58b7c54a209a6eb42d5f7dfc64d729e90907da81.tar.gz wave-58b7c54a209a6eb42d5f7dfc64d729e90907da81.zip | |
separate tsconfig for IDE support and build
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | tsconfig.build.json | 4 | ||||
| -rw-r--r-- | tsconfig.json | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/package.json b/package.json index ac8c408..cae17aa 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { - "build": "tsc", + "build": "tsc --project tsconfig.build.json", "test": "jest", "test:watch": "jest --watch", "test:types": "tsd --files tests/**/*.test-d.ts", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..b90fc83 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["src"] +} diff --git a/tsconfig.json b/tsconfig.json index 6b51bae..9a1c0e7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,5 @@ "./node_modules/miniprogram-api-typings" ] }, - "include": ["src"], - "exclude": ["*.test.ts", "*.test-d.ts"] + "include": ["src", "tests"] } |
