Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 13fd0ea1
authored
Oct 03, 2024
by
Vben
Committed by
GitHub
Oct 03, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: try to fix the error reported by the stub command in the window system (#4560)
1 parent
f7016466
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
6 deletions
docs/src/en/guide/essentials/development.md
docs/src/guide/essentials/development.md
package.json
scripts/turbo-run/src/run.ts
turbo.json
docs/src/en/guide/essentials/development.md
View file @
13fd0ea
...
...
@@ -95,7 +95,7 @@ The execution command is: `pnpm run [script]` or `npm run [script]`.
//
Lint
code
"lint"
:
"vsh lint"
,
//
After
installing
dependencies
,
execute
the
stub
script
for
all
packages
"postinstall"
:
"
turbo run stub
"
,
"postinstall"
:
"
pnpm -r run stub --if-present
"
,
//
Only
allow
using
pnpm
"preinstall"
:
"npx only-allow pnpm"
,
//
Install
husky
...
...
docs/src/guide/essentials/development.md
View file @
13fd0ea
...
...
@@ -95,7 +95,7 @@ npm 脚本是项目常见的配置,用于执行一些常见的任务,比如
//
lint
代码
"lint"
:
"vsh lint"
,
//
依赖安装完成之后,执行所有包的stub脚本
"postinstall"
:
"
turbo run stub
"
,
"postinstall"
:
"
pnpm -r run stub --if-present
"
,
//
只允许使用pnpm
"preinstall"
:
"npx only-allow pnpm"
,
//
husky的安装
...
...
package.json
View file @
13fd0ea
...
...
@@ -49,7 +49,7 @@
"dev:play"
:
"pnpm -F @vben/playground run dev"
,
"format"
:
"vsh lint --format"
,
"lint"
:
"vsh lint"
,
"postinstall"
:
"
turbo run stub
"
,
"postinstall"
:
"
pnpm -r run stub --if-present
"
,
"preinstall"
:
"npx only-allow pnpm"
,
"prepare"
:
"is-ci || husky"
,
"preview"
:
"turbo-run preview"
,
...
...
scripts/turbo-run/src/run.ts
View file @
13fd0ea
...
...
@@ -46,6 +46,7 @@ export async function run(options: RunOptions) {
process
.
exit
(
1
);
}
process
.
env
.
VITE_CJS_IGNORE_WARNING
=
'1'
;
execaCommand
(
`pnpm --filter=
${
selectPkg
}
run
${
command
}
`
,
{
stdio
:
'inherit'
,
});
...
...
turbo.json
View file @
13fd0ea
...
...
@@ -30,9 +30,6 @@
"dependsOn"
:
[
"^build"
],
"outputs"
:
[
".nitro/**"
,
".output/**"
]
},
"stub"
:
{
"cache"
:
false
},
"test:e2e"
:
{},
"dev"
:
{
"dependsOn"
:
[],
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment