|
2 | 2 | "name": "raman-spectrum", |
3 | 3 | "version": "0.9.0", |
4 | 4 | "description": "", |
5 | | - "main": "lib/index.js", |
6 | | - "module": "src/index.js", |
| 5 | + "type": "module", |
| 6 | + "exports": "./src/index.js", |
7 | 7 | "files": [ |
8 | | - "lib", |
9 | 8 | "src" |
10 | 9 | ], |
11 | 10 | "scripts": { |
|
15 | 14 | "eslint-fix": "npm run eslint -- --fix", |
16 | 15 | "prettier": "prettier --check src", |
17 | 16 | "prettier-write": "prettier --write src", |
18 | | - "prepack": "rollup -c", |
19 | | - "test": "npm run test-coverage && npm run eslint", |
20 | | - "test-coverage": "jest --coverage", |
21 | | - "test-only": "jest" |
| 17 | + "test": "npm run test-only && npm run eslint && npm run prettier && test-import", |
| 18 | + "test-only": "vitest run --coverage", |
| 19 | + "test-import": "node -e \"import('file://' + process.cwd() + '/src/index.js').then(console.log)\"" |
22 | 20 | }, |
23 | 21 | "repository": { |
24 | 22 | "type": "git", |
|
31 | 29 | "url": "https://github.com/cheminfo/raman-spectrum/issues" |
32 | 30 | }, |
33 | 31 | "homepage": "https://github.com/cheminfo/raman-spectrum#readme", |
34 | | - "jest": { |
35 | | - "testEnvironment": "node" |
36 | | - }, |
37 | 32 | "devDependencies": { |
38 | 33 | "@babel/plugin-transform-modules-commonjs": "^7.27.1", |
39 | | - "@types/jest": "^30.0.0", |
40 | 34 | "cheminfo-build": "^1.2.1", |
41 | 35 | "codecov": "^3.8.2", |
42 | 36 | "eslint": "^9.32.0", |
43 | 37 | "eslint-config-cheminfo": "^15.0.1", |
44 | 38 | "esm": "^3.2.25", |
45 | | - "jest": "^30.0.5", |
46 | 39 | "jest-matcher-deep-close-to": "^3.0.2", |
47 | 40 | "prettier": "^3.6.2", |
48 | | - "rollup": "^4.46.2" |
| 41 | + "vitest": "^3.2.4" |
49 | 42 | }, |
50 | 43 | "dependencies": { |
51 | 44 | "common-spectrum": "3.0.0", |
|
0 commit comments