Skip to content

Commit

Permalink
feat: 启动命令兼容pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain120 committed Dec 25, 2024
1 parent 8468913 commit a5b3620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions components/version/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-ignore
// import version from './version';

const version = 'version';
import version from './version';

export default version;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"size-limit": "size-limit",
"sort:api-table": "antd-tools run sort-api-table",
"sort:package-json": "npx sort-package-json",
"dev": "if [\"$npm_execpath\"=\"$(which pnpm)\"];then pnpm run prestart && pnpm start; else npm start; fi",
"prestart": "npm run version && npm run token:statistic && npm run token:meta && npm run lint:changelog",
"start": "tsx ./scripts/set-node-options.ts cross-env PORT=8001 dumi dev",
"pretest": "npm run version",
Expand Down

0 comments on commit a5b3620

Please sign in to comment.