|
18 | 18 | "scripts": { |
19 | 19 | "clean": "rm -rf dist/* || rm -rf lib/**/* || rm -rf src/generated/* || true", |
20 | 20 | "compile": "npm-run-all -s \"generate-icon-src\" -p \"compile:*\" -p \"copy:*\"", |
21 | | - "compile:esm": "tsc -p ./src", |
22 | | - "compile:cjs": "tsc -p ./src -m commonjs --verbatimModuleSyntax false --outDir lib/cjs", |
23 | | - "compile:esnext": "tsc -p ./src -t esnext --outDir lib/esnext", |
| 21 | + "compile:esm": "tsc -p ./src/tsconfig.build.json", |
| 22 | + "compile:cjs": "tsc -p ./src/tsconfig.build.json -m commonjs --verbatimModuleSyntax false --outDir lib/cjs", |
| 23 | + "compile:esnext": "tsc -p ./src/tsconfig.build.json -t esnext --outDir lib/esnext", |
24 | 24 | "compile:css": "sass-compile ./src", |
25 | 25 | "copy:scss": "scripts/copy-scss.sh", |
26 | 26 | "copy:fonts": "scripts/copy-fonts.sh", |
|
33 | 33 | "lint:scss": "sass-lint", |
34 | 34 | "lint:es": "es-lint", |
35 | 35 | "lint-fix": "es-lint --fix && sass-lint --fix", |
36 | | - "test": "run-s test:typeCheck test:iso", |
37 | | - "test:typeCheck": "tsc -p ./test", |
38 | | - "test:iso": "mocha test/isotest.mjs", |
| 36 | + "test": "run-s test:typeCheck test:iso test:vitest:run", |
| 37 | + "test:typeCheck": "tsc -p ./src/tsconfig.test.json", |
| 38 | + "test:iso": "vitest run --config vitest.config.isotest.mts", |
| 39 | + "test:vitest": "vitest", |
| 40 | + "test:vitest:run": "vitest run", |
39 | 41 | "verify": "npm-run-all compile -p dist test lint" |
40 | 42 | }, |
41 | 43 | "dependencies": { |
|
57 | 59 | "@blueprintjs/node-build-scripts": "workspace:^", |
58 | 60 | "@blueprintjs/stylelint-plugin": "workspace:^", |
59 | 61 | "@blueprintjs/test-commons": "workspace:^", |
| 62 | + "@testing-library/react": "catalog:", |
60 | 63 | "@twbs/fantasticon": "^2.7.2", |
| 64 | + "@vitejs/plugin-react": "catalog:", |
61 | 65 | "@types/handlebars": "^4.1.0", |
62 | | - "enzyme": "^3.11.0", |
63 | 66 | "handlebars": "^4.7.8", |
64 | | - "mocha": "^10.2.0", |
| 67 | + "vitest": "catalog:", |
65 | 68 | "npm-run-all": "^4.1.5", |
66 | 69 | "react": "^18.3.1", |
67 | 70 | "react-dom": "^18.3.1", |
|
0 commit comments