@plasmicapp/cli 0.1.182 → 0.1.183

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.
@@ -252,7 +252,7 @@ function replaceImports(context, code, fromPath, fixImportContext, removeImportD
252
252
  const meta = fixImportContext.codeComponentMetas[uuid];
253
253
  if (meta.componentImportPath[0] === ".") {
254
254
  // Relative path from the project root
255
- const toPath = upath_1.default.join(process.cwd(), meta.componentImportPath);
255
+ const toPath = upath_1.default.join(context.rootDir, meta.componentImportPath);
256
256
  lang_utils_1.assert(upath_1.default.isAbsolute(toPath));
257
257
  const realPath = makeImportPath(context, fromPath, toPath, true, true);
258
258
  stmt.source.value = realPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/cli",
3
- "version": "0.1.182",
3
+ "version": "0.1.183",
4
4
  "description": "plasmic cli for syncing local code with Plasmic designs",
5
5
  "engines": {
6
6
  "node": ">=12"
@@ -330,7 +330,7 @@ export function replaceImports(
330
330
  const meta = fixImportContext.codeComponentMetas[uuid];
331
331
  if (meta.componentImportPath[0] === ".") {
332
332
  // Relative path from the project root
333
- const toPath = path.join(process.cwd(), meta.componentImportPath);
333
+ const toPath = path.join(context.rootDir, meta.componentImportPath);
334
334
  assert(path.isAbsolute(toPath));
335
335
  const realPath = makeImportPath(context, fromPath, toPath, true, true);
336
336
  stmt.source.value = realPath;