File tree Expand file tree Collapse file tree 19 files changed +1670
-1570
lines changed
Expand file tree Collapse file tree 19 files changed +1670
-1570
lines changed Original file line number Diff line number Diff line change 88 "editor.detectIndentation" : false ,
99 "editor.insertSpaces" : false ,
1010 "editor.tabSize" : 4 ,
11- "prettier.prettierPath" : " .yarn/sdks/prettier/index.cjs" ,
11+ "prettier.prettierPath" : " .yarn/sdks/prettier/index.cjs"
1212}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
2631// Defer to the real prettier/bin/prettier.cjs your application uses
27- module . exports = absRequire ( `prettier/bin/prettier.cjs` ) ;
32+ module . exports = wrapWithUserWrapper ( absRequire ( `prettier/bin/prettier.cjs` ) ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
2631// Defer to the real prettier your application uses
27- module . exports = absRequire ( `prettier` ) ;
32+ module . exports = wrapWithUserWrapper ( absRequire ( `prettier` ) ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " prettier" ,
3- "version" : " 3.3.3 -sdk" ,
3+ "version" : " 3.6.2 -sdk" ,
44 "main" : " ./index.cjs" ,
55 "type" : " commonjs" ,
66 "bin" : " ./bin/prettier.cjs"
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
2631// Defer to the real typescript/bin/tsc your application uses
27- module . exports = absRequire ( `typescript/bin/tsc` ) ;
32+ module . exports = wrapWithUserWrapper ( absRequire ( `typescript/bin/tsc` ) ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
2631// Defer to the real typescript/bin/tsserver your application uses
27- module . exports = absRequire ( `typescript/bin/tsserver` ) ;
32+ module . exports = wrapWithUserWrapper ( absRequire ( `typescript/bin/tsserver` ) ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
2631// Defer to the real typescript/lib/tsc.js your application uses
27- module . exports = absRequire ( `typescript/lib/tsc.js` ) ;
32+ module . exports = wrapWithUserWrapper ( absRequire ( `typescript/lib/tsc.js` ) ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,7 +24,15 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
26- const moduleWrapper = tsserver => {
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
31+ const moduleWrapper = exports => {
32+ return wrapWithUserWrapper ( moduleWrapperFn ( exports ) ) ;
33+ } ;
34+
35+ const moduleWrapperFn = tsserver => {
2736 if ( ! process . versions . pnp ) {
2837 return tsserver ;
2938 }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,7 +24,15 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
26- const moduleWrapper = tsserver => {
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
31+ const moduleWrapper = exports => {
32+ return wrapWithUserWrapper ( moduleWrapperFn ( exports ) ) ;
33+ } ;
34+
35+ const moduleWrapperFn = tsserver => {
2736 if ( ! process . versions . pnp ) {
2837 return tsserver ;
2938 }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const {pathToFileURL} = require(`url`);
88const relPnpApiPath = "../../../../.pnp.cjs" ;
99
1010const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
11+ const absUserWrapperPath = resolve ( __dirname , `./sdk.user.cjs` ) ;
1112const absRequire = createRequire ( absPnpApiPath ) ;
1213
1314const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
@@ -23,5 +24,9 @@ if (existsSync(absPnpApiPath)) {
2324 }
2425}
2526
27+ const wrapWithUserWrapper = existsSync ( absUserWrapperPath )
28+ ? exports => absRequire ( absUserWrapperPath ) ( exports )
29+ : exports => exports ;
30+
2631// Defer to the real typescript your application uses
27- module . exports = absRequire ( `typescript` ) ;
32+ module . exports = wrapWithUserWrapper ( absRequire ( `typescript` ) ) ;
You can’t perform that action at this time.
0 commit comments