@noita-ts/create-mod 0.1.0 → 0.1.2
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/index.js +3 -0
- package/package.json +5 -3
- package/template/src/settings.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -117,6 +117,9 @@ async function main() {
|
|
|
117
117
|
...Object.fromEntries(extraBaseDeps.map((dep) => [dep, "latest"])),
|
|
118
118
|
},
|
|
119
119
|
};
|
|
120
|
+
// npm strips .gitignore files from published packages,
|
|
121
|
+
// so it cannot live in the template and is generated here instead
|
|
122
|
+
fs.writeFileSync(path.join(location, ".gitignore"), ["node_modules", "dist", "noita"].join("\n") + "\n");
|
|
120
123
|
fs.writeFileSync(path.join(location, "package.json"), JSON.stringify(pkg, null, 2) + "\n");
|
|
121
124
|
p.note([`cd ${location}`, `npm install`, `npm start`, `npx nts publish`].join("\n"), "Next steps");
|
|
122
125
|
p.outro("Happy modding!");
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noita-ts/create-mod",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Scaffold a new noita-ts mod",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"bin":
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-mod": "dist/index.js"
|
|
8
|
+
},
|
|
7
9
|
"files": [
|
|
8
10
|
"dist",
|
|
9
11
|
"template"
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
"license": "MIT",
|
|
16
18
|
"devDependencies": {
|
|
17
19
|
"@types/node": "^25.3.2",
|
|
18
|
-
"typescript": "^
|
|
20
|
+
"typescript": "^6.0.2"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
23
|
"@clack/prompts": "^1.0.1"
|
package/template/src/settings.ts
CHANGED