Skip to content

Commit fc7a949

Browse files
committed
build: use changelogen to bump version and generate changelog
1 parent 0d896b6 commit fc7a949

7 files changed

Lines changed: 558 additions & 356 deletions

File tree

changelog.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default {
2+
types: {
3+
feat: { title: "🚀 Features", semver: "minor" },
4+
perf: { title: "🔥 Performance", semver: "patch" },
5+
fix: { title: "🐛 Fixes", semver: "patch" },
6+
refactor: { title: "🔨 Refactors", semver: "patch" },
7+
docs: { title: "📖 Documentation", semver: "patch" },
8+
build: { title: "📦 Build", semver: "patch" },
9+
types: { title: "📝 Types", semver: "patch" },
10+
chore: { title: "🧹 Chore" },
11+
examples: { title: "📚 Examples" },
12+
test: { title: "✅ Tests" },
13+
style: { title: "🎨 Styles" },
14+
ci: { title: "🤖 CI" },
15+
},
16+
}

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "@thinkbuff/figma",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "Simplify plugin and widget creation for Figma and FigJam",
55
"private": true,
66
"type": "module",
77
"scripts": {
88
"clean": "pnpm run -r clean && rm -rf node_modules",
99
"lint": "pnpm run -r lint",
1010
"lint:fix": "pnpm run -r lint --fix",
11-
"typecheck": "pnpm run -r typecheck"
11+
"typecheck": "pnpm run -r typecheck",
12+
"release": "changelogen --release --no-commit --no-tag && tsx scripts/update-version.ts",
13+
"prepare": "simple-git-hooks"
1214
},
1315
"packageManager": "pnpm@8.15.7",
1416
"engines": {
@@ -20,12 +22,14 @@
2022
"@thinkbuff/eslint-config": "^0.1.5",
2123
"@types/node": "^20.12.7",
2224
"@unocss/eslint-plugin": "^0.59.2",
25+
"changelogen": "^0.5.5",
2326
"eslint": "^8.57.0",
2427
"eslint-plugin-jsx-a11y": "^6.8.0",
2528
"eslint-plugin-react": "^7.34.1",
2629
"eslint-plugin-react-hooks": "^4.6.0",
2730
"eslint-plugin-react-refresh": "^0.4.6",
2831
"eslint-plugin-storybook": "^0.8.0",
32+
"glob": "^10.3.12",
2933
"lint-staged": "^15.2.2",
3034
"simple-git-hooks": "^2.11.1",
3135
"tsx": "^4.7.2",

packages/react/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"lint:config-viewer": "npx @eslint/config-inspector",
1313
"typecheck": "tsc --noEmit",
1414
"storybook": "storybook dev -h 127.0.0.1 -p 6006",
15-
"build-storybook": "storybook build"
15+
"build-storybook": "storybook build",
16+
"prepublishOnly": "pnpm build"
1617
},
1718
"main": "./dist/index.mjs",
1819
"module": "./dist/index.mjs",
@@ -55,7 +56,7 @@
5556
}
5657
},
5758
"devDependencies": {
58-
"@chromatic-com/storybook": "^1.3.2",
59+
"@chromatic-com/storybook": "^1.3.3",
5960
"@storybook/addon-essentials": "^8.0.8",
6061
"@storybook/addon-interactions": "^8.0.8",
6162
"@storybook/addon-links": "^8.0.8",

packages/theme/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"stub": "unbuild --stub && pnpm generate:css",
1111
"generate:css": "tsx scripts/generate-css-files.ts",
1212
"lint": "eslint .",
13-
"typecheck": "tsc --noEmit"
13+
"typecheck": "tsc --noEmit",
14+
"prepublishOnly": "pnpm build"
1415
},
1516
"keywords": [
1617
"figma",

0 commit comments

Comments
 (0)