@plasmicapp/cli 0.1.177 → 0.1.178
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.
|
@@ -13,9 +13,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.getGlobalContextsResourcePath = exports.syncGlobalContexts = void 0;
|
|
16
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
16
17
|
const deps_1 = require("../deps");
|
|
17
18
|
const code_utils_1 = require("../utils/code-utils");
|
|
18
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
19
19
|
const file_utils_1 = require("../utils/file-utils");
|
|
20
20
|
const COMPONENT_NAME = "PlasmicGlobalContextsProvider";
|
|
21
21
|
function syncGlobalContexts(context, projectMeta, projectConfig, projectLock, checksums, baseDir) {
|
|
@@ -28,7 +28,7 @@ function syncGlobalContexts(context, projectMeta, projectConfig, projectLock, ch
|
|
|
28
28
|
if (context.config.code.lang === "js") {
|
|
29
29
|
projectMeta.globalContextBundle.contextModule = code_utils_1.formatScript(code_utils_1.tsxToJsx(projectMeta.globalContextBundle.contextModule), baseDir);
|
|
30
30
|
}
|
|
31
|
-
file_utils_1.writeFileContent(context, resourcePath, projectMeta.globalContextBundle.contextModule, { force:
|
|
31
|
+
file_utils_1.writeFileContent(context, resourcePath, projectMeta.globalContextBundle.contextModule, { force: true });
|
|
32
32
|
projectConfig.globalContextsFilePath = resourcePath;
|
|
33
33
|
const fl = projectLock.fileLocks.find((fl) => fl.assetId === projectConfig.projectId && fl.type === "globalContexts");
|
|
34
34
|
if (fl) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import L from "lodash";
|
|
1
2
|
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
3
|
import { logger } from "../deps";
|
|
3
4
|
import { formatScript, tsxToJsx } from "../utils/code-utils";
|
|
4
|
-
import L from "lodash";
|
|
5
5
|
import {
|
|
6
6
|
PlasmicContext,
|
|
7
7
|
ProjectConfig,
|
|
@@ -41,7 +41,7 @@ export async function syncGlobalContexts(
|
|
|
41
41
|
context,
|
|
42
42
|
resourcePath,
|
|
43
43
|
projectMeta.globalContextBundle.contextModule,
|
|
44
|
-
{ force:
|
|
44
|
+
{ force: true }
|
|
45
45
|
);
|
|
46
46
|
projectConfig.globalContextsFilePath = resourcePath;
|
|
47
47
|
const fl = projectLock.fileLocks.find(
|