summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zhineng <[email protected]>2025-07-24 10:00:19 +0800
committerLi Zhineng <[email protected]>2025-07-24 10:00:19 +0800
commit58b7c54a209a6eb42d5f7dfc64d729e90907da81 (patch)
treee2925b776b20bf8b1fae17160d649d8c9685600f
parent85e04f4bd25d65aaba7067440d80744964507ae9 (diff)
downloadwave-58b7c54a209a6eb42d5f7dfc64d729e90907da81.tar.gz
wave-58b7c54a209a6eb42d5f7dfc64d729e90907da81.zip
separate tsconfig for IDE support and build
-rw-r--r--package.json2
-rw-r--r--tsconfig.build.json4
-rw-r--r--tsconfig.json3
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"]
}