@jayfong/x-server 2.95.1 → 2.95.2
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.
- package/lib/_cjs/cli/cli.js +5 -2
- package/lib/cli/cli.js +4 -2
- package/package.json +1 -1
package/lib/_cjs/cli/cli.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
6
|
var _path = _interopRequireDefault(require("path"));
|
|
6
7
|
var _chokidar = _interopRequireDefault(require("chokidar"));
|
|
7
8
|
var _execa = _interopRequireDefault(require("execa"));
|
|
8
9
|
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
9
10
|
var _vscodeGenerateIndexStandalone = require("vscode-generate-index-standalone");
|
|
10
|
-
var _vtils = require("vtils");
|
|
11
|
+
var _vtils = _interopRequireWildcard(require("vtils"));
|
|
12
|
+
var vtils = _vtils;
|
|
11
13
|
var _yargs = _interopRequireDefault(require("yargs"));
|
|
12
14
|
var _api_generator = require("./api_generator");
|
|
13
15
|
var _build_util = require("./build_util");
|
|
@@ -215,7 +217,8 @@ _yargs.default.command('dev', '开始开发', _ => _.positional('index', {
|
|
|
215
217
|
excludeFiles: (argv.exclude ? (0, _vtils.castArray)(argv.exclude) : []).map(item => {
|
|
216
218
|
return _vtils.StringTemplate.render(item, {
|
|
217
219
|
...envMap,
|
|
218
|
-
_:
|
|
220
|
+
_: vtils,
|
|
221
|
+
__: vtils.escapeRegExp
|
|
219
222
|
}, {
|
|
220
223
|
code: true,
|
|
221
224
|
onlyCode: true
|
package/lib/cli/cli.js
CHANGED
|
@@ -4,8 +4,9 @@ import chokidar from 'chokidar';
|
|
|
4
4
|
import execa from 'execa';
|
|
5
5
|
import fs from 'fs-extra';
|
|
6
6
|
import { generateManyIndex } from 'vscode-generate-index-standalone';
|
|
7
|
-
import { castArray, debounce
|
|
7
|
+
import { castArray, debounce } from 'vtils';
|
|
8
8
|
import { StringTemplate } from 'vtils';
|
|
9
|
+
import * as vtils from 'vtils';
|
|
9
10
|
import yargs from 'yargs';
|
|
10
11
|
import { ApiGenerator } from "./api_generator";
|
|
11
12
|
import { BuildUtil } from "./build_util";
|
|
@@ -213,7 +214,8 @@ yargs.command('dev', '开始开发', _ => _.positional('index', {
|
|
|
213
214
|
excludeFiles: (argv.exclude ? castArray(argv.exclude) : []).map(item => {
|
|
214
215
|
return StringTemplate.render(item, {
|
|
215
216
|
...envMap,
|
|
216
|
-
_:
|
|
217
|
+
_: vtils,
|
|
218
|
+
__: vtils.escapeRegExp
|
|
217
219
|
}, {
|
|
218
220
|
code: true,
|
|
219
221
|
onlyCode: true
|