Skip to content

Commit 17a9557

Browse files
authored
fix: CJS export issue, CI cleanup (#88)
* fix: remove problematic flag tsup already treeshakes! this flag is causing discrepancies with the CJS build vs types * ci: re-add typechecking
1 parent 6bc59f1 commit 17a9557

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/ci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,4 @@ jobs:
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626

27-
- run: npm ci
28-
- run: npm run build
29-
- run: npm test
27+
- run: npm cit

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
},
2828
"scripts": {
2929
"build": "tsup",
30-
"lint": "eslint . --ext .js,.ts",
30+
"lint": "tsc --noEmit && eslint . --ext .js,.ts",
3131
"prebuild": "rm -rf dist/",
3232
"prepack": "npm run build",
3333
"prepare": "husky install",
34-
"pretest": "npm run build; npm run lint",
34+
"pretest": "npm run lint",
3535
"prettier": "prettier --list-different --write \"./**/**.{js,ts}\"",
36-
"test": "vitest --coverage"
36+
"test": "vitest run --coverage"
3737
},
3838
"devDependencies": {
3939
"@commitlint/cli": "^17.6.5",

tsup.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ export default defineConfig((options: Options) => ({
1616
silent: !options.watch,
1717
sourcemap: true,
1818
splitting: true,
19-
treeshake: true,
2019
}));

0 commit comments

Comments
 (0)