|
6 | 6 | "sideEffects": [ |
7 | 7 | "*.css" |
8 | 8 | ], |
9 | | - "main": "./dist/cjs/index.js", |
10 | | - "module": "./dist/esm/index.js", |
| 9 | + "main": "./dist/index.js", |
11 | 10 | "source": "./src/index.ts", |
12 | | - "types": "./dist/cjs/index.d.ts", |
| 11 | + "types": "./dist/index.d.ts", |
13 | 12 | "exports": { |
14 | | - ".": { |
15 | | - "import": "./dist/esm/index.js", |
16 | | - "require": "./dist/cjs/index.js" |
17 | | - }, |
| 13 | + ".": "./dist/index.js", |
18 | 14 | "./*": "./*" |
19 | 15 | }, |
20 | 16 | "scripts": { |
21 | 17 | "build": "yarn build-js && yarn copy-styles", |
22 | | - "build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package", |
23 | | - "build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm", |
24 | | - "build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false", |
25 | | - "build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", |
| 18 | + "build-js": "tsc --project tsconfig.build.json", |
26 | 19 | "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"", |
27 | 20 | "copy-styles": "cpy 'src/**/*.css' dist", |
28 | 21 | "format": "biome format", |
|
31 | 24 | "test": "yarn lint && yarn tsc && yarn format && yarn unit", |
32 | 25 | "tsc": "tsc", |
33 | 26 | "unit": "vitest", |
34 | | - "watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\"" |
| 27 | + "watch": "yarn build-js --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\"" |
35 | 28 | }, |
36 | 29 | "keywords": [ |
37 | 30 | "clock", |
|
0 commit comments