@jakubmazanec/carson-templates 9.0.1-next.ce79adcb → 9.1.0-next.b17ccbea
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jakubmazanec/carson-templates",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0-next.b17ccbea",
|
|
4
4
|
"description": "Collection of Carson templates.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"semver": "^7.8.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@jakubmazanec/carson": "3.0.7-next.
|
|
40
|
-
"@jakubmazanec/eslint-config": "5.0.1-next.
|
|
41
|
-
"@jakubmazanec/fs-utils": "0.2.19-next.
|
|
39
|
+
"@jakubmazanec/carson": "3.0.7-next.b17ccbea",
|
|
40
|
+
"@jakubmazanec/eslint-config": "5.0.1-next.b17ccbea",
|
|
41
|
+
"@jakubmazanec/fs-utils": "0.2.19-next.b17ccbea",
|
|
42
42
|
"@types/fs-extra": "^11.0.4",
|
|
43
43
|
"@types/lodash": "^4.17.25",
|
|
44
44
|
"@types/node": "^24.19.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"zen-observable": "^0.10.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@jakubmazanec/carson": "3.0.7-next.
|
|
63
|
+
"@jakubmazanec/carson": "3.0.7-next.b17ccbea"
|
|
64
64
|
},
|
|
65
65
|
"packageManager": "npm@11.21.0",
|
|
66
66
|
"engines": {
|
|
@@ -13,6 +13,23 @@ for (let project of workspace.projects) {
|
|
|
13
13
|
let copyFilesLines = ['COPY package-lock.json package.json /workspace/'];
|
|
14
14
|
let currentProject = project;
|
|
15
15
|
|
|
16
|
+
// `npm run build -- --filter=<app>` builds only the workspace projects the app depends on (transitively), so only those have a `build` directory in the build stage.
|
|
17
|
+
let dependencyProjectNames = new Set([currentProject.name]);
|
|
18
|
+
let previousSize = 0;
|
|
19
|
+
|
|
20
|
+
while (dependencyProjectNames.size !== previousSize) {
|
|
21
|
+
previousSize = dependencyProjectNames.size;
|
|
22
|
+
|
|
23
|
+
for (let dependency of workspace.allDependencies) {
|
|
24
|
+
if (
|
|
25
|
+
workspace.projects.some((workspaceProject) => workspaceProject.name === dependency.name) &&
|
|
26
|
+
dependency.projects.some((dependencyProject) => dependencyProjectNames.has(dependencyProject.name))
|
|
27
|
+
) {
|
|
28
|
+
dependencyProjectNames.add(dependency.name);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
16
33
|
for (let project of workspace.projects) {
|
|
17
34
|
if (project.config.deployment?.appName && project.name === currentProject.name) {
|
|
18
35
|
copyFilesLines.push(`COPY --from=build /workspace/${project.relativePath}/build /workspace/${project.relativePath}/build`);
|
|
@@ -22,7 +39,10 @@ for (let project of workspace.projects) {
|
|
|
22
39
|
copyFilesLines.push(`COPY --from=build /workspace/${project.relativePath}/bin /workspace/${project.relativePath}/bin`);
|
|
23
40
|
}
|
|
24
41
|
|
|
25
|
-
|
|
42
|
+
if (dependencyProjectNames.has(project.name)) {
|
|
43
|
+
copyFilesLines.push(`COPY --from=build /workspace/${project.relativePath}/build /workspace/${project.relativePath}/build`);
|
|
44
|
+
}
|
|
45
|
+
|
|
26
46
|
copyFilesLines.push(`COPY --from=build /workspace/${project.relativePath}/package.json /workspace/${project.relativePath}/package.json`);
|
|
27
47
|
}
|
|
28
48
|
}
|
|
@@ -24,8 +24,15 @@ for (let project of workspace.projects) {
|
|
|
24
24
|
lines.push(`!${project.relativePath}/gel.toml`);
|
|
25
25
|
}
|
|
26
26
|
} else {
|
|
27
|
-
lines.push(`!${project.relativePath}/${
|
|
27
|
+
lines.push(`!${project.relativePath}/${SOURCE_DIRECTORY}/**`);
|
|
28
28
|
lines.push(`!${project.relativePath}/package.json`);
|
|
29
|
+
lines.push(`!${project.relativePath}/tsconfig.json`);
|
|
30
|
+
|
|
31
|
+
if (project.config.template?.includes('projects/react-library')) {
|
|
32
|
+
lines.push(`!${project.relativePath}/.storybook/**`);
|
|
33
|
+
lines.push(`!${project.relativePath}/stories/**`);
|
|
34
|
+
lines.push(`!${project.relativePath}/vite.config.ts`);
|
|
35
|
+
}
|
|
29
36
|
|
|
30
37
|
if (project.packageJson.bin) {
|
|
31
38
|
lines.push(`!${project.relativePath}/bin/**`);
|