-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated `.gitignore` to include `.package-lock.json` and expanded ignored files. - Incremented version in `package.json` to `6.11.0` and updated `runscript` dependency to `^2.0.0`. - Modified import statements for `runscript` in various files to use named imports. - Updated comments for consistency in test files. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
5 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ import assert from 'node:assert'; | |
import path from 'node:path'; | ||
import fs from 'node:fs/promises'; | ||
import _cpy from 'cpy'; | ||
import runscript from 'runscript'; | ||
import { runScript } from 'runscript'; | ||
import coffee from './coffee'; | ||
|
||
const version = Number(process.version.substring(1, 3)); | ||
|
@@ -228,10 +228,10 @@ describe('test/ts.test.ts', () => { | |
// install custom ts-node | ||
await fs.rm(path.join(cwd, 'node_modules'), { force: true, recursive: true }); | ||
if (process.env.CI) { | ||
// dont use npmmirror.com on CI | ||
await runscript('npx npminstall', { cwd }); | ||
// don't use npmmirror.com on CI | ||
await runScript('npx npminstall', { cwd }); | ||
} else { | ||
await runscript('npx npminstall -c', { cwd }); | ||
await runScript('npx npminstall -c', { cwd }); | ||
} | ||
|
||
// copy egg to node_modules | ||
|
@@ -260,9 +260,9 @@ describe('test/ts.test.ts', () => { | |
await fs.rm(path.join(cwd, 'node_modules'), { force: true, recursive: true }); | ||
if (process.env.CI) { | ||
// dont use npmmirror.com on CI | ||
await runscript('npx npminstall [email protected] --no-save', { cwd }); | ||
await runScript('npx npminstall [email protected] --no-save', { cwd }); | ||
} else { | ||
await runscript('npx npminstall -c [email protected] --no-save', { cwd }); | ||
await runScript('npx npminstall -c [email protected] --no-save', { cwd }); | ||
} | ||
|
||
// copy egg to node_modules | ||
|
@@ -291,10 +291,10 @@ describe('test/ts.test.ts', () => { | |
// install custom ts-node | ||
await fs.rm(path.join(cwd, 'node_modules'), { force: true, recursive: true }); | ||
if (process.env.CI) { | ||
// dont use npmmirror.com on CI | ||
await runscript('npx npminstall [email protected] --no-save', { cwd }); | ||
// don't use npmmirror.com on CI | ||
await runScript('npx npminstall [email protected] --no-save', { cwd }); | ||
} else { | ||
await runscript('npx npminstall -c [email protected] --no-save', { cwd }); | ||
await runScript('npx npminstall -c [email protected] --no-save', { cwd }); | ||
} | ||
|
||
// copy egg to node_modules | ||
|
@@ -389,9 +389,9 @@ describe('test/ts.test.ts', () => { | |
await fs.rm(path.join(cwd, 'node_modules'), { force: true, recursive: true }); | ||
if (process.env.CI) { | ||
// dont use npmmirror.com on CI | ||
await runscript('npx npminstall', { cwd }); | ||
await runScript('npx npminstall', { cwd }); | ||
} else { | ||
await runscript('npx npminstall -c', { cwd }); | ||
await runScript('npx npminstall -c', { cwd }); | ||
} | ||
|
||
// copy egg to node_modules | ||
|