diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77fcc89..b69b488 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: with: fetch-depth: 0 - - name: Use Node.js 22.x + - name: Setup Node uses: actions/setup-node@v3 - uses: pnpm/action-setup@v4 @@ -20,12 +20,10 @@ jobs: run: pnpm install - name: Build - run: | - pnpm build + run: pnpm build - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - pnpm release + run: pnpm run release diff --git a/.nvmrc b/.nvmrc index e70b3ae..9995f91 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1,2 @@ -22.12 \ No newline at end of file +22.16.0 + diff --git a/auto.config.js b/auto.config.cjs similarity index 90% rename from auto.config.js rename to auto.config.cjs index 7901412..79a21d7 100644 --- a/auto.config.js +++ b/auto.config.cjs @@ -1,4 +1,4 @@ -export default { +module.exports = { baseBranch: 'main', labels: [ { diff --git a/package.json b/package.json index cd6803d..d59c1b1 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "auto": "^11.3.0", "picocolors": "^1.1.0", "prettier": "^3.5.3", - "rimraf": "^6.0.1", "storybook": "^10.0.0", "tsup": "^8.5.0", "typescript": "^5.9.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 537e2db..b3585e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,9 +20,6 @@ importers: prettier: specifier: ^3.5.3 version: 3.5.3 - rimraf: - specifier: ^6.0.1 - version: 6.0.1 storybook: specifier: ^10.0.0 version: 10.0.6(@testing-library/dom@10.4.0)(prettier@3.5.3)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) @@ -1027,11 +1024,6 @@ packages: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true - glob@11.0.2: - resolution: {integrity: sha512-YT7U7Vye+t5fZ/QMkBFrTJ7ZQxInIUjwyAjVj84CYXqgBdv30MFUPGnBR6sQaVq6Is15wYJUsnzTuWaGRBhBAQ==} - engines: {node: 20 || >=22} - hasBin: true - glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -1130,10 +1122,6 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - jackspeak@4.1.1: - resolution: {integrity: sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==} - engines: {node: 20 || >=22} - java-properties@1.0.2: resolution: {integrity: sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==} engines: {node: '>= 0.6.0'} @@ -1201,19 +1189,12 @@ packages: resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} engines: {node: '>=10'} - loupe@3.1.3: - resolution: {integrity: sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==} - loupe@3.2.1: resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==} lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} - lru-cache@11.1.0: - resolution: {integrity: sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==} - engines: {node: 20 || >=22} - lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true @@ -1254,10 +1235,6 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - minimatch@10.0.1: - resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} - engines: {node: 20 || >=22} - minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -1388,10 +1365,6 @@ packages: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} - path-scurry@2.0.0: - resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} - engines: {node: 20 || >=22} - path-type@3.0.0: resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} engines: {node: '>=4'} @@ -1540,11 +1513,6 @@ packages: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - rimraf@6.0.1: - resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==} - engines: {node: 20 || >=22} - hasBin: true - rollup@4.41.1: resolution: {integrity: sha512-cPmwD3FnFv8rKMBc1MxWCwVQFxwf1JEmSX3iQXrRVVG15zerAIXRjMFVWnd5Q5QvgKF7Aj+5ykXFhUl+QGnyOw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -1608,6 +1576,7 @@ packages: source-map@0.8.0-beta.0: resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} engines: {node: '>= 8'} + deprecated: The work that was done in this beta branch won't be included in future versions storybook@10.0.6: resolution: {integrity: sha512-s3qY17stuSxU9TFdSHWF2VWJiDKrhZsdlM9M9/APBLT+3kbTlfCPuaNONE0UETgz5tiZLIrC9K4RYjJ8c6PHPA==} @@ -2660,7 +2629,7 @@ snapshots: assertion-error: 2.0.1 check-error: 2.1.1 deep-eql: 5.0.2 - loupe: 3.1.3 + loupe: 3.2.1 pathval: 2.0.0 chalk@2.4.2: @@ -2968,15 +2937,6 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 - glob@11.0.2: - dependencies: - foreground-child: 3.3.1 - jackspeak: 4.1.1 - minimatch: 10.0.1 - minipass: 7.1.2 - package-json-from-dist: 1.0.1 - path-scurry: 2.0.0 - glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -3066,10 +3026,6 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 - jackspeak@4.1.1: - dependencies: - '@isaacs/cliui': 8.0.2 - java-properties@1.0.2: {} jest-worker@27.5.1: @@ -3123,14 +3079,10 @@ snapshots: chalk: 4.1.2 is-unicode-supported: 0.1.0 - loupe@3.1.3: {} - loupe@3.2.1: {} lru-cache@10.4.3: {} - lru-cache@11.1.0: {} - lz-string@1.5.0: {} magic-string@0.30.17: @@ -3160,10 +3112,6 @@ snapshots: min-indent@1.0.1: {} - minimatch@10.0.1: - dependencies: - brace-expansion: 2.0.1 - minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -3273,11 +3221,6 @@ snapshots: lru-cache: 10.4.3 minipass: 7.1.2 - path-scurry@2.0.0: - dependencies: - lru-cache: 11.1.0 - minipass: 7.1.2 - path-type@3.0.0: dependencies: pify: 3.0.0 @@ -3399,11 +3342,6 @@ snapshots: reusify@1.1.0: {} - rimraf@6.0.1: - dependencies: - glob: 11.0.2 - package-json-from-dist: 1.0.1 - rollup@4.41.1: dependencies: '@types/estree': 1.0.7 diff --git a/tsconfig.json b/tsconfig.json index c71867d..547d75e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,21 +3,16 @@ "esModuleInterop": true, "skipLibCheck": true, "target": "esnext", - "allowJs": true, "resolveJsonModule": true, - "moduleDetection": "force", "moduleResolution": "bundler", - "module": "preserve", + "module": "es2015", "jsx": "react", "isolatedModules": true, "verbatimModuleSyntax": true, "strict": true, "noUncheckedIndexedAccess": true, - "noImplicitOverride": true, - "noImplicitAny": true, - "lib": ["es2023", "dom", "dom.iterable"], - "baseUrl": ".", - "rootDir": "./src" + "lib": ["esnext", "dom", "dom.iterable"], + "rootDir": "." }, - "include": ["src/**/*"] + "include": ["src/**/*", "tsup.config.ts"] } diff --git a/tsup.config.js b/tsup.config.js index c5456c8..a29cbe0 100644 --- a/tsup.config.js +++ b/tsup.config.js @@ -1,12 +1,12 @@ import { defineConfig } from 'tsup'; -export default defineConfig((options) => [ +export default defineConfig(() => [ { entry: ['src/index.ts', 'src/preset.ts'], outDir: './dist', splitting: true, format: ['esm'], -dts: true, + dts: true, treeshake: true, sourcemap: false, /* @@ -22,10 +22,10 @@ dts: true, { entry: ['src/postinstall.ts'], outDir: './bin', -splitting: true, + splitting: true, format: ['esm'], treeshake: true, - target: 'node20', + target: 'node22', clean: false, platform: 'node', esbuildOptions(options) {