File tree Expand file tree Collapse file tree 5 files changed +36
-7
lines changed
Expand file tree Collapse file tree 5 files changed +36
-7
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33const { existsSync} = require ( `fs` ) ;
4- const { createRequire} = require ( `module` ) ;
4+ const { createRequire, register } = require ( `module` ) ;
55const { resolve} = require ( `path` ) ;
6+ const { pathToFileURL} = require ( `url` ) ;
67
78const relPnpApiPath = "../../../../.pnp.cjs" ;
89
910const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
1011const absRequire = createRequire ( absPnpApiPath ) ;
1112
13+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
14+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
15+
1216if ( existsSync ( absPnpApiPath ) ) {
1317 if ( ! process . versions . pnp ) {
1418 // Setup the environment to be able to require prettier/bin/prettier.cjs
1519 require ( absPnpApiPath ) . setup ( ) ;
20+ if ( isPnpLoaderEnabled && register ) {
21+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
22+ }
1623 }
1724}
1825
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33const { existsSync} = require ( `fs` ) ;
4- const { createRequire} = require ( `module` ) ;
4+ const { createRequire, register } = require ( `module` ) ;
55const { resolve} = require ( `path` ) ;
6+ const { pathToFileURL} = require ( `url` ) ;
67
78const relPnpApiPath = "../../../.pnp.cjs" ;
89
910const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
1011const absRequire = createRequire ( absPnpApiPath ) ;
1112
13+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
14+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
15+
1216if ( existsSync ( absPnpApiPath ) ) {
1317 if ( ! process . versions . pnp ) {
1418 // Setup the environment to be able to require prettier
1519 require ( absPnpApiPath ) . setup ( ) ;
20+ if ( isPnpLoaderEnabled && register ) {
21+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
22+ }
1623 }
1724}
1825
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33const { existsSync} = require ( `fs` ) ;
4- const { createRequire} = require ( `module` ) ;
4+ const { createRequire, register } = require ( `module` ) ;
55const { resolve} = require ( `path` ) ;
6+ const { pathToFileURL} = require ( `url` ) ;
67
78const relPnpApiPath = "../../../../.pnp.cjs" ;
89
910const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
1011const absRequire = createRequire ( absPnpApiPath ) ;
1112
13+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
14+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
15+
1216if ( existsSync ( absPnpApiPath ) ) {
1317 if ( ! process . versions . pnp ) {
1418 // Setup the environment to be able to require typescript/bin/tsc
1519 require ( absPnpApiPath ) . setup ( ) ;
20+ if ( isPnpLoaderEnabled && register ) {
21+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
22+ }
1623 }
1724}
1825
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33const { existsSync} = require ( `fs` ) ;
4- const { createRequire} = require ( `module` ) ;
4+ const { createRequire, register } = require ( `module` ) ;
55const { resolve} = require ( `path` ) ;
6+ const { pathToFileURL} = require ( `url` ) ;
67
78const relPnpApiPath = "../../../../.pnp.cjs" ;
89
910const absPnpApiPath = resolve ( __dirname , relPnpApiPath ) ;
1011const absRequire = createRequire ( absPnpApiPath ) ;
1112
13+ const absPnpLoaderPath = resolve ( absPnpApiPath , `../.pnp.loader.mjs` ) ;
14+ const isPnpLoaderEnabled = existsSync ( absPnpLoaderPath ) ;
15+
1216if ( existsSync ( absPnpApiPath ) ) {
1317 if ( ! process . versions . pnp ) {
1418 // Setup the environment to be able to require typescript/bin/tsserver
1519 require ( absPnpApiPath ) . setup ( ) ;
20+ if ( isPnpLoaderEnabled && register ) {
21+ register ( pathToFileURL ( absPnpLoaderPath ) ) ;
22+ }
1623 }
1724}
1825
Original file line number Diff line number Diff line change @@ -344,13 +344,13 @@ __metadata:
344344 linkType : soft
345345
346346" @gecut/signal@npm:^2.2.2 " :
347- version : 2.2.2
348- resolution : " @gecut/signal@npm:2.2.2 "
347+ version : 2.2.3
348+ resolution : " @gecut/signal@npm:2.2.3 "
349349 dependencies :
350350 " @gecut/logger " : " npm:^1.4.4"
351351 " @gecut/types " : " npm:^2.2.1"
352352 " @gecut/utilities " : " npm:^5.4.0"
353- checksum : 10c0/c40cf932c21cbb411c6cbbaa7d583959f500e144c1563a85bf6b4e58b237fdb0dadacf5a038e2129bfda6bc4da2026901f63534cb491e8a62be501ab0cd851af
353+ checksum : 10c0/a4ec9dfd887cad99e8cc20170fecd46a59d0b6bb865426221b8f32c4fb29b98bef1ddaf53c08ec8c022914a31d8315ec30932bc8bfc4f937f1e685c0a0ead64c
354354 languageName : node
355355 linkType : hard
356356
@@ -3358,6 +3358,7 @@ __metadata:
33583358 " @gecut/signal " : " npm:^2.2.2"
33593359 " @gecut/styles " : " workspace:^"
33603360 " @gecut/types " : " npm:^2.2.1"
3361+ " @gecut/utilities " : " npm:^5.4.0"
33613362 " @tailwindcss/aspect-ratio " : " npm:^0.4.2"
33623363 " @tailwindcss/nesting " : " npm:^0.0.0-insiders.565cd3e"
33633364 " @types/node " : " npm:^20.11.30"
You can’t perform that action at this time.
0 commit comments