|
84 | 84 | }, |
85 | 85 | "scripts": { |
86 | 86 | "clean": "del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts' 'test/**/*.js' 'test/**/*.js.map'", |
87 | | - "compile-lib": "tsc -p lib", |
| 87 | + "compile-lib:dev": "tsc -p lib/tsconfig.json", |
| 88 | + "compile-lib:prod": "tsc -p lib/tsconfig.prod.json", |
88 | 89 | "compile-test": "tsc -p test", |
89 | | - "compile": "yarn run compile-lib && yarn run compile-test", |
| 90 | + "compile:dev": "yarn run compile-lib:dev && yarn run compile-test", |
| 91 | + "compile:prod": "yarn run compile-lib:prod && yarn run compile-test", |
90 | 92 | "lint:md": "remark -u preset-lint-recommended .", |
91 | 93 | "lint:ts": "biome check", |
92 | 94 | "lint:fix": "biome check --write", |
93 | 95 | "lint": "yarn run lint:md && yarn run lint:ts", |
94 | 96 | "test": "mocha", |
95 | | - "build": "yarn run clean && yarn run compile", |
| 97 | + "build:dev": "yarn run clean && yarn run compile:dev", |
| 98 | + "build:prod": "yarn run clean && yarn run compile:prod", |
| 99 | + "build": "yarn run build:prod", |
96 | 100 | "start": "yarn run compile && yarn run lint && yarn run cover-test", |
97 | 101 | "test-coverage": "c8 yarn run test", |
98 | 102 | "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage", |
99 | | - "prepublishOnly": "yarn run build", |
| 103 | + "prepublishOnly": "yarn run build:prod", |
100 | 104 | "update-biome": "yarn add -D --exact @biomejs/biome && npx @biomejs/biome migrate --write && npm run lint:fix" |
101 | 105 | }, |
102 | 106 | "nyc": { |
|
0 commit comments