@project-selene/create-mod 0.0.4 → 0.0.5

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/main.mjs CHANGED
@@ -5,7 +5,7 @@ import { promises as fsp } from "fs";
5
5
  import inquirer, {} from "inquirer";
6
6
  import path from "path";
7
7
  import { v4 as uuidv4 } from "uuid";
8
- const __templateDir = path.resolve("package.json", "../template");
8
+ const __templateDir = path.resolve(import.meta.url, "../template");
9
9
  const descriptions = {
10
10
  name: "The name displayed to mod users",
11
11
  packageName: "The name used for the npm package (no spaces, lowercase)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-selene/create-mod",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A script for creating new Alabaster Dawn mods.",
5
5
  "main": "dist/main.mjs",
6
6
  "bin": "dist/main.mjs",
package/src/main.mts CHANGED
@@ -7,7 +7,7 @@ import inquirer, { type DistinctQuestion } from 'inquirer';
7
7
  import path from 'path';
8
8
  import { v4 as uuidv4 } from "uuid";
9
9
 
10
- const __templateDir = path.resolve('package.json', '../template');
10
+ const __templateDir = path.resolve(import.meta.url, '../template');
11
11
 
12
12
  interface Arguments {
13
13
  packageName?: string;