@plasmicapp/cli 0.1.221 → 0.1.223

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.
@@ -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/host and @plasmicapp/react-web are small runtimes required by Plasmic-generated code.\n Do you want to add them now?", opts.yes);
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
  }
@@ -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.221",
3
+ "version": "0.1.223",
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.166",
23
+ "@plasmicapp/react-web": "0.2.168",
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": "a27337f9affaa387ff97eb47d34a92ec3538ee68"
80
+ "gitHead": "67e119ae46c42a2b4440cd98b4d168d0b69ca229"
81
81
  }
@@ -73,12 +73,11 @@ export async function initPlasmic(
73
73
  }
74
74
 
75
75
  const answer = await confirmWithUser(
76
- "@plasmicapp/host and @plasmicapp/react-web are small runtimes required by Plasmic-generated code.\n Do you want to add them now?",
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
 
@@ -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(