@jayfong/x-server 2.95.0 → 2.95.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -213,10 +213,12 @@ _yargs.default.command('dev', '开始开发', _ => _.positional('index', {
213
213
  noInstall: argv['local-install'] === false,
214
214
  channel: channel,
215
215
  excludeFiles: (argv.exclude ? (0, _vtils.castArray)(argv.exclude) : []).map(item => {
216
- return _vtils.StringTemplate.render(item, envMap, {
216
+ return _vtils.StringTemplate.render(item, {
217
+ ...envMap,
218
+ _: _vtils.escapeRegExp
219
+ }, {
217
220
  code: true,
218
- onlyCode: true,
219
- beforeReplace: v => (0, _vtils.escapeRegExp)(v)
221
+ onlyCode: true
220
222
  });
221
223
  }),
222
224
  prismaCliBinaryTargets: envMap.PRISMA_CLI_BINARY_TARGETS,
package/lib/cli/cli.js CHANGED
@@ -211,10 +211,12 @@ yargs.command('dev', '开始开发', _ => _.positional('index', {
211
211
  noInstall: argv['local-install'] === false,
212
212
  channel: channel,
213
213
  excludeFiles: (argv.exclude ? castArray(argv.exclude) : []).map(item => {
214
- return StringTemplate.render(item, envMap, {
214
+ return StringTemplate.render(item, {
215
+ ...envMap,
216
+ _: escapeRegExp
217
+ }, {
215
218
  code: true,
216
- onlyCode: true,
217
- beforeReplace: v => escapeRegExp(v)
219
+ onlyCode: true
218
220
  });
219
221
  }),
220
222
  prismaCliBinaryTargets: envMap.PRISMA_CLI_BINARY_TARGETS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.95.0",
3
+ "version": "2.95.1",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",