node-karin 1.1.1 → 1.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/CHANGELOG.md +25 -0
- package/dist/cli/index.cjs +8 -6
- package/dist/cli/index.js +8 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.1.2](https://github.com/KarinJS/Karin/compare/core-v1.1.1...core-v1.1.2) (2025-01-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🐛 Bug Fixes
|
|
7
|
+
|
|
8
|
+
* create-karin ([758e20f](https://github.com/KarinJS/Karin/commit/758e20f2d824d23a998fe85c02883e1db53148f9))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### 🎫 Chores
|
|
12
|
+
|
|
13
|
+
* release main ([#238](https://github.com/KarinJS/Karin/issues/238)) ([0d68b7b](https://github.com/KarinJS/Karin/commit/0d68b7b9fdcb1857ece912b0c246273a4433567b))
|
|
14
|
+
|
|
15
|
+
## [1.1.1](https://github.com/KarinJS/Karin/compare/core-v1.1.0...core-v1.1.1) (2025-01-16)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### 🐛 Bug Fixes
|
|
19
|
+
|
|
20
|
+
* create-karin ([758e20f](https://github.com/KarinJS/Karin/commit/758e20f2d824d23a998fe85c02883e1db53148f9))
|
|
21
|
+
* getPlugins ([5484dfa](https://github.com/KarinJS/Karin/commit/5484dfac88e404116c8e61b755d8ced02aecc576))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### 🎫 Chores
|
|
25
|
+
|
|
26
|
+
* release main ([#237](https://github.com/KarinJS/Karin/issues/237)) ([f97e931](https://github.com/KarinJS/Karin/commit/f97e931e88c1fed0bb973ef06b7a33797a961c0a))
|
|
27
|
+
|
|
3
28
|
## [1.1.1](https://github.com/KarinJS/Karin/compare/core-v1.1.0...core-v1.1.1) (2025-01-16)
|
|
4
29
|
|
|
5
30
|
|
package/dist/cli/index.cjs
CHANGED
|
@@ -125,7 +125,7 @@ var createDir = () => {
|
|
|
125
125
|
path2__default.default.join(dir, "@karinjs", "temp", "console"),
|
|
126
126
|
path2__default.default.join(dir, "@karinjs", "temp", "html")
|
|
127
127
|
];
|
|
128
|
-
isDev && list.push(path2__default.default.join(dir, "plugins", "karin-plugin-example"));
|
|
128
|
+
!isDev && list.push(path2__default.default.join(dir, "plugins", "karin-plugin-example"));
|
|
129
129
|
list.forEach((item) => {
|
|
130
130
|
if (!fs2__default.default.existsSync(item)) fs2__default.default.mkdirSync(item, { recursive: true });
|
|
131
131
|
});
|
|
@@ -248,8 +248,8 @@ var createWorkspace = (dir2) => {
|
|
|
248
248
|
fs2__default.default.writeFileSync(workspace, content);
|
|
249
249
|
};
|
|
250
250
|
var createOtherFile = async () => {
|
|
251
|
-
isDev && createPnpmFile(dir);
|
|
252
|
-
isDev && createWorkspace(dir);
|
|
251
|
+
!isDev && createPnpmFile(dir);
|
|
252
|
+
!isDev && createWorkspace(dir);
|
|
253
253
|
if (!shouldSkipNpmrc()) {
|
|
254
254
|
createOrUpdateNpmrc(dir);
|
|
255
255
|
}
|
|
@@ -280,9 +280,11 @@ var modifyPackageJson = () => {
|
|
|
280
280
|
if (!data.scripts) data.scripts = {};
|
|
281
281
|
data.scripts.karin = "karin";
|
|
282
282
|
const list = ["app", "start", "pm2", "stop", "rs", "log"];
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
if (!isDev) {
|
|
284
|
+
list.forEach((v) => {
|
|
285
|
+
data.scripts[v] = `karin ${v}`;
|
|
286
|
+
});
|
|
287
|
+
}
|
|
286
288
|
fs2__default.default.writeFileSync(path2__default.default.join(dir, "package.json"), JSON.stringify(data, null, 2));
|
|
287
289
|
return data;
|
|
288
290
|
};
|
package/dist/cli/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var createDir = () => {
|
|
|
116
116
|
path2.join(dir, "@karinjs", "temp", "console"),
|
|
117
117
|
path2.join(dir, "@karinjs", "temp", "html")
|
|
118
118
|
];
|
|
119
|
-
isDev && list.push(path2.join(dir, "plugins", "karin-plugin-example"));
|
|
119
|
+
!isDev && list.push(path2.join(dir, "plugins", "karin-plugin-example"));
|
|
120
120
|
list.forEach((item) => {
|
|
121
121
|
if (!fs2.existsSync(item)) fs2.mkdirSync(item, { recursive: true });
|
|
122
122
|
});
|
|
@@ -239,8 +239,8 @@ var createWorkspace = (dir2) => {
|
|
|
239
239
|
fs2.writeFileSync(workspace, content);
|
|
240
240
|
};
|
|
241
241
|
var createOtherFile = async () => {
|
|
242
|
-
isDev && createPnpmFile(dir);
|
|
243
|
-
isDev && createWorkspace(dir);
|
|
242
|
+
!isDev && createPnpmFile(dir);
|
|
243
|
+
!isDev && createWorkspace(dir);
|
|
244
244
|
if (!shouldSkipNpmrc()) {
|
|
245
245
|
createOrUpdateNpmrc(dir);
|
|
246
246
|
}
|
|
@@ -271,9 +271,11 @@ var modifyPackageJson = () => {
|
|
|
271
271
|
if (!data.scripts) data.scripts = {};
|
|
272
272
|
data.scripts.karin = "karin";
|
|
273
273
|
const list = ["app", "start", "pm2", "stop", "rs", "log"];
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
if (!isDev) {
|
|
275
|
+
list.forEach((v) => {
|
|
276
|
+
data.scripts[v] = `karin ${v}`;
|
|
277
|
+
});
|
|
278
|
+
}
|
|
277
279
|
fs2.writeFileSync(path2.join(dir, "package.json"), JSON.stringify(data, null, 2));
|
|
278
280
|
return data;
|
|
279
281
|
};
|