@plasmicapp/cli 0.1.220 → 0.1.222
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/actions/init.js +1 -2
- package/dist/actions/sync.js +0 -7
- package/package.json +3 -3
- package/src/actions/init.ts +1 -2
- package/src/actions/sync.ts +0 -12
package/dist/actions/init.js
CHANGED
|
@@ -42,10 +42,9 @@ function initPlasmic(opts) {
|
|
|
42
42
|
if (!process.env.QUIET) {
|
|
43
43
|
deps_1.logger.info("Successfully created plasmic.json.\n");
|
|
44
44
|
}
|
|
45
|
-
const answer = yield user_utils_1.confirmWithUser("@plasmicapp/
|
|
45
|
+
const answer = yield user_utils_1.confirmWithUser("@plasmicapp/react-web is a small runtime required by Plasmic-generated code.\n Do you want to add them now?", opts.yes);
|
|
46
46
|
if (answer) {
|
|
47
47
|
npm_utils_1.installUpgrade("@plasmicapp/react-web", opts.baseDir);
|
|
48
|
-
npm_utils_1.installUpgrade("@plasmicapp/host", opts.baseDir);
|
|
49
48
|
}
|
|
50
49
|
});
|
|
51
50
|
}
|
package/dist/actions/sync.js
CHANGED
|
@@ -88,13 +88,6 @@ function ensureRequiredPackages(context, baseDir, yes) {
|
|
|
88
88
|
semver.gt(requireds["@plasmicapp/react-web"], reactWebVersion)) {
|
|
89
89
|
yield confirmInstall("@plasmicapp/react-web", requireds["@plasmicapp/react-web"], { global: false, dev: false });
|
|
90
90
|
}
|
|
91
|
-
const hostVersion = npm_utils_1.findInstalledVersion(context, baseDir, "@plasmicapp/host");
|
|
92
|
-
if (!hostVersion || semver.gt(requireds["@plasmicapp/host"], hostVersion)) {
|
|
93
|
-
yield confirmInstall("@plasmicapp/host", requireds["@plasmicapp/host"], {
|
|
94
|
-
global: false,
|
|
95
|
-
dev: false,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
91
|
if (context.config.code.reactRuntime === "automatic") {
|
|
99
92
|
// Using automatic runtime requires installing the @plasmicapp/react-web-runtime package
|
|
100
93
|
const runtimeVersion = npm_utils_1.findInstalledVersion(context, baseDir, "@plasmicapp/react-web-runtime");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.222",
|
|
4
4
|
"description": "plasmic cli for syncing local code with Plasmic designs",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=12"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@babel/preset-typescript": "^7.12.1",
|
|
23
|
-
"@plasmicapp/react-web": "0.2.
|
|
23
|
+
"@plasmicapp/react-web": "0.2.167",
|
|
24
24
|
"@types/findup-sync": "^2.0.2",
|
|
25
25
|
"@types/glob": "^7.1.3",
|
|
26
26
|
"@types/inquirer": "^6.5.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"wrap-ansi": "^7.0.0",
|
|
78
78
|
"yargs": "^15.4.1"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "c639a88566f317fdbdafb152b698b955262c5c44"
|
|
81
81
|
}
|
package/src/actions/init.ts
CHANGED
|
@@ -73,12 +73,11 @@ export async function initPlasmic(
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
const answer = await confirmWithUser(
|
|
76
|
-
"@plasmicapp/
|
|
76
|
+
"@plasmicapp/react-web is a small runtime required by Plasmic-generated code.\n Do you want to add them now?",
|
|
77
77
|
opts.yes
|
|
78
78
|
);
|
|
79
79
|
if (answer) {
|
|
80
80
|
installUpgrade("@plasmicapp/react-web", opts.baseDir);
|
|
81
|
-
installUpgrade("@plasmicapp/host", opts.baseDir);
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
|
package/src/actions/sync.ts
CHANGED
|
@@ -136,18 +136,6 @@ async function ensureRequiredPackages(
|
|
|
136
136
|
);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
const hostVersion = findInstalledVersion(
|
|
140
|
-
context,
|
|
141
|
-
baseDir,
|
|
142
|
-
"@plasmicapp/host"
|
|
143
|
-
);
|
|
144
|
-
if (!hostVersion || semver.gt(requireds["@plasmicapp/host"], hostVersion)) {
|
|
145
|
-
await confirmInstall("@plasmicapp/host", requireds["@plasmicapp/host"], {
|
|
146
|
-
global: false,
|
|
147
|
-
dev: false,
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
139
|
if (context.config.code.reactRuntime === "automatic") {
|
|
152
140
|
// Using automatic runtime requires installing the @plasmicapp/react-web-runtime package
|
|
153
141
|
const runtimeVersion = findInstalledVersion(
|