@smi-digital/create-smi-app 1.0.4 → 1.0.6
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/index.js +5 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -334,7 +334,7 @@ function getTargetFileName(sourceName) {
|
|
|
334
334
|
return sourceName;
|
|
335
335
|
}
|
|
336
336
|
function toPackageName(projectName) {
|
|
337
|
-
const normalized = projectName.trim().toLowerCase().replaceAll(/\s+/gv, "-").replaceAll(/[^a-z0-9._
|
|
337
|
+
const normalized = projectName.trim().toLowerCase().replaceAll(/\s+/gv, "-").replaceAll(/[^a-z0-9._~\-]/gv, "").replaceAll(/-+/gv, "-").replaceAll(/^[._\-]+|[._\-]+$/gv, "");
|
|
338
338
|
return normalized || "app";
|
|
339
339
|
}
|
|
340
340
|
async function updatePackageJsonName(targetDir, projectName) {
|
|
@@ -580,6 +580,10 @@ function getAppTargets(options) {
|
|
|
580
580
|
];
|
|
581
581
|
}
|
|
582
582
|
async function createProjectStructure(options, projectRoot) {
|
|
583
|
+
if (options.projectType === "singleProject" && "framework" in options && asFramework(options.framework) === "none") {
|
|
584
|
+
await mkdir2(join5(projectRoot, "src"), { recursive: true });
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
583
587
|
if (options.projectType !== "monorepo") {
|
|
584
588
|
return;
|
|
585
589
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smi-digital/create-smi-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"depcruise": "depcruise . --exclude \"node_modules|dist|.husky|test\"",
|
|
32
32
|
"depcheck": "npm run knip && npm run depcruise",
|
|
33
33
|
"check": "npm run depcheck && npm run lint && npm run typecheck",
|
|
34
|
-
"prepack": "npm run build"
|
|
34
|
+
"prepack": "npm run build",
|
|
35
|
+
"prepublishOnly": "npm run build"
|
|
35
36
|
},
|
|
36
37
|
"author": "",
|
|
37
38
|
"license": "ISC",
|