@lamppost/create-ink-player 1.0.6 → 1.0.8

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/index.js CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  cpSync,
5
5
  existsSync,
6
6
  mkdirSync,
7
+ renameSync,
7
8
  readFileSync,
8
9
  rmSync,
9
10
  writeFileSync,
@@ -79,9 +80,9 @@ async function main() {
79
80
  console.log("Copying template files...");
80
81
  cpSync(templateDir, targetDir, { recursive: true });
81
82
 
82
- // Copy over .gitignore file
83
- const gitignorePath = join(templateDir, ".gitignore");
84
- cpSync(gitignorePath, join(targetDir, ".gitignore"));
83
+ // Rename _gitignore to .gitignore file
84
+ const gitignorePath = join(targetDir, "_gitignore");
85
+ renameSync(gitignorePath, join(targetDir, ".gitignore"));
85
86
 
86
87
  // Delete the node_modules directory, if it exists
87
88
  if (existsSync(join(targetDir, "node_modules"))) {
@@ -123,6 +124,16 @@ async function main() {
123
124
  process.exit(1);
124
125
  }
125
126
 
127
+ // Run pnpm update-ink-player
128
+ try {
129
+ execSync("pnpm update-ink-player", {
130
+ cwd: targetDir,
131
+ stdio: "inherit",
132
+ });
133
+ } catch (error) {
134
+ console.error("Error updating ink-player:", error.message);
135
+ }
136
+
126
137
  console.log(`\n${gameName} setup complete!`);
127
138
  console.log(`\nTo get started:`);
128
139
  console.log(` cd ${directoryName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lamppost/create-ink-player",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,8 @@
1
+ # Local
2
+ .DS_Store
3
+ *.local
4
+ *.log*
5
+
6
+ # Dist
7
+ node_modules
8
+ dist/
@@ -6,7 +6,7 @@ import { pluginSvgr } from "@rsbuild/plugin-svgr";
6
6
 
7
7
  export default defineConfig({
8
8
  output: {
9
- assetPrefix: "./",
9
+ assetPrefix: "auto",
10
10
  },
11
11
  dev: {
12
12
  hmr: false,