@tuya-sat/micro-script 1.1.4 → 1.1.5
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.
|
@@ -14,11 +14,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const portfinder_1 = __importDefault(require("portfinder"));
|
|
16
16
|
const open_1 = __importDefault(require("open"));
|
|
17
|
-
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
18
|
-
const path_1 = __importDefault(require("path"));
|
|
19
17
|
const chalk_1 = __importDefault(require("chalk"));
|
|
20
18
|
const mainServer_1 = __importDefault(require("../module/mainServer"));
|
|
21
|
-
const micro_utils_1 = require("@tuya-sat/micro-utils");
|
|
22
19
|
const bundleServer_1 = require("../module/bundleServer");
|
|
23
20
|
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
24
21
|
console.log(chalk_1.default.yellow(`Tip: 目前--main命令是个体验命令,请知悉`));
|
|
@@ -37,9 +34,6 @@ const bundleServer_1 = require("../module/bundleServer");
|
|
|
37
34
|
port: mainServerPort,
|
|
38
35
|
microPort: bundledServerPort,
|
|
39
36
|
});
|
|
40
|
-
const packagePath = path_1.default.resolve(__dirname, "../../package.json");
|
|
41
|
-
const { name, version } = fs_extra_1.default.readJSONSync(packagePath);
|
|
42
|
-
(0, micro_utils_1.isNewVersions)(name, version);
|
|
43
37
|
(0, open_1.default)(`http://localhost:${mainServerPort}`);
|
|
44
38
|
(0, bundleServer_1.runBundleServer)({
|
|
45
39
|
port: bundledServerPort,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuya-sat/micro-script",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"bin": "./dist/bin/cli.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"@babel/preset-react": "^7.14.5",
|
|
16
16
|
"@babel/preset-typescript": "^7.15.0",
|
|
17
17
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
|
|
18
|
-
"@tuya-sat/micro-dev-loader": "1.1.
|
|
19
|
-
"@tuya-sat/micro-dev-proxy": "1.1.
|
|
20
|
-
"@tuya-sat/micro-utils": "1.1.
|
|
18
|
+
"@tuya-sat/micro-dev-loader": "1.1.5",
|
|
19
|
+
"@tuya-sat/micro-dev-proxy": "1.1.5",
|
|
20
|
+
"@tuya-sat/micro-utils": "1.1.5",
|
|
21
21
|
"babel-loader": "^8.2.2",
|
|
22
22
|
"babel-plugin-import": "^1.13.3",
|
|
23
23
|
"chalk": "4.1.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"typescript": "^4.4.4"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@tuya-sat/micro-dev-component": "^1.1.
|
|
61
|
+
"@tuya-sat/micro-dev-component": "^1.1.5"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"saturn-project",
|