@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 +1 -1
- package/package.json +1 -1
- package/src/main.mts +1 -1
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(
|
|
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
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(
|
|
10
|
+
const __templateDir = path.resolve(import.meta.url, '../template');
|
|
11
11
|
|
|
12
12
|
interface Arguments {
|
|
13
13
|
packageName?: string;
|