@aiquants/period-slider 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,21 +1,26 @@
1
1
  {
2
2
  "name": "@aiquants/period-slider",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Customizable period slider and year/month/date selectors for React",
5
5
  "sideEffects": [
6
6
  "**/*.css"
7
7
  ],
8
8
  "type": "module",
9
- "main": "./dist/index.cjs",
10
9
  "module": "./dist/index.js",
11
10
  "types": "./dist/index.d.ts",
12
11
  "exports": {
13
12
  ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js",
16
- "require": "./dist/index.cjs",
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ },
17
21
  "default": "./dist/index.js"
18
22
  },
23
+ "./package.json": "./package.json",
19
24
  "./styles/period-slider.css": "./dist/styles/period-slider.css",
20
25
  "./styles/period-slider.standalone.css": "./dist/styles/period-slider.standalone.css"
21
26
  },
@@ -71,15 +76,16 @@
71
76
  "publishConfig": {
72
77
  "access": "public"
73
78
  },
79
+ "main": "./dist/index.cjs",
74
80
  "scripts": {
75
- "build": "vite build && pnpm build:css",
81
+ "build": "vite build && pnpm build:types-cjs && pnpm build:css",
76
82
  "build:css": "tailwindcss -i src/styles/components.entry.css -o dist/styles/period-slider.css --minify && tailwindcss -i src/styles/standalone.entry.css -o dist/styles/period-slider.standalone.css --minify",
77
- "dev": "vite build --watch",
78
- "watch": "vite build --watch",
83
+ "dev": "pnpm run build:css && vite build --watch --no-emptyOutDir",
84
+ "watch": "pnpm run dev",
79
85
  "demo:dev": "cd demo && pnpm run dev",
80
86
  "demo:build": "cd demo && pnpm run build",
81
87
  "demo:start": "cd demo && pnpm run preview --port 5178",
82
- "typecheck": "tsc --noEmit",
88
+ "typecheck": "tsc --noEmit && tsc --noEmit -p demo/tsconfig.json",
83
89
  "test": "vitest run",
84
90
  "test:run": "vitest run",
85
91
  "test:watch": "vitest --watch",
@@ -93,6 +99,7 @@
93
99
  "clean": "rimraf dist",
94
100
  "publish:patch": "pnpm run typecheck && pnpm run --if-present test && pnpm version patch --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
95
101
  "publish:minor": "pnpm run typecheck && pnpm run --if-present test && pnpm version minor --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
96
- "publish:major": "pnpm run typecheck && pnpm run --if-present test && pnpm version major --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks"
102
+ "publish:major": "pnpm run typecheck && pnpm run --if-present test && pnpm version major --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
103
+ "build:types-cjs": "node -e \"require('fs').copyFileSync('dist/index.d.ts','dist/index.d.cts')\""
97
104
  }
98
105
  }