Skip to content

Commit

Permalink
chore: add changelog (rolldown#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Mar 6, 2024
1 parent 1495b32 commit 3ee93a7
Show file tree
Hide file tree
Showing 8 changed files with 558 additions and 16 deletions.
188 changes: 188 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"packages": ["crates/rolldown_binding", "packages/*"],
"version": "independent",
"useWorkspaces": true,
"npmClient": "yarn",
Expand All @@ -8,4 +7,4 @@
"message": "chore(release): publish"
}
}
}
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monorepo",
"version": "0.0.3",
"version": "0.0.4",
"description": "Rollup in Rust",
"main": "index.js",
"private": true,
Expand Down Expand Up @@ -35,7 +35,8 @@
"TODO(hyf0): #need to investigate following commands": "_",
"build:ci:release": "run-s build:node:ci build:binding:release",
"build:node:ci": "yarn workspace @rolldown/node run build",
"version": "yarn lerna version --no-private"
"version": "yarn lerna version --no-private && node scripts/update-root-package-version.js && yarn run changelog",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r"
},
"license": "MIT",
"devDependencies": {
Expand All @@ -44,6 +45,7 @@
"@taplo/cli": "^0.7.0",
"chalk": "^4",
"change-case": "^4",
"conventional-changelog-cli": "^4.1.0",
"debug": "^4.3.4",
"dedent": "^1.5.1",
"execa": "^8.0.1",
Expand Down Expand Up @@ -72,4 +74,4 @@
"engines": {
"node": ">=18.18.0"
}
}
}
3 changes: 1 addition & 2 deletions packages/rollup-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "rollup-tests",
"version": "1.0.0",
"description": "",
"private": true,
"scripts": {
Expand Down Expand Up @@ -29,4 +28,4 @@
"@types/node": "^18.7.23",
"source-map": "^0.7.4"
}
}
}
10 changes: 10 additions & 0 deletions scripts/update-root-package-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// The `lerna version` command don't update the root package.json version,
// We use it to generate changelog, so here update it by packages version.
const fs = require('fs')
const path = require('path')

const updatedVersion = require('../packages/node/package.json').version
const pkgPath = path.join(__dirname, '../package.json')
const packageJson = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
packageJson.version = updatedVersion
fs.writeFileSync(pkgPath, JSON.stringify(packageJson, null, 2))
3 changes: 1 addition & 2 deletions web/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "rolldown-docs",
"version": "0.1.0",
"type": "module",
"private": true,
"scripts": {
Expand All @@ -11,4 +10,4 @@
"devDependencies": {
"vitepress": "^1.0.0-rc.44"
}
}
}
3 changes: 1 addition & 2 deletions web/playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "rolldown-playground",
"version": "0.1.0",
"description": "create an app to consume rust-generated wasm packages",
"type": "module",
"private": true,
Expand Down Expand Up @@ -29,4 +28,4 @@
"vue": "^3.3.8",
"vue-codemirror": "^6.1.1"
}
}
}
Loading

0 comments on commit 3ee93a7

Please sign in to comment.