@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.
package/dist/utils/code-utils.js
CHANGED
|
@@ -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(
|
|
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
package/src/utils/code-utils.ts
CHANGED
|
@@ -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(
|
|
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;
|