-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: patch @pkgr packages for node compatibility
- Loading branch information
Showing
5 changed files
with
245 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/node_modules/@pkgr/core/lib/helpers.js b/node_modules/@pkgr/core/lib/helpers.js | ||
index 806148f..770d272 100644 | ||
--- a/node_modules/@pkgr/core/lib/helpers.js | ||
+++ b/node_modules/@pkgr/core/lib/helpers.js | ||
@@ -1,5 +1,5 @@ | ||
-import fs from 'node:fs'; | ||
-import path from 'node:path'; | ||
+import fs from 'fs'; | ||
+import path from 'path'; | ||
import { CWD, EXTENSIONS, cjsRequire } from './constants.js'; | ||
export const tryPkg = (pkg) => { | ||
try { | ||
diff --git a/node_modules/@pkgr/core/lib/index.cjs b/node_modules/@pkgr/core/lib/index.cjs | ||
index 6c7375a..2602d12 100644 | ||
--- a/node_modules/@pkgr/core/lib/index.cjs | ||
+++ b/node_modules/@pkgr/core/lib/index.cjs | ||
@@ -1,8 +1,8 @@ | ||
'use strict'; | ||
|
||
-var node_module = require('node:module'); | ||
-var fs = require('node:fs'); | ||
-var path = require('node:path'); | ||
+var node_module = require('module'); | ||
+var fs = require('fs'); | ||
+var path = require('path'); | ||
|
||
const import_meta = {}; | ||
const CWD = process.cwd(); |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/node_modules/@pkgr/rollup/lib/cli.js b/node_modules/@pkgr/rollup/lib/cli.js | ||
index 6b87f60..3c7047e 100755 | ||
--- a/node_modules/@pkgr/rollup/lib/cli.js | ||
+++ b/node_modules/@pkgr/rollup/lib/cli.js | ||
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env node | ||
-import path from 'node:path'; | ||
-import { fileURLToPath } from 'node:url'; | ||
+import path from 'path'; | ||
+import { fileURLToPath } from 'url'; | ||
import { tryRequirePkg } from '@pkgr/utils'; | ||
import { program } from 'commander'; | ||
import debug from 'debug'; | ||
diff --git a/node_modules/@pkgr/rollup/lib/config.js b/node_modules/@pkgr/rollup/lib/config.js | ||
index 8a60fcc..8e22ac4 100644 | ||
--- a/node_modules/@pkgr/rollup/lib/config.js | ||
+++ b/node_modules/@pkgr/rollup/lib/config.js | ||
@@ -1,5 +1,5 @@ | ||
-import fs from 'node:fs'; | ||
-import path from 'node:path'; | ||
+import fs from 'fs'; | ||
+import path from 'path'; | ||
import { entries } from '@pkgr/es-modules'; | ||
import { getGlobals, normalizePkg, upperCamelCase, } from '@pkgr/umd-globals'; | ||
import { CWD, EXTENSIONS, PROD, __DEV__, __PROD__, arrayify, identify, monorepoPkgs, tryExtensions, tryFile, tryGlob, tryPkg, tryRequirePkg, } from '@pkgr/utils'; |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
diff --git a/node_modules/@pkgr/utils/lib/browser.js b/node_modules/@pkgr/utils/lib/browser.js | ||
index b36ffa9..0140c1a 100644 | ||
--- a/node_modules/@pkgr/utils/lib/browser.js | ||
+++ b/node_modules/@pkgr/utils/lib/browser.js | ||
@@ -1,7 +1,7 @@ | ||
import { __awaiter } from "tslib"; | ||
-import { execSync } from 'node:child_process'; | ||
-import path from 'node:path'; | ||
-import { fileURLToPath } from 'node:url'; | ||
+import { execSync } from 'child_process'; | ||
+import path from 'path'; | ||
+import { fileURLToPath } from 'url'; | ||
import spawn from 'cross-spawn'; | ||
import picocolors from 'picocolors'; | ||
const OSX_CHROME = 'google chrome'; | ||
diff --git a/node_modules/@pkgr/utils/lib/constants.js b/node_modules/@pkgr/utils/lib/constants.js | ||
index a09c9b0..ea782f7 100644 | ||
--- a/node_modules/@pkgr/utils/lib/constants.js | ||
+++ b/node_modules/@pkgr/utils/lib/constants.js | ||
@@ -1,5 +1,5 @@ | ||
var _a; | ||
-import { createRequire } from 'node:module'; | ||
+import { createRequire } from 'module'; | ||
export const DEV = 'development'; | ||
export const PROD = 'production'; | ||
export const NODE_ENV = (_a = process.env.NODE_ENV) !== null && _a !== void 0 ? _a : DEV; | ||
diff --git a/node_modules/@pkgr/utils/lib/helpers.js b/node_modules/@pkgr/utils/lib/helpers.js | ||
index 3caead9..de43f7f 100644 | ||
--- a/node_modules/@pkgr/utils/lib/helpers.js | ||
+++ b/node_modules/@pkgr/utils/lib/helpers.js | ||
@@ -1,5 +1,5 @@ | ||
-import fs from 'node:fs'; | ||
-import path from 'node:path'; | ||
+import fs from 'fs'; | ||
+import path from 'path'; | ||
import isGlob from 'is-glob'; | ||
import { CWD, EXTENSIONS, cjsRequire, SCRIPT_RUNNERS, SCRIPT_EXECUTORS, } from './constants.js'; | ||
export const tryPkg = (pkg) => { | ||
diff --git a/node_modules/@pkgr/utils/lib/index.cjs b/node_modules/@pkgr/utils/lib/index.cjs | ||
index 88c446f..0653a4a 100644 | ||
--- a/node_modules/@pkgr/utils/lib/index.cjs | ||
+++ b/node_modules/@pkgr/utils/lib/index.cjs | ||
@@ -1,12 +1,12 @@ | ||
'use strict'; | ||
|
||
-var node_child_process = require('node:child_process'); | ||
-var path = require('node:path'); | ||
-var node_url = require('node:url'); | ||
+var node_child_process = require('child_process'); | ||
+var path = require('path'); | ||
+var node_url = require('url'); | ||
var spawn = require('cross-spawn'); | ||
var picocolors = require('picocolors'); | ||
-var node_module = require('node:module'); | ||
-var fs = require('node:fs'); | ||
+var node_module = require('module'); | ||
+var fs = require('fs'); | ||
var isGlob = require('is-glob'); | ||
|
||
var __async = (__this, __arguments, generator) => { | ||
diff --git a/node_modules/@pkgr/utils/lib/monorepo.js b/node_modules/@pkgr/utils/lib/monorepo.js | ||
index 7126296..7166d1f 100644 | ||
--- a/node_modules/@pkgr/utils/lib/monorepo.js | ||
+++ b/node_modules/@pkgr/utils/lib/monorepo.js | ||
@@ -1,5 +1,5 @@ | ||
var _a, _b, _c, _d; | ||
-import path from 'node:path'; | ||
+import path from 'path'; | ||
import { tryGlob, tryRequirePkg } from './helpers.js'; | ||
const pkg = (_a = tryRequirePkg(path.resolve('package.json'))) !== null && _a !== void 0 ? _a : {}; | ||
const lernaConfig = (_b = tryRequirePkg(path.resolve('lerna.json'))) !== null && _b !== void 0 ? _b : {}; |
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