Skip to content

Commit

Permalink
type: includes
Browse files Browse the repository at this point in the history
  • Loading branch information
FliPPeDround committed Aug 19, 2024
1 parent 8651188 commit 826b910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:

- name: dev小程序项目
working-directory: ../sample-project
run: node --trace-warnings ./../create-uni/scripts/dev.cjs
run: node ./../create-uni/scripts/dev.cjs

- name: 打包小程序项目
working-directory: ../sample-project
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:

- name: dev小程序项目
working-directory: ../sample-project
run: node --trace-warnings ./../create-uni/scripts/dev.cjs
run: node ./../create-uni/scripts/dev.cjs

- name: 打包小程序项目
working-directory: ../sample-project
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const devProcess = spawn('pnpm', ['dev:mp-weixin'], {
// 捕获错误输出
devProcess.stderr.on('data', (data) => {
console.error(`stderr: ${data}`)
if (!data.include('Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.')) {
if (!data.includes('Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.')) {
devProcess.kill()
process.exit(1)
}
Expand Down

0 comments on commit 826b910

Please sign in to comment.