htmv 0.0.45 → 0.0.46
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/cli/commands/new.js +4 -3
- package/package.json +1 -1
package/dist/cli/commands/new.js
CHANGED
|
@@ -67,9 +67,10 @@ export default async (_params: RouteParams) => {
|
|
|
67
67
|
});
|
|
68
68
|
console.log("6. Rewriting tsconfig.json...");
|
|
69
69
|
const tsconfig = await fs.readFile(path.join(fullPath, "tsconfig.json"), "utf-8");
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
let tsconfigWithoutStartingBracket = tsconfig.split("\n").slice(1).join("\n");
|
|
71
|
+
tsconfigWithoutStartingBracket = `{
|
|
72
|
+
"exclude": ["public"],
|
|
73
|
+
${tsconfigWithoutStartingBracket}`;
|
|
73
74
|
console.log(`All done! Project ${name} created.`);
|
|
74
75
|
console.log(`Now run cd ${name} and start building your next big project!`);
|
|
75
76
|
};
|