create-cubing-app 0.35.6-rc17 → 0.35.6-rc19

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.
@@ -74,15 +74,22 @@ const execOptions = {
74
74
  cwd: packageRoot,
75
75
  };
76
76
  await mkdir(packageRooted("src"), { recursive: true });
77
- async function transferFile(rootedPath) {
78
- const filePath = new URL(join("..", rootedPath), import.meta.url);
79
- const contents = await readFile(filePath, "utf-8");
77
+ async function transferFile(rootedPath, contents) {
78
+ contents ??= await (async () => {
79
+ const filePath = new URL(join("..", rootedPath), import.meta.url);
80
+ return readFile(filePath, "utf-8");
81
+ })();
80
82
  await writeFile(packageRooted(rootedPath), contents);
81
83
  }
82
84
  await transferFile("src/index.html");
83
85
  await transferFile("src/main.ts");
84
86
  await transferFile("src/index.css");
85
- await transferFile(".gitignore");
87
+ await transferFile(
88
+ ".gitignore",
89
+ `/dist
90
+ /node_modules
91
+ `,
92
+ );
86
93
 
87
94
  await execPromise("npm install --save cubing", execOptions);
88
95
  await execPromise("npm install --save-dev barely-a-dev-server", execOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cubing-app",
3
- "version": "0.35.6-rc17",
3
+ "version": "0.35.6-rc19",
4
4
  "type": "module",
5
5
  "bin": "./bin/create-cubing-app.js",
6
6
  "scripts": {
@@ -19,7 +19,6 @@
19
19
  },
20
20
  "files": [
21
21
  "./bin",
22
- ".gitignore",
23
22
  "./src"
24
23
  ]
25
24
  }
package/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- /dist
2
- /node_modules