|
1 | 1 | { |
2 | 2 | "name": "ml-spectra-processing", |
3 | 3 | "version": "14.16.1", |
| 4 | + "license": "MIT", |
4 | 5 | "description": "Various method to process spectra", |
5 | | - "main": "./lib/index.js", |
6 | | - "module": "./lib-esm/index.js", |
7 | | - "types": "./lib/index.d.ts", |
| 6 | + "keywords": [], |
| 7 | + "author": "Luc Patiny", |
| 8 | + "type": "module", |
8 | 9 | "exports": { |
9 | | - ".": { |
10 | | - "node": "./lib/index.js", |
11 | | - "default": "./lib-esm/index.js" |
12 | | - }, |
13 | | - "./matrix": { |
14 | | - "node": "./lib/matrix/index.js", |
15 | | - "default": "./lib-esm/matrix/index.js" |
16 | | - }, |
17 | | - "./reim": { |
18 | | - "node": "./lib/reim/index.js", |
19 | | - "default": "./lib-esm/reim/index.js" |
20 | | - }, |
21 | | - "./utils": { |
22 | | - "node": "./lib/utils/index.js", |
23 | | - "default": "./lib-esm/utils/index.js" |
24 | | - }, |
25 | | - "./x": { |
26 | | - "node": "./lib/x/index.js", |
27 | | - "default": "./lib-esm/x/index.js" |
28 | | - }, |
29 | | - "./xreim": { |
30 | | - "node": "./lib/xreim/index.js", |
31 | | - "default": "./lib-esm/xreim/index.js" |
32 | | - }, |
33 | | - "./xy": { |
34 | | - "node": "./lib/xy/index.js", |
35 | | - "default": "./lib-esm/xy/index.js" |
36 | | - }, |
37 | | - "./xy2": { |
38 | | - "node": "./lib/xy2/index.js", |
39 | | - "default": "./lib-esm/xy2/index.js" |
40 | | - }, |
41 | | - "./xyArray": { |
42 | | - "node": "./lib/xyArray/index.js", |
43 | | - "default": "./lib-esm/xyArray/index.js" |
44 | | - }, |
45 | | - "./xyObject": { |
46 | | - "node": "./lib/xyObject/index.js", |
47 | | - "default": "./lib-esm/xyObject/index.js" |
48 | | - }, |
49 | | - "./zones": { |
50 | | - "node": "./lib/zones/index.js", |
51 | | - "default": "./lib-esm/zones/index.js" |
52 | | - } |
| 10 | + ".": "./lib/index.js", |
| 11 | + "./matrix": "./lib/matrix/index.js", |
| 12 | + "./reim": "./lib/reim/index.js", |
| 13 | + "./utils": "./lib/utils/index.js", |
| 14 | + "./x": "./lib/x/index.js", |
| 15 | + "./xreim": "./lib/xreim/index.js", |
| 16 | + "./xy": "./lib/xy/index.js", |
| 17 | + "./xy2": "./lib/xy2/index.js", |
| 18 | + "./xyArray": "./lib/xyArray/index.js", |
| 19 | + "./xyObject": "./lib/xyObject/index.js", |
| 20 | + "./zones": "./lib/zones/index.js" |
53 | 21 | }, |
54 | 22 | "files": [ |
55 | | - "src", |
56 | 23 | "lib", |
57 | | - "lib-esm" |
| 24 | + "src" |
58 | 25 | ], |
59 | 26 | "scripts": { |
60 | | - "build": "npm run tsc-esm && cheminfo-build --entry lib-esm/index.js --root SpectraProcessing", |
| 27 | + "build": "npm run tsc && cheminfo-build --entry lib/index.js --root SpectraProcessing", |
61 | 28 | "check-types": "tsc --noEmit", |
62 | | - "clean": "rimraf lib lib-esm", |
63 | | - "eslint": "eslint src", |
64 | | - "eslint-fix": "npm run eslint -- --fix", |
65 | | - "jscpd": "jscpd -l 10 -i \"**/__tests__/**\" -t 1 src", |
| 29 | + "clean": "rimraf coverage dist lib", |
| 30 | + "eslint": "eslint . --cache", |
| 31 | + "eslint-fix": "eslint . --cache --fix", |
66 | 32 | "prepack": "npm run tsc", |
67 | | - "prettier": "prettier --check src", |
68 | | - "prettier-write": "prettier --write src", |
69 | | - "test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types", |
| 33 | + "prettier": "prettier --check .", |
| 34 | + "prettier-write": "prettier --write .", |
| 35 | + "test": "npm run test-only && npm run check-types && npm run eslint && npm run prettier", |
70 | 36 | "test-only": "vitest run --coverage", |
71 | | - "tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm", |
72 | | - "tsc-cjs": "tsc --project tsconfig.cjs.json", |
73 | | - "tsc-esm": "tsc --project tsconfig.esm.json" |
| 37 | + "tsc": "npm run clean && npm run tsc-build", |
| 38 | + "tsc-build": "tsc --project tsconfig.build.json" |
74 | 39 | }, |
75 | | - "repository": { |
76 | | - "type": "git", |
77 | | - "url": "git+https://github.com/mljs/spectra-processing.git" |
78 | | - }, |
79 | | - "keywords": [], |
80 | | - "author": "Luc Patiny", |
81 | | - "license": "MIT", |
82 | | - "bugs": { |
83 | | - "url": "https://github.com/mljs/spectra-processing/issues" |
| 40 | + "dependencies": { |
| 41 | + "binary-search": "^1.3.6", |
| 42 | + "cheminfo-types": "^1.8.1", |
| 43 | + "fft.js": "^4.0.4", |
| 44 | + "is-any-array": "^2.0.1", |
| 45 | + "ml-matrix": "^6.12.1", |
| 46 | + "ml-xsadd": "^3.0.1" |
84 | 47 | }, |
85 | | - "homepage": "https://github.com/mljs/spectra-processing#readme", |
86 | 48 | "devDependencies": { |
87 | | - "@types/node": "^24.2.0", |
| 49 | + "@types/node": "^24.3.0", |
88 | 50 | "@vitest/coverage-v8": "^3.2.4", |
| 51 | + "@zakodium/tsconfig": "^1.0.2", |
89 | 52 | "cheminfo-build": "^1.2.1", |
90 | | - "eslint": "^9.32.0", |
| 53 | + "eslint": "^9.33.0", |
91 | 54 | "eslint-config-cheminfo-typescript": "^19.0.0", |
92 | 55 | "jest-matcher-deep-close-to": "^3.0.2", |
93 | | - "jscpd": "^4.0.5", |
94 | | - "ml-spectra-fitting": "^4.2.4", |
| 56 | + "ml-spectra-fitting": "^5.0.1", |
95 | 57 | "prettier": "^3.6.2", |
96 | 58 | "rimraf": "^6.0.1", |
97 | 59 | "spectrum-generator": "^8.1.0", |
98 | 60 | "typescript": "^5.9.2", |
99 | 61 | "vitest": "^3.2.4" |
100 | 62 | }, |
101 | | - "dependencies": { |
102 | | - "binary-search": "^1.3.6", |
103 | | - "cheminfo-types": "^1.8.1", |
104 | | - "fft.js": "^4.0.4", |
105 | | - "is-any-array": "^2.0.1", |
106 | | - "ml-matrix": "^6.12.1", |
107 | | - "ml-xsadd": "^3.0.1" |
108 | | - } |
| 63 | + "repository": { |
| 64 | + "type": "git", |
| 65 | + "url": "git+https://github.com/mljs/spectra-processing.git" |
| 66 | + }, |
| 67 | + "bugs": { |
| 68 | + "url": "https://github.com/mljs/spectra-processing/issues" |
| 69 | + }, |
| 70 | + "homepage": "https://github.com/mljs/spectra-processing#readme" |
109 | 71 | } |
0 commit comments