Skip to content

Commit

Permalink
Simplify versioning (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubendinho authored Dec 18, 2024
1 parent 932e300 commit 2b21c4d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 77 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/react-native/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// Generated by genversion.
export const version = '3.8.2'
export { version } from '../package.json'
3 changes: 1 addition & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/react/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// Generated by genversion.
export const version = '3.8.2'
export { version } from '../package.json'
62 changes: 0 additions & 62 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
"cache": false,
"dependsOn": ["^test"],
"outputs": []
},
"addVersion": {
"cache": false,
"outputs": ["package.json"]
}
}
}

0 comments on commit 2b21c4d

Please sign in to comment.