|
2 | 2 | "name": "ml-rolling-ball-baseline", |
3 | 3 | "version": "1.1.0", |
4 | 4 | "description": "Rolling ball baseline correction", |
5 | | - "main": "lib/index.js", |
6 | | - "module": "src/index.js", |
| 5 | + "main": "./lib/index.js", |
| 6 | + "module": "./lib-esm/index.js", |
| 7 | + "types": "./lib/index.d.ts", |
7 | 8 | "files": [ |
8 | 9 | "lib", |
9 | | - "src" |
| 10 | + "src", |
| 11 | + "lib-esm" |
10 | 12 | ], |
11 | 13 | "scripts": { |
| 14 | + "check-types": "tsc --noEmit", |
| 15 | + "clean": "rimraf lib lib-esm", |
12 | 16 | "eslint": "eslint src", |
13 | 17 | "eslint-fix": "npm run eslint -- --fix", |
14 | | - "prepack": "rollup -c", |
| 18 | + "prepack": "npm run tsc", |
15 | 19 | "prettier": "prettier --check src", |
16 | 20 | "prettier-write": "prettier --write src", |
17 | | - "test": "npm run test-only && npm run eslint && npm run prettier", |
18 | | - "test-only": "jest --coverage" |
| 21 | + "test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types", |
| 22 | + "test-only": "jest --coverage", |
| 23 | + "tsc": "npm run clean && npm run tsc-cjs && npm run tsc-esm", |
| 24 | + "tsc-cjs": "tsc --project tsconfig.cjs.json", |
| 25 | + "tsc-esm": "tsc --project tsconfig.esm.json" |
19 | 26 | }, |
20 | 27 | "repository": { |
21 | 28 | "type": "git", |
|
29 | 36 | }, |
30 | 37 | "homepage": "https://github.com/mljs/rolling-ball-baseline#readme", |
31 | 38 | "devDependencies": { |
32 | | - "@babel/plugin-transform-modules-commonjs": "^7.17.7", |
33 | | - "@types/jest": "^27.4.1", |
| 39 | + "@babel/plugin-transform-modules-commonjs": "^7.19.6", |
| 40 | + "@babel/preset-typescript": "^7.18.6", |
| 41 | + "@types/jest": "^27.5.2", |
| 42 | + "cheminfo-types": "^1.4.0", |
34 | 43 | "eslint": "^8.12.0", |
35 | | - "eslint-config-cheminfo": "^7.3.0", |
| 44 | + "eslint-config-cheminfo-typescript": "^11.2.2", |
36 | 45 | "jest": "^27.5.1", |
37 | 46 | "prettier": "^2.6.1", |
38 | | - "rollup": "^2.70.1" |
| 47 | + "rimraf": "^3.0.2" |
39 | 48 | }, |
40 | 49 | "dependencies": { |
41 | 50 | "is-any-array": "^2.0.0", |
|
0 commit comments