File tree 22 files changed +9645
-7045
lines changed
22 files changed +9645
-7045
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
analyze :
11
11
name : Analyze
12
- runs-on : ubuntu-20 .04
12
+ runs-on : ubuntu-22 .04
13
13
permissions :
14
14
actions : read
15
15
contents : read
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
- runs-on : ubuntu-20 .04
10
+ runs-on : ubuntu-22 .04
11
11
env :
12
12
BUILD_ADD_PATH_PREFIX : true
13
13
steps :
14
14
- uses : actions/checkout@v3
15
15
- uses : actions/setup-node@v3
16
16
with :
17
- node-version : 18 .x
17
+ node-version : 22 .x
18
18
cache : " yarn"
19
19
- name : Set up dependencies
20
20
run : |
Original file line number Diff line number Diff line change 7
7
strategy :
8
8
matrix :
9
9
os :
10
- - ubuntu-20 .04
11
- - windows-2019
10
+ - ubuntu-22 .04
11
+ - windows-2022
12
12
node-version :
13
- - 18 .x
13
+ - 22 .x
14
14
runs-on : ${{ matrix.os }}
15
15
steps :
16
16
- uses : actions/checkout@v3
@@ -34,12 +34,12 @@ jobs:
34
34
coverage :
35
35
needs : [build]
36
36
if : ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' }}
37
- runs-on : ubuntu-20 .04
37
+ runs-on : ubuntu-22 .04
38
38
steps :
39
39
- uses : actions/checkout@v3
40
40
- uses : actions/setup-node@v3
41
41
with :
42
- node-version : 18 .x
42
+ node-version : 22 .x
43
43
cache : " yarn"
44
44
- name : Set up dependencies
45
45
run : |
Load Diff This file was deleted.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require eslint/bin/eslint.js
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real eslint/bin/eslint.js your application uses
20
- module . exports = absRequire ( `eslint/bin/eslint.js` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/bin/eslint.js` ) ) ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require eslint
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real eslint your application uses
20
- module . exports = absRequire ( `eslint` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint` ) ) ;
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require eslint/use-at-your-own-risk
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real eslint/use-at-your-own-risk your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `eslint/use-at-your-own-risk` ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint" ,
3
- "version" : " 8.44.0 -sdk" ,
3
+ "version" : " 8.57.1 -sdk" ,
4
4
"main" : " ./lib/api.js" ,
5
- "type" : " commonjs"
5
+ "type" : " commonjs" ,
6
+ "bin" : {
7
+ "eslint" : " ./bin/eslint.js"
8
+ },
9
+ "exports" : {
10
+ "./package.json" : " ./package.json" ,
11
+ "." : " ./lib/api.js" ,
12
+ "./use-at-your-own-risk" : " ./lib/unsupported-api.js"
13
+ }
6
14
}
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ const { existsSync} = require ( `fs` ) ;
4
+ const { createRequire, register} = require ( `module` ) ;
5
+ const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
7
+
8
+ const relPnpApiPath = "../../../.pnp.cjs" ;
9
+
10
+ const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
12
+ const absRequire = createRequire ( absPnpApiPath ) ;
13
+
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
17
+ if ( existsSync ( absPnpApiPath ) ) {
18
+ if ( ! process . versions . pnp ) {
19
+ // Setup the environment to be able to require prettier/bin-prettier.js
20
+ require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
24
+ }
25
+ }
26
+
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
31
+ // Defer to the real prettier/bin-prettier.js your application uses
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `prettier/bin-prettier.js` ) ) ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require prettier
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real prettier your application uses
20
- module . exports = absRequire ( `prettier` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `prettier` ) ) ;
Original file line number Diff line number Diff line change 2
2
"name" : " prettier" ,
3
3
"version" : " 2.8.8-sdk" ,
4
4
"main" : " ./index.js" ,
5
- "type" : " commonjs"
5
+ "type" : " commonjs" ,
6
+ "bin" : " ./bin-prettier.js"
6
7
}
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require typescript/bin/tsc
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real typescript/bin/tsc your application uses
20
- module . exports = absRequire ( `typescript/bin/tsc` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `typescript/bin/tsc` ) ) ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require typescript/bin/tsserver
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real typescript/bin/tsserver your application uses
20
- module . exports = absRequire ( `typescript/bin/tsserver` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `typescript/bin/tsserver` ) ) ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
const { existsSync} = require ( `fs` ) ;
4
- const { createRequire} = require ( `module` ) ;
4
+ const { createRequire, register } = require ( `module` ) ;
5
5
const { resolve} = require ( `path` ) ;
6
+ const { pathToFileURL} = require ( `url` ) ;
6
7
7
8
const relPnpApiPath = "../../../../.pnp.cjs" ;
8
9
9
10
const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11
+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
10
12
const absRequire = createRequire ( absPnpApiPath ) ;
11
13
14
+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
15
+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
16
+
12
17
if ( existsSync ( absPnpApiPath ) ) {
13
18
if ( ! process . versions . pnp ) {
14
19
// Setup the environment to be able to require typescript/lib/tsc.js
15
20
require ( absPnpApiPath ) . setup ( ) ;
21
+ if ( isPnpLoaderEnabled && register ) {
22
+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
23
+ }
16
24
}
17
25
}
18
26
27
+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28
+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29
+ : exports => exports ;
30
+
19
31
// Defer to the real typescript/lib/tsc.js your application uses
20
- module . exports = absRequire ( `typescript/lib/tsc.js` ) ;
32
+ module . exports = wrapWithUserWrapper ( absRequire ( `typescript/lib/tsc.js` ) ) ;
You can’t perform that action at this time.
0 commit comments