Skip to content

Commit

Permalink
fix: export version
Browse files Browse the repository at this point in the history
  • Loading branch information
xuying.xu committed Oct 15, 2024
1 parent 97ba27b commit e4d155d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
7 changes: 2 additions & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": ["packages/*"],
"version": "5.6.0",
"command": {
"bootstrap": {
"ci": false,
"npmClientArgs": [
"--no-package-lock"
]
"npmClientArgs": ["--no-package-lock"]
},
"publish": {
"commitHooks": false,
"conventionalCommits": true,
"createRelease": "github",
"message": "🤖 publish",
"exact": true
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"prettier": "prettier --write './packages/**/*.{ts,tsx}'",
"canary": "npm run build && npm run test && lerna publish --canary --dist-tag next",
"release": "lerna publish --yes --summary-file",
"version": "lerna version --json",
"site:build": "cd ./site && npm run site:build",
"site:clean": "cd ./site && npm run site:clean",
"site:deploy": "cd ./site && npm run site:deploy",
Expand Down Expand Up @@ -82,7 +83,7 @@
"jest": "^26.6.3",
"jest-electron": "^0.1.12",
"jest-image-snapshot": "^6.1.0",
"lerna": "^6.6.2",
"lerna": "^8.1.2",
"limit-size": "^0.1.4",
"pre-commit": "^1.2.2",
"rollup-plugin-visualizer": "^5.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/f2/.fatherrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default process.env.CI && process.env.CI === 'true'
{
"search": "VERSION",
"searchTemplateStrings": true,
"replace": JSON.stringify(require('./package').version)
"replace": require('./package').version
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions packages/f2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export * from '@antv/f-engine';

export { default as Chart, ChartProps } from './chart';
export { Scale, ScaleConfig } from './deps/f2-scale/src';
export * from './deps/f2-scale/src';
export * from './components';
//@ts-ignore
export default { version: 'VERSION' };

export { version } from '../package.json';

0 comments on commit e4d155d

Please sign in to comment.