node-karin 1.2.3 → 1.2.4-pr.251.7b5c8ba

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.
@@ -109,7 +109,7 @@ var pkgDir = url.fileURLToPath(new url.URL("../..", (typeof document === 'undefi
109
109
  var isPluginDev = () => {
110
110
  const pkg = fs2__default.default.readFileSync(path2__default.default.join(dir, "package.json"), "utf-8");
111
111
  const data = JSON.parse(pkg);
112
- if (data == null ? undefined : data.karin) return true;
112
+ if (data == null ? void 0 : data.karin) return true;
113
113
  if (fs2__default.default.existsSync(path2__default.default.join(dir, "src"))) return true;
114
114
  if (fs2__default.default.existsSync(path2__default.default.join(dir, "tsconfig.json"))) return true;
115
115
  if (fs2__default.default.existsSync(path2__default.default.join(dir, ".prettierrc"))) return true;
@@ -281,6 +281,11 @@ var modifyPackageJson = () => {
281
281
  data.type = "module";
282
282
  if (!data.scripts) data.scripts = {};
283
283
  data.scripts.karin = "karin";
284
+ data.pnpm = {};
285
+ data.pnpm.ignoredBuiltDependencies = [
286
+ "sqlite3",
287
+ "classic-level"
288
+ ];
284
289
  const list = ["app", "start", "pm2", "stop", "rs", "log"];
285
290
  if (!isDev) {
286
291
  list.forEach((v) => {
@@ -447,7 +452,7 @@ var updateAll = async () => {
447
452
  }
448
453
  };
449
454
  var _a;
450
- if (!((_a = process.argv) == null ? undefined : _a[2])) process.argv.push("-h");
455
+ if (!((_a = process.argv) == null ? void 0 : _a[2])) process.argv.push("-h");
451
456
  var addEnvOption = (command) => {
452
457
  return command.option("-e, --env <files>", "\u6307\u5B9A\u73AF\u5883\u53D8\u91CF\u6587\u4EF6\uFF0C\u591A\u4E2A\u6587\u4EF6\u7528\u9017\u53F7\u5206\u9694");
453
458
  };
package/dist/cli/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import fs2 from 'node:fs';
3
3
  import { fileURLToPath, URL as URL$1 } from 'node:url';
4
4
  import path2, { join } from 'node:path';
5
- import { fork, spawn, execSync as execSync$1, exec as exec$1 } from 'node:child_process';
5
+ import { spawn, fork, execSync as execSync$1, exec as exec$1 } from 'node:child_process';
6
6
  import dotenv from 'dotenv';
7
7
  import { program } from 'commander';
8
8
 
@@ -100,7 +100,7 @@ var pkgDir = fileURLToPath(new URL$1("../..", import.meta.url));
100
100
  var isPluginDev = () => {
101
101
  const pkg = fs2.readFileSync(path2.join(dir, "package.json"), "utf-8");
102
102
  const data = JSON.parse(pkg);
103
- if (data == null ? undefined : data.karin) return true;
103
+ if (data == null ? void 0 : data.karin) return true;
104
104
  if (fs2.existsSync(path2.join(dir, "src"))) return true;
105
105
  if (fs2.existsSync(path2.join(dir, "tsconfig.json"))) return true;
106
106
  if (fs2.existsSync(path2.join(dir, ".prettierrc"))) return true;
@@ -272,6 +272,11 @@ var modifyPackageJson = () => {
272
272
  data.type = "module";
273
273
  if (!data.scripts) data.scripts = {};
274
274
  data.scripts.karin = "karin";
275
+ data.pnpm = {};
276
+ data.pnpm.ignoredBuiltDependencies = [
277
+ "sqlite3",
278
+ "classic-level"
279
+ ];
275
280
  const list = ["app", "start", "pm2", "stop", "rs", "log"];
276
281
  if (!isDev) {
277
282
  list.forEach((v) => {
@@ -438,7 +443,7 @@ var updateAll = async () => {
438
443
  }
439
444
  };
440
445
  var _a;
441
- if (!((_a = process.argv) == null ? undefined : _a[2])) process.argv.push("-h");
446
+ if (!((_a = process.argv) == null ? void 0 : _a[2])) process.argv.push("-h");
442
447
  var addEnvOption = (command) => {
443
448
  return command.option("-e, --env <files>", "\u6307\u5B9A\u73AF\u5883\u53D8\u91CF\u6587\u4EF6\uFF0C\u591A\u4E2A\u6587\u4EF6\u7528\u9017\u53F7\u5206\u9694");
444
449
  };