@salesforce/webapp-template-cli-experimental 1.36.4 → 1.38.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../../src/nx-plugin/executors/apply-patches/executor.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C,OAAO,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAA8B,WAAW,CACxC,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,0BAA0B,CAAC,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../../src/nx-plugin/executors/apply-patches/executor.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C,OAAO,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAA8B,WAAW,CACxC,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,0BAA0B,CAAC,CAiFrC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
import { execSync } from "child_process";
|
|
7
|
-
import { join } from "path";
|
|
7
|
+
import { basename, join } from "path";
|
|
8
8
|
import { logger } from "@nx/devkit";
|
|
9
9
|
/**
|
|
10
10
|
* Nx executor for applying template patches
|
|
@@ -33,16 +33,19 @@ export default async function runExecutor(options, context) {
|
|
|
33
33
|
const workspaceRoot = context.root;
|
|
34
34
|
// Get project root (relative to workspace root)
|
|
35
35
|
const projectRoot = project.data.root;
|
|
36
|
+
// Get the folder name from the project root path
|
|
37
|
+
const projectFolderName = basename(projectRoot);
|
|
36
38
|
// Build paths for CLI command
|
|
37
39
|
const baseAppPath = options.baseAppPath || "packages/template/base-app/base-react-app";
|
|
38
|
-
const
|
|
40
|
+
const outputPath = join(projectRoot, "dist");
|
|
41
|
+
// Build the path to webapp
|
|
42
|
+
const webAppPath = join(outputPath, "force-app/main/default/webapplications", projectFolderName);
|
|
39
43
|
logger.info(`Applying patches for ${context.projectName}...`);
|
|
40
44
|
logger.info(` Feature path: ${projectRoot}`);
|
|
41
45
|
logger.info(` Base app: ${baseAppPath}`);
|
|
42
|
-
logger.info(` Output: ${
|
|
46
|
+
logger.info(` Output: ${outputPath}`);
|
|
43
47
|
// Execute the CLI command via npx tsx
|
|
44
48
|
const cliPath = "packages/template/cli/src/index.ts";
|
|
45
|
-
const outputPath = join(projectRoot, outputDir);
|
|
46
49
|
/*
|
|
47
50
|
* Unfortunately using applyPatchesCommand directly encounters module import errors
|
|
48
51
|
* when it comes to `feature.ts`
|
|
@@ -62,6 +65,13 @@ export default async function runExecutor(options, context) {
|
|
|
62
65
|
stdio: "inherit",
|
|
63
66
|
env: process.env,
|
|
64
67
|
});
|
|
68
|
+
// Clean up node_modules to prevent it from being cached
|
|
69
|
+
const nodeModulesPath = join(webAppPath, "node_modules");
|
|
70
|
+
logger.info(`\n\nRemoving ${nodeModulesPath} to exclude from Nx cache...`);
|
|
71
|
+
execSync(`rm -rf "${nodeModulesPath}"`, {
|
|
72
|
+
cwd: workspaceRoot,
|
|
73
|
+
stdio: "inherit",
|
|
74
|
+
});
|
|
65
75
|
return { success: true };
|
|
66
76
|
}
|
|
67
77
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../src/nx-plugin/executors/apply-patches/executor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../src/nx-plugin/executors/apply-patches/executor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAwB,MAAM,EAAE,MAAM,YAAY,CAAC;AAU1D;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,WAAW,CACxC,OAAoC,EACpC,OAAwB;IAExB,IAAI,CAAC;QACJ,uCAAuC;QACvC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC1B,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YACzC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC3B,CAAC;QAED,4BAA4B;QAC5B,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACjE,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,MAAM,CAAC,KAAK,CAAC,WAAW,OAAO,CAAC,WAAW,6BAA6B,CAAC,CAAC;YAC1E,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC3B,CAAC;QAED,qCAAqC;QACrC,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;QAEnC,gDAAgD;QAChD,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;QAEtC,iDAAiD;QACjD,MAAM,iBAAiB,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;QAEhD,8BAA8B;QAC9B,MAAM,WAAW,GAAG,OA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AE,aAAa;YAClB,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC1B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,MAAM,CAAC,KAAK,CAAC,4BAA4B,YAAY,EAAE,CAAC,CAAC;QACzD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC3B,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-cli-experimental",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"description": "CLI tool for applying feature patches to base apps",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"type": "module",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"typescript": "~5.9.3",
|
|
46
46
|
"vitest": "^4.0.17"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "2e2738a2a8d39a0a8872cb40e00484a20bfb81b5"
|
|
49
49
|
}
|