File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 6
6
7
7
'use strict' ;
8
8
9
- const { execFile } = require ( 'child_process' ) ;
9
+ const { execFile } = require ( 'node: child_process' ) ;
10
10
11
11
/** Options for {@link gitBranchIs}.
12
12
*
Original file line number Diff line number Diff line change 7
7
8
8
'use strict' ;
9
9
10
- const { mkdir, rm } = require ( 'fs/promises' ) ;
11
- const path = require ( 'path' ) ;
10
+ const { mkdir, rm } = require ( 'node: fs/promises' ) ;
11
+ const path = require ( 'node: path' ) ;
12
12
13
- const git = require ( '../test-lib/git.js' ) ;
14
13
const constants = require ( '../test-lib/constants.js' ) ;
14
+ const git = require ( '../test-lib/git.js' ) ;
15
15
16
16
// Local copy of shared constants
17
17
const {
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
- const assert = require ( 'assert' ) . ok ;
8
+ const assert = require ( 'node: assert' ) . ok ;
9
9
10
10
/** Asserts that a value matches a regular expression.
11
11
*
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
- const path = require ( 'path' ) ;
8
+ const path = require ( 'node: path' ) ;
9
9
10
10
module . exports = Object . freeze ( {
11
11
/** Name of the current branch.
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
- const { execFile } = require ( 'child_process' ) ;
9
- const { promisify } = require ( 'util' ) ;
8
+ const { execFile } = require ( 'node: child_process' ) ;
9
+ const { promisify } = require ( 'node: util' ) ;
10
10
11
11
const execFileP = promisify ( execFile ) ;
12
12
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
- const assert = require ( 'assert' ) ;
9
- const { execFile } = require ( 'child_process' ) ;
8
+ const assert = require ( 'node:assert' ) ;
9
+ const { execFile } = require ( 'node:child_process' ) ;
10
+ const path = require ( 'node:path' ) ;
11
+
10
12
const escapeStringRegexp = require ( 'escape-string-regexp' ) ;
11
- const path = require ( 'path' ) ;
12
13
14
+ const gitBranchIsCmd = require ( '../bin/git-branch-is.js' ) ;
13
15
const assertMatch = require ( '../test-lib/assert-match.js' ) ;
14
16
const constants = require ( '../test-lib/constants.js' ) ;
15
- const gitBranchIsCmd = require ( '../bin/git-branch-is.js' ) ;
16
17
17
18
const isWindows = / ^ w i n / i. test ( process . platform ) ;
18
19
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
- const assert = require ( 'assert' ) ;
9
- const path = require ( 'path' ) ;
8
+ const assert = require ( 'node: assert' ) ;
9
+ const path = require ( 'node: path' ) ;
10
10
11
11
// https://github.com/import-js/eslint-plugin-import/issues/2844
12
12
// eslint-disable-next-line import/extensions
13
13
const gitBranchIs = require ( '..' ) ;
14
-
15
14
const assertMatch = require ( '../test-lib/assert-match.js' ) ;
16
15
const constants = require ( '../test-lib/constants.js' ) ;
17
16
You can’t perform that action at this time.
0 commit comments