@dainprotocol/cli 1.0.14 → 1.0.15
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/dist/commands/dev.js +3 -3
- package/package.json +1 -1
package/dist/commands/dev.js
CHANGED
|
@@ -121,9 +121,6 @@ function dev(options) {
|
|
|
121
121
|
_a.label = 1;
|
|
122
122
|
case 1:
|
|
123
123
|
_a.trys.push([1, 8, , 9]);
|
|
124
|
-
if (!(runtime === 'node')) return [3 /*break*/, 4];
|
|
125
|
-
// Existing Node.js development process
|
|
126
|
-
startProcess(command, envVars);
|
|
127
124
|
if (!!options.noproxy) return [3 /*break*/, 3];
|
|
128
125
|
if (!config['api-key']) {
|
|
129
126
|
throw new Error("'api-key' is required when using development proxy");
|
|
@@ -133,6 +130,9 @@ function dev(options) {
|
|
|
133
130
|
proxyServer = _a.sent();
|
|
134
131
|
_a.label = 3;
|
|
135
132
|
case 3:
|
|
133
|
+
if (!(runtime === 'node')) return [3 /*break*/, 4];
|
|
134
|
+
// Existing Node.js development process
|
|
135
|
+
startProcess(command, envVars);
|
|
136
136
|
watchPaths = [
|
|
137
137
|
path_1.default.dirname(config['main-file']),
|
|
138
138
|
config['static-dir'] ? path_1.default.join(process.cwd(), config['static-dir']) : (0, utils_1.getStaticFilesPath)()
|