uni-run 1.1.20 → 1.1.21
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.
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const path_1 = __importDefault(require("path"));
|
|
6
7
|
const as_1 = __importDefault(require("../helpers/as"));
|
|
7
8
|
const os_1 = __importDefault(require("../helpers/os"));
|
|
8
9
|
const helpers_1 = require("./helpers");
|
|
@@ -290,11 +291,11 @@ exports.default = (0, as_1.default)([
|
|
|
290
291
|
exts: ['html', 'htm'],
|
|
291
292
|
getRuntime([script, ...args], options, config) {
|
|
292
293
|
return {
|
|
293
|
-
exec: ['
|
|
294
|
+
exec: ['live-server', path_1.default.dirname(script), ...args],
|
|
294
295
|
watchExts: ['css', 'js', 'javascript'],
|
|
295
|
-
install: ['npm', 'install', '-g', '
|
|
296
|
+
install: ['npm', 'install', '-g', 'live-server'],
|
|
296
297
|
installHints: [
|
|
297
|
-
'Please install
|
|
298
|
+
'Please install live-server from https://www.npmjs.com/package/live-server',
|
|
298
299
|
],
|
|
299
300
|
};
|
|
300
301
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uni-run",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "Universal Runner for many language",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"uni-run": "./dist/bin.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@inquirer/confirm": "^5.1.19",
|
|
21
22
|
"@inquirer/prompts": "^6.0.1",
|
|
22
23
|
"ansi-colors": "^4.1.3",
|
|
23
24
|
"chokidar": "^4.0.1",
|