mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
build: replace deprecated built-in punycode with userland package (#19502)
This commit is contained in:
@@ -75,6 +75,10 @@ const baseConfig = {
|
|||||||
write: true,
|
write: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const commonAliases = {
|
||||||
|
punycode: 'punycode/',
|
||||||
|
};
|
||||||
|
|
||||||
const cliConfig = {
|
const cliConfig = {
|
||||||
...baseConfig,
|
...baseConfig,
|
||||||
banner: {
|
banner: {
|
||||||
@@ -88,6 +92,7 @@ const cliConfig = {
|
|||||||
plugins: createWasmPlugins(),
|
plugins: createWasmPlugins(),
|
||||||
alias: {
|
alias: {
|
||||||
'is-in-ci': path.resolve(__dirname, 'packages/cli/src/patches/is-in-ci.ts'),
|
'is-in-ci': path.resolve(__dirname, 'packages/cli/src/patches/is-in-ci.ts'),
|
||||||
|
...commonAliases,
|
||||||
},
|
},
|
||||||
metafile: true,
|
metafile: true,
|
||||||
};
|
};
|
||||||
@@ -103,6 +108,7 @@ const a2aServerConfig = {
|
|||||||
'process.env.CLI_VERSION': JSON.stringify(pkg.version),
|
'process.env.CLI_VERSION': JSON.stringify(pkg.version),
|
||||||
},
|
},
|
||||||
plugins: createWasmPlugins(),
|
plugins: createWasmPlugins(),
|
||||||
|
alias: commonAliases,
|
||||||
};
|
};
|
||||||
|
|
||||||
Promise.allSettled([
|
Promise.allSettled([
|
||||||
|
|||||||
Generated
+1
-1
@@ -14,6 +14,7 @@
|
|||||||
"ink": "npm:@jrichman/ink@6.4.11",
|
"ink": "npm:@jrichman/ink@6.4.11",
|
||||||
"latest-version": "^9.0.0",
|
"latest-version": "^9.0.0",
|
||||||
"proper-lockfile": "^4.1.2",
|
"proper-lockfile": "^4.1.2",
|
||||||
|
"punycode": "^2.3.1",
|
||||||
"simple-git": "^3.28.0"
|
"simple-git": "^3.28.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -13520,7 +13521,6 @@
|
|||||||
"version": "2.3.1",
|
"version": "2.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
||||||
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
|
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
|
||||||
"devOptional": true,
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
|
|||||||
@@ -129,6 +129,7 @@
|
|||||||
"ink": "npm:@jrichman/ink@6.4.11",
|
"ink": "npm:@jrichman/ink@6.4.11",
|
||||||
"latest-version": "^9.0.0",
|
"latest-version": "^9.0.0",
|
||||||
"proper-lockfile": "^4.1.2",
|
"proper-lockfile": "^4.1.2",
|
||||||
|
"punycode": "^2.3.1",
|
||||||
"simple-git": "^3.28.0"
|
"simple-git": "^3.28.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ async function main() {
|
|||||||
define: {
|
define: {
|
||||||
'import.meta.url': 'import_meta.url',
|
'import.meta.url': 'import_meta.url',
|
||||||
},
|
},
|
||||||
|
alias: {
|
||||||
|
punycode: 'punycode/',
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
/* add to the end of plugins array */
|
/* add to the end of plugins array */
|
||||||
esbuildProblemMatcherPlugin,
|
esbuildProblemMatcherPlugin,
|
||||||
|
|||||||
Reference in New Issue
Block a user