|
1 | 1 | { |
2 | 2 | "name": "nmrium", |
3 | 3 | "description": "React component to display and process nuclear magnetic resonance (NMR) spectra.", |
4 | | - "version": "1.3.0", |
| 4 | + "version": "1.4.0", |
5 | 5 | "license": "MIT", |
6 | 6 | "type": "module", |
7 | 7 | "exports": { |
8 | | - ".": "./lib/component/main/index.js" |
| 8 | + ".": { |
| 9 | + "nmrium-internal": "./src/component/main/index.ts", |
| 10 | + "default": "./lib/component/main/index.js" |
| 11 | + } |
9 | 12 | }, |
10 | 13 | "files": [ |
11 | 14 | "lib", |
12 | 15 | "src" |
13 | 16 | ], |
14 | 17 | "scripts": { |
15 | | - "build": "vite build --outDir build", |
16 | | - "cspell": "cspell lint \"**/*.tsx\"", |
17 | | - "postbuild": "rm build/data/cytisine/2d/HMBC_Cytisin_RI+FT.dx && rm build/data/cytisine/2d/HSQC_Cytisin_RI+FT.dx", |
18 | | - "build-cloudflare": "npm run set-version-sha && npm run build-with-profiling && npm run copy-samples-toc", |
19 | | - "build-no-minify": "cross-env NO_MINIFY=true npm run build", |
20 | | - "build-with-profiling": "cross-env WITH_PROFILING=true NO_MINIFY=true npm run build", |
| 18 | + "build": "vite build --outDir build && node --run build-clean", |
| 19 | + "build-clean": "rm build/data/cytisine/2d/HMBC_Cytisin_RI+FT.dx && rm build/data/cytisine/2d/HSQC_Cytisin_RI+FT.dx", |
| 20 | + "build-cloudflare": "node --run set-version-sha && node --run build-with-profiling && node --run copy-samples-toc", |
| 21 | + "build-no-minify": "cross-env NO_MINIFY=true node --run build", |
| 22 | + "build-with-profiling": "cross-env WITH_PROFILING=true NO_MINIFY=true node --run build", |
21 | 23 | "check-types": "tsc --noEmit", |
22 | 24 | "compile": "tsc --project tsconfig.build.json", |
23 | 25 | "copy-samples-toc": "cp src/demo/samples.json build/", |
24 | 26 | "clean-lib": "rimraf lib", |
| 27 | + "cspell": "cspell lint \"**/*.tsx\"", |
25 | 28 | "dev": "vite --host localhost --port 3000 --open", |
26 | 29 | "eslint": "eslint . --cache", |
27 | | - "eslint-fix": "npm run eslint -- --fix", |
| 30 | + "eslint-fix": "node --run eslint -- --fix", |
28 | 31 | "install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start", |
29 | 32 | "knip": "knip", |
30 | 33 | "playwright": "playwright test --ui", |
31 | | - "prepack": "npm run clean-lib && npm run compile", |
32 | | - "prepublishOnly": "npm run set-version-npm", |
| 34 | + "prepack": "node --run clean-lib && node --run compile", |
| 35 | + "prepublishOnly": "node --run set-version-npm", |
33 | 36 | "prettier": "prettier --check src test-e2e", |
34 | 37 | "prettier-write": "prettier --write src test-e2e", |
35 | 38 | "set-version-npm": "VERSION=$(jq .version package.json | tr -d '\"') && echo \"export default { version: 'v$VERSION' };\" > src/versionInfo.ts", |
36 | 39 | "set-version-sha": "SHA=$(git rev-parse HEAD) && echo \"export default { version: 'git-$SHA' };\" > src/versionInfo.ts", |
37 | | - "start": "npm run dev", |
| 40 | + "start": "node --run dev", |
38 | 41 | "stylelint": "stylelint \"**/*.{css,tsx}\"", |
39 | | - "stylelint-fix": "npm run stylelint -- --fix", |
40 | | - "test": "npm run test-only && npm run check-types && npm run eslint && npm run prettier && npm run stylelint && npm run knip && npm run build-no-minify && npm run test-e2e", |
| 42 | + "stylelint-fix": "node --run stylelint -- --fix", |
| 43 | + "test": "node --run test-only && node --run check-types && node --run eslint && node --run prettier && node --run stylelint && node --run knip && node --run build-no-minify && node --run test-e2e", |
41 | 44 | "test-only": "vitest run --coverage", |
42 | 45 | "test-e2e": "playwright test --project chromium", |
43 | 46 | "test-e2e-server": "serve -l tcp://localhost:3000 build" |
|
0 commit comments