|
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 | | - }, |
18 | | - "./dist/DateInput": { |
19 | | - "import": "./dist/esm/DateInput.js", |
20 | | - "require": "./dist/cjs/DateInput.js" |
21 | | - }, |
22 | | - "./dist/DateInput.js": { |
23 | | - "import": "./dist/esm/DateInput.js", |
24 | | - "require": "./dist/cjs/DateInput.js" |
25 | | - }, |
26 | | - "./dist/DateInput/DayInput": { |
27 | | - "import": "./dist/esm/DateInput/DayInput.js", |
28 | | - "require": "./dist/cjs/DateInput/DayInput.js" |
29 | | - }, |
30 | | - "./dist/DateInput/DayInput.js": { |
31 | | - "import": "./dist/esm/DateInput/DayInput.js", |
32 | | - "require": "./dist/cjs/DateInput/DayInput.js" |
33 | | - }, |
34 | | - "./dist/DateInput/MonthInput": { |
35 | | - "import": "./dist/esm/DateInput/MonthInput.js", |
36 | | - "require": "./dist/cjs/DateInput/MonthInput.js" |
37 | | - }, |
38 | | - "./dist/DateInput/MonthInput.js": { |
39 | | - "import": "./dist/esm/DateInput/MonthInput.js", |
40 | | - "require": "./dist/cjs/DateInput/MonthInput.js" |
41 | | - }, |
42 | | - "./dist/DateInput/MonthSelect": { |
43 | | - "import": "./dist/esm/DateInput/MonthSelect.js", |
44 | | - "require": "./dist/cjs/DateInput/MonthSelect.js" |
45 | | - }, |
46 | | - "./dist/DateInput/MonthSelect.js": { |
47 | | - "import": "./dist/esm/DateInput/MonthSelect.js", |
48 | | - "require": "./dist/cjs/DateInput/MonthSelect.js" |
49 | | - }, |
50 | | - "./dist/DateInput/YearInput": { |
51 | | - "import": "./dist/esm/DateInput/YearInput.js", |
52 | | - "require": "./dist/cjs/DateInput/YearInput.js" |
53 | | - }, |
54 | | - "./dist/DateInput/YearInput.js": { |
55 | | - "import": "./dist/esm/DateInput/YearInput.js", |
56 | | - "require": "./dist/cjs/DateInput/YearInput.js" |
57 | | - }, |
58 | | - "./dist/cjs/DateInput": "./dist/cjs/DateInput.js", |
59 | | - "./dist/cjs/DateInput/DayInput": "./dist/cjs/DateInput/DayInput.js", |
60 | | - "./dist/cjs/DateInput/MonthInput": "./dist/cjs/DateInput/MonthInput.js", |
61 | | - "./dist/cjs/DateInput/MonthSelect": "./dist/cjs/DateInput/MonthSelect.js", |
62 | | - "./dist/cjs/DateInput/YearInput": "./dist/cjs/DateInput/YearInput.js", |
63 | | - "./dist/esm/DateInput": "./dist/esm/DateInput.js", |
64 | | - "./dist/esm/DateInput/DayInput": "./dist/esm/DateInput/DayInput.js", |
65 | | - "./dist/esm/DateInput/MonthInput": "./dist/esm/DateInput/MonthInput.js", |
66 | | - "./dist/esm/DateInput/MonthSelect": "./dist/esm/DateInput/MonthSelect.js", |
67 | | - "./dist/esm/DateInput/YearInput": "./dist/esm/DateInput/YearInput.js", |
| 13 | + ".": "./dist/index.js", |
| 14 | + "./dist/DateInput": "./dist/DateInput.js", |
| 15 | + "./dist/DateInput.js": "./dist/DateInput.js", |
| 16 | + "./dist/DateInput/DayInput": "./dist/DateInput/DayInput.js", |
| 17 | + "./dist/DateInput/DayInput.js": "./dist/DateInput/DayInput.js", |
| 18 | + "./dist/DateInput/MonthInput": "./dist/DateInput/MonthInput.js", |
| 19 | + "./dist/DateInput/MonthInput.js": "./dist/DateInput/MonthInput.js", |
| 20 | + "./dist/DateInput/MonthSelect": "./dist/DateInput/MonthSelect.js", |
| 21 | + "./dist/DateInput/MonthSelect.js": "./dist/DateInput/MonthSelect.js", |
| 22 | + "./dist/DateInput/YearInput": "./dist/DateInput/YearInput.js", |
| 23 | + "./dist/DateInput/YearInput.js": "./dist/DateInput/YearInput.js", |
68 | 24 | "./*": "./*" |
69 | 25 | }, |
70 | 26 | "scripts": { |
71 | 27 | "build": "yarn build-js && yarn copy-styles", |
72 | | - "build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package", |
73 | | - "build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm", |
74 | | - "build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false", |
75 | | - "build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", |
| 28 | + "build-js": "tsc --project tsconfig.build.json", |
76 | 29 | "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"", |
77 | 30 | "copy-styles": "cpy 'src/**/*.css' dist", |
78 | 31 | "format": "biome format", |
|
81 | 34 | "test": "yarn lint && yarn tsc && yarn format && yarn unit", |
82 | 35 | "tsc": "tsc", |
83 | 36 | "unit": "vitest", |
84 | | - "watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\"" |
| 37 | + "watch": "yarn build-js --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\"" |
85 | 38 | }, |
86 | 39 | "keywords": [ |
87 | 40 | "calendar", |
|
0 commit comments