diff --git a/package.json b/package.json index 89a9fb5e..2dc931f2 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "prebuild": "[[ $CI = true ]] && npx pnpm@9 install --store=node_modules/.pnpm-store || echo skipping pnpm install; turbo run prebuild", "build": "turbo run build", "build:packages": "turbo run build --filter='./packages/*'", - "changeset": "pnpm -r exec pnpm run --if-present addVersion && npx changeset", + "changeset": "npx changeset", "check:packages": "pnpm check-dependency-version-consistency .", "clean": "turbo run clean", "coverage": "vitest run --coverage", @@ -19,7 +19,7 @@ "publish": "pnpm run build && npx changeset tag && pnpm -r publish packages --no-git-checks --filter=./packages/**", "test": "turbo run test", "typecheck": "turbo run typecheck", - "version": "npx changeset version && turbo run addVersion", + "version": "npx changeset version", "postversion": "pnpm exec pnpm install --filter=./packages/** " }, "devDependencies": { @@ -32,7 +32,6 @@ "@vitejs/plugin-react": "4.3.3", "@vitest/coverage-v8": "2.0.5", "check-dependency-version-consistency": "5.0.0", - "genversion": "3.2.0", "happy-dom": "15.10.2", "turbo": "2.3.3", "vite": "5.4.6", diff --git a/packages/react-native/package.json b/packages/react-native/package.json index df57220b..d951cfc4 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -21,8 +21,7 @@ "files": ["dist/**", "src/**", "CHANGELOG.md"], "scripts": { "addApiKey": "node scripts/addApiKey.js", - "addVersion": "genversion --esm -f src/version.ts", - "build": "pnpm run addApiKey && pnpm run addVersion && bunchee", + "build": "pnpm run addApiKey && bunchee", "clean": "rimraf .turbo dist", "dev": "bunchee --watch", "lint": "TIMING=1 biome check src/ tests/ --fix", diff --git a/packages/react-native/src/version.ts b/packages/react-native/src/version.ts index d61d3895..0e588c76 100644 --- a/packages/react-native/src/version.ts +++ b/packages/react-native/src/version.ts @@ -1,2 +1 @@ -// Generated by genversion. -export const version = '3.8.2' +export { version } from '../package.json' diff --git a/packages/react/package.json b/packages/react/package.json index b5e3a279..5c1c53e4 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -26,8 +26,7 @@ "types": "./dist/index.d.ts", "files": ["dist/**", "src/**", "CHANGELOG.md"], "scripts": { - "addVersion": "genversion --esm -f src/version.ts", - "build": "pnpm run addVersion && bunchee", + "build": "bunchee", "clean": "rimraf .turbo dist", "dev": "bunchee --watch", "lint": "TIMING=1 biome check src/ tests/ --fix", diff --git a/packages/react/src/version.ts b/packages/react/src/version.ts index d61d3895..0e588c76 100644 --- a/packages/react/src/version.ts +++ b/packages/react/src/version.ts @@ -1,2 +1 @@ -// Generated by genversion. -export const version = '3.8.2' +export { version } from '../package.json' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c525e5b4..4c9d4d17 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,9 +35,6 @@ importers: check-dependency-version-consistency: specifier: 5.0.0 version: 5.0.0 - genversion: - specifier: 3.2.0 - version: 3.2.0 happy-dom: specifier: 15.10.2 version: 15.10.2 @@ -3330,11 +3327,6 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - ejs@3.1.10: - resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} - engines: {node: '>=0.10.0'} - hasBin: true - electron-to-chromium@1.5.58: resolution: {integrity: sha512-al2l4r+24ZFL7WzyPTlyD0fC33LLzvxqLCwurtBibVPghRGO9hSTl+tis8t1kD7biPiH/en4U0I7o/nQbYeoVA==} @@ -3704,9 +3696,6 @@ packages: resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==} engines: {node: '>=8'} - filelist@1.0.4: - resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} - fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} @@ -3723,9 +3712,6 @@ packages: resolution: {integrity: sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==} engines: {node: '>=6'} - find-package@1.0.0: - resolution: {integrity: sha512-yVn71XCCaNgxz58ERTl8nA/8YYtIQDY9mHSrgFBfiFtdNNfY0h183Vh8BRkKxD8x9TUw3ec290uJKhDVxqGZBw==} - find-up@3.0.0: resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} engines: {node: '>=6'} @@ -3836,11 +3822,6 @@ packages: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} - genversion@3.2.0: - resolution: {integrity: sha512-OIYSX6XYA8PHecLDCTri30hadSZfAjZ8Iq1+BBDXqLWP4dRLuJNLoNjsSWtTpw97IccK2LDWzkEstxAB8GdN7g==} - engines: {node: '>=10.0.0'} - hasBin: true - get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} @@ -4326,11 +4307,6 @@ packages: resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} engines: {node: 20 || >=22} - jake@10.9.2: - resolution: {integrity: sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==} - engines: {node: '>=10'} - hasBin: true - jest-changed-files@29.7.0: resolution: {integrity: sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -5234,9 +5210,6 @@ packages: package-manager-detector@0.2.2: resolution: {integrity: sha512-VgXbyrSNsml4eHWIvxxG/nTL4wgybMTXCV2Un/+yEc3aDKKU6nQBZjbeP3Pl3qm9Qg92X/1ng4ffvCeD/zwHgg==} - parents@1.0.1: - resolution: {integrity: sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==} - parse-json@4.0.0: resolution: {integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==} engines: {node: '>=4'} @@ -5286,10 +5259,6 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - path-platform@0.11.15: - resolution: {integrity: sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==} - engines: {node: '>= 0.8.0'} - path-scurry@1.11.1: resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} engines: {node: '>=16 || 14 >=14.18'} @@ -10587,10 +10556,6 @@ snapshots: ee-first@1.1.1: {} - ejs@3.1.10: - dependencies: - jake: 10.9.2 - electron-to-chromium@1.5.58: {} emittery@0.13.1: {} @@ -11061,10 +11026,6 @@ snapshots: dependencies: escape-string-regexp: 1.0.5 - filelist@1.0.4: - dependencies: - minimatch: 5.1.6 - fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 @@ -11089,10 +11050,6 @@ snapshots: make-dir: 2.1.0 pkg-dir: 3.0.0 - find-package@1.0.0: - dependencies: - parents: 1.0.1 - find-up@3.0.0: dependencies: locate-path: 3.0.0 @@ -11203,12 +11160,6 @@ snapshots: gensync@1.0.0-beta.2: {} - genversion@3.2.0: - dependencies: - commander: 7.2.0 - ejs: 3.1.10 - find-package: 1.0.0 - get-caller-file@2.0.5: {} get-east-asian-width@1.3.0: {} @@ -11680,13 +11631,6 @@ snapshots: dependencies: '@isaacs/cliui': 8.0.2 - jake@10.9.2: - dependencies: - async: 3.2.6 - chalk: 4.1.2 - filelist: 1.0.4 - minimatch: 3.1.2 - jest-changed-files@29.7.0: dependencies: execa: 5.1.1 @@ -12859,10 +12803,6 @@ snapshots: package-manager-detector@0.2.2: {} - parents@1.0.1: - dependencies: - path-platform: 0.11.15 - parse-json@4.0.0: dependencies: error-ex: 1.3.2 @@ -12905,8 +12845,6 @@ snapshots: path-parse@1.0.7: {} - path-platform@0.11.15: {} - path-scurry@1.11.1: dependencies: lru-cache: 10.4.3 diff --git a/turbo.json b/turbo.json index 604d65af..fe9bec8b 100644 --- a/turbo.json +++ b/turbo.json @@ -39,10 +39,6 @@ "cache": false, "dependsOn": ["^test"], "outputs": [] - }, - "addVersion": { - "cache": false, - "outputs": ["package.json"] } } }