Skip to content

Commit 9309603

Browse files
committed
Fix lerna config and exclude test files from build
- Remove deprecated useWorkspaces option from lerna.json (lerna v8+) - Exclude test files from TypeScript compilation in tsconfig.json - Update .npmignore to exclude test directory and vitest config from npm package This fixes the CI build pipeline error and ensures test files are not included in the compiled output or published package.
1 parent ccdb6c4 commit 9309603

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

lerna.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": true,
4-
"useWorkspaces": true,
54
"version": "0.0.0"
65
}

packages/react-snowfall/.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ node_modules
33
assets
44
demo
55
src/__mocks__
6+
src/test
7+
src/**/*.test.ts
68
src/**/*.test.tsx
9+
vitest.config.ts
710
.babelrc
811
.eslintrc.js
912
.prettierrc.js

packages/react-snowfall/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
"sourceMap": true,
1414
},
1515
"include": ["src"],
16+
"exclude": ["src/test", "**/*.test.ts", "**/*.test.tsx"]
1617
}

0 commit comments

Comments
 (0)