@fedify/init 2.0.7 → 2.0.9

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.
Files changed (63) hide show
  1. package/dist/action/{configs.js → configs.mjs} +7 -9
  2. package/dist/action/{const.js → const.mjs} +1 -3
  3. package/dist/action/{deps.js → deps.mjs} +6 -10
  4. package/dist/action/{dir.js → dir.mjs} +1 -3
  5. package/dist/action/{env.js → env.mjs} +3 -6
  6. package/dist/action/{install.js → install.mjs} +2 -5
  7. package/dist/action/{mod.d.ts → mod.d.mts} +2 -3
  8. package/dist/action/{mod.js → mod.mjs} +15 -18
  9. package/dist/action/{notice.js → notice.mjs} +4 -6
  10. package/dist/action/{patch.js → patch.mjs} +8 -11
  11. package/dist/action/{precommand.js → precommand.mjs} +2 -5
  12. package/dist/action/{recommend.js → recommend.mjs} +5 -8
  13. package/dist/action/{set.js → set.mjs} +5 -8
  14. package/dist/action/{templates.js → templates.mjs} +4 -6
  15. package/dist/action/{utils.js → utils.mjs} +1 -3
  16. package/dist/ask/{dir.js → dir.mjs} +3 -6
  17. package/dist/ask/{kv.js → kv.mjs} +4 -7
  18. package/dist/ask/mod.mjs +10 -0
  19. package/dist/ask/{mq.js → mq.mjs} +4 -7
  20. package/dist/ask/{pm.js → pm.mjs} +8 -11
  21. package/dist/ask/{wf.js → wf.mjs} +4 -7
  22. package/dist/{command.d.ts → command.d.mts} +9 -9
  23. package/dist/{command.js → command.mjs} +2 -4
  24. package/dist/{const.d.ts → const.d.mts} +0 -1
  25. package/dist/{const.js → const.mjs} +3 -5
  26. package/dist/deno.mjs +4 -0
  27. package/dist/json/biome.mjs +13 -0
  28. package/dist/json/db-to-check.mjs +20 -0
  29. package/dist/json/kv.mjs +58 -0
  30. package/dist/json/mq.mjs +76 -0
  31. package/dist/json/pm.mjs +35 -0
  32. package/dist/json/rt.mjs +30 -0
  33. package/dist/json/vscode-settings-for-deno.mjs +38 -0
  34. package/dist/json/vscode-settings.mjs +36 -0
  35. package/dist/{lib.js → lib.mjs} +9 -12
  36. package/dist/mod.d.mts +3 -0
  37. package/dist/mod.mjs +3 -0
  38. package/dist/test/{action.js → action.mjs} +7 -10
  39. package/dist/test/{create.js → create.mjs} +14 -21
  40. package/dist/test/{db.js → db.mjs} +5 -8
  41. package/dist/test/{fill.js → fill.mjs} +10 -12
  42. package/dist/test/{lookup.js → lookup.mjs} +10 -16
  43. package/dist/test/{mod.js → mod.mjs} +6 -8
  44. package/dist/test/{run.js → run.mjs} +5 -8
  45. package/dist/test/{utils.js → utils.mjs} +2 -4
  46. package/dist/{types.d.ts → types.d.mts} +3 -3
  47. package/dist/{utils.d.ts → utils.d.mts} +0 -1
  48. package/dist/{utils.js → utils.mjs} +15 -19
  49. package/dist/{webframeworks.js → webframeworks.mjs} +4 -7
  50. package/package.json +3 -3
  51. package/dist/ask/mod.js +0 -13
  52. package/dist/deno.js +0 -38
  53. package/dist/json/biome.js +0 -18
  54. package/dist/json/db-to-check.js +0 -24
  55. package/dist/json/kv.js +0 -63
  56. package/dist/json/mq.js +0 -82
  57. package/dist/json/pm.js +0 -41
  58. package/dist/json/rt.js +0 -36
  59. package/dist/json/vscode-settings-for-deno.js +0 -50
  60. package/dist/json/vscode-settings.js +0 -46
  61. package/dist/mod.d.ts +0 -3
  62. package/dist/mod.js +0 -4
  63. /package/dist/test/{mod.d.ts → mod.d.mts} +0 -0
@@ -1,13 +1,11 @@
1
- import { printMessage } from "../utils.js";
2
- import create_default, { filterOptions, generateTestCases } from "./create.js";
3
- import { runServerAndLookupUser } from "./lookup.js";
1
+ import { printMessage } from "../utils.mjs";
2
+ import createTestApp, { filterOptions, generateTestCases } from "./create.mjs";
3
+ import runServerAndLookupUser from "./lookup.mjs";
4
4
  import { always, filter, map, pipe, tap, unless } from "@fxts/core";
5
5
  import { optionNames } from "@optique/core";
6
6
  import { join as join$1 } from "node:path";
7
-
8
7
  //#region src/test/run.ts
9
- const runTests = (dry) => ({ testDirPrefix, dryRun, hydRun,...options }) => pipe(options, printStartMessage(dry), generateTestCases, filter(filterOptions), map(create_default(join$1(testDirPrefix, getMid(dryRun, hydRun, dry)), dry)), Array.fromAsync, unless(always(dry), runServerAndLookupUser));
10
- var run_default = runTests;
8
+ const runTests = (dry) => ({ testDirPrefix, dryRun, hydRun, ...options }) => pipe(options, printStartMessage(dry), generateTestCases, filter(filterOptions), map(createTestApp(join$1(testDirPrefix, getMid(dryRun, hydRun, dry)), dry)), Array.fromAsync, unless(always(dry), runServerAndLookupUser));
11
9
  const printStartMessage = (dry) => tap(() => printMessage`\n
12
10
  Init ${dry ? "Dry" : "Hyd"} Test start!
13
11
  Options: ${optionNames([
@@ -17,6 +15,5 @@ Options: ${optionNames([
17
15
  "Message Queue"
18
16
  ])}`);
19
17
  const getMid = (dryRun, hydRun, dry) => dryRun === hydRun ? dry ? "dry" : "hyd" : "";
20
-
21
18
  //#endregion
22
- export { run_default as default };
19
+ export { runTests as default };
@@ -1,8 +1,7 @@
1
- import { printMessage } from "../utils.js";
1
+ import { printMessage } from "../utils.mjs";
2
2
  import { rm } from "node:fs/promises";
3
3
  import { join } from "node:path";
4
4
  import { tmpdir } from "node:os";
5
-
6
5
  //#region src/test/utils.ts
7
6
  const genRunId = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`;
8
7
  const genTestDirPrefix = ({ runId }) => join(tmpdir(), "fedify-init", runId);
@@ -10,6 +9,5 @@ const emptyTestDir = ({ testDirPrefix }) => rm(testDirPrefix, { recursive: true
10
9
  const logTestDir = ({ runId, testDirPrefix }) => printMessage`Test run completed.
11
10
  Run ID: ${runId}
12
11
  Path: ${testDirPrefix}`;
13
-
14
12
  //#endregion
15
- export { emptyTestDir, genRunId, genTestDirPrefix, logTestDir };
13
+ export { emptyTestDir, genRunId, genTestDirPrefix, logTestDir };
@@ -1,6 +1,6 @@
1
- import { InitCommand } from "./command.js";
2
- import { PACKAGE_MANAGER } from "./const.js";
3
- import { RequiredNotNull } from "./utils.js";
1
+ import { InitCommand } from "./command.mjs";
2
+ import { PACKAGE_MANAGER } from "./const.mjs";
3
+ import { RequiredNotNull } from "./utils.mjs";
4
4
  import { Message } from "@optique/core";
5
5
 
6
6
  //#region src/types.d.ts
@@ -1,5 +1,4 @@
1
1
  import { message } from "@optique/core";
2
- import "chalk";
3
2
  import { toMerged } from "es-toolkit";
4
3
  import { spawn } from "node:child_process";
5
4
 
@@ -5,13 +5,10 @@ import { message } from "@optique/core";
5
5
  import { Chalk } from "chalk";
6
6
  import { flow, toMerged } from "es-toolkit";
7
7
  import { spawn } from "node:child_process";
8
-
9
- //#region src/utils.ts
10
- const colorEnabled = process.stdout.isTTY && !("NO_COLOR" in process.env && process.env.NO_COLOR !== "");
11
- const colors = new Chalk(colorEnabled ? {} : { level: 0 });
8
+ const colors = new Chalk(process.stdout.isTTY && !("NO_COLOR" in process.env && process.env.NO_COLOR !== "") ? {} : { level: 0 });
12
9
  const isPromise = (value) => value instanceof Promise;
13
10
  function set(key, f) {
14
- return (obj) => {
11
+ return ((obj) => {
15
12
  const result = f(obj);
16
13
  if (isPromise(result)) return result.then((value) => ({
17
14
  ...obj,
@@ -21,28 +18,28 @@ function set(key, f) {
21
18
  ...obj,
22
19
  [key]: result
23
20
  };
24
- };
21
+ });
25
22
  }
26
23
  const merge$1 = (source = {}) => (target = {}) => toMerged(target, source);
27
- const replace = (pattern, replacement) => (text$1) => text$1.replace(pattern, replacement);
28
- const replaceAll = (pattern, replacement) => (text$1) => text$1.replaceAll(pattern, replacement);
24
+ const replace = (pattern, replacement) => (text) => text.replace(pattern, replacement);
25
+ const replaceAll = (pattern, replacement) => (text) => text.replaceAll(pattern, replacement);
29
26
  const formatJson = (obj) => JSON.stringify(obj, null, 2) + "\n";
30
27
  const notEmpty = (s) => s.length > 0;
31
28
  const isNotFoundError = (e) => isObject(e) && "code" in e && e.code === "ENOENT";
32
29
  var CommandError = class extends Error {
33
30
  commandLine;
34
- constructor(message$1, stdout, stderr, code, command$1) {
35
- super(message$1);
31
+ constructor(message, stdout, stderr, code, command) {
32
+ super(message);
36
33
  this.stdout = stdout;
37
34
  this.stderr = stderr;
38
35
  this.code = code;
39
- this.command = command$1;
36
+ this.command = command;
40
37
  this.name = "CommandError";
41
- this.commandLine = command$1.join(" ");
38
+ this.commandLine = command.join(" ");
42
39
  }
43
40
  };
44
- const runSubCommand = async (command$1, options) => {
45
- const commands = command$1.reduce((acc, cur) => {
41
+ const runSubCommand = async (command, options) => {
42
+ const commands = command.reduce((acc, cur) => {
46
43
  if (cur === "&&") acc.push([]);
47
44
  else {
48
45
  if (acc.length === 0) acc.push([]);
@@ -67,10 +64,10 @@ const runSubCommand = async (command$1, options) => {
67
64
  }
68
65
  return results;
69
66
  };
70
- const runSingularCommand = (command$1, options) => new Promise((resolve, reject) => {
67
+ const runSingularCommand = (command, options) => new Promise((resolve, reject) => {
71
68
  let stdout = "";
72
69
  let stderr = "";
73
- const child = spawn(command$1[0], command$1.slice(1), options);
70
+ const child = spawn(command[0], command.slice(1), options);
74
71
  child.stdout?.on("data", (data) => {
75
72
  stdout += data.toString();
76
73
  });
@@ -82,7 +79,7 @@ const runSingularCommand = (command$1, options) => new Promise((resolve, reject)
82
79
  stdout: stdout.trim(),
83
80
  stderr: stderr.trim()
84
81
  });
85
- else reject(new CommandError(`Command exited with code ${code ?? "unknown"}`, stdout.trim(), stderr.trim(), code ?? -1, command$1));
82
+ else reject(new CommandError(`Command exited with code ${code ?? "unknown"}`, stdout.trim(), stderr.trim(), code ?? -1, command));
86
83
  });
87
84
  child.on("error", (error) => {
88
85
  reject(error);
@@ -97,6 +94,5 @@ function* product(...[head, ...tail]) {
97
94
  }
98
95
  const printMessage = flow(message, print);
99
96
  const printErrorMessage = flow(message, printError);
100
-
101
97
  //#endregion
102
- export { CommandError, colors, exit, formatJson, getCwd, getOsType, isNotFoundError, merge$1 as merge, notEmpty, printErrorMessage, printMessage, product, replace, replaceAll, runSubCommand, set };
98
+ export { CommandError, colors, exit, formatJson, getCwd, getOsType, isNotFoundError, merge$1 as merge, notEmpty, printErrorMessage, printMessage, product, replace, replaceAll, runSubCommand, set };
@@ -1,8 +1,7 @@
1
- import { replace } from "./utils.js";
2
- import { PACKAGE_VERSION, getInstruction, getNextInitCommand, getNitroInitCommand, packageManagerToRuntime, readTemplate } from "./lib.js";
3
- import { PACKAGE_MANAGER } from "./const.js";
1
+ import { replace } from "./utils.mjs";
2
+ import { PACKAGE_VERSION, getInstruction, getNextInitCommand, getNitroInitCommand, packageManagerToRuntime, readTemplate } from "./lib.mjs";
3
+ import { PACKAGE_MANAGER } from "./const.mjs";
4
4
  import { pipe } from "@fxts/core";
5
-
6
5
  //#region src/webframeworks.ts
7
6
  const webFrameworks = {
8
7
  "bare-bones": {
@@ -254,12 +253,10 @@ const webFrameworks = {
254
253
  defaultPort: 3e3
255
254
  }
256
255
  };
257
- var webframeworks_default = webFrameworks;
258
256
  const defaultDevDependencies = {
259
257
  "eslint": "^9.0.0",
260
258
  "@fedify/lint": PACKAGE_VERSION
261
259
  };
262
260
  const defaultDenoDependencies = { "@fedify/lint": PACKAGE_VERSION };
263
-
264
261
  //#endregion
265
- export { webframeworks_default as default };
262
+ export { webFrameworks as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/init",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "Project initializer for Fedify",
5
5
  "keywords": [
6
6
  "fedify",
@@ -59,8 +59,8 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^22.17.0",
62
- "tsdown": "^0.12.9",
63
- "typescript": "^5.9.3"
62
+ "tsdown": "^0.21.6",
63
+ "typescript": "^5.9.2"
64
64
  },
65
65
  "scripts": {
66
66
  "build:self": "tsdown",
package/dist/ask/mod.js DELETED
@@ -1,13 +0,0 @@
1
- import dir_default from "./dir.js";
2
- import kv_default from "./kv.js";
3
- import mq_default from "./mq.js";
4
- import pm_default from "./pm.js";
5
- import wf_default from "./wf.js";
6
- import { pipe } from "@fxts/core";
7
-
8
- //#region src/ask/mod.ts
9
- const askOptions = (options) => pipe(options, dir_default, wf_default, pm_default, mq_default, kv_default);
10
- var ask_default = askOptions;
11
-
12
- //#endregion
13
- export { ask_default as default };
package/dist/deno.js DELETED
@@ -1,38 +0,0 @@
1
- //#region deno.json
2
- var name = "@fedify/init";
3
- var version = "2.0.7";
4
- var license = "MIT";
5
- var exports = "./src/mod.ts";
6
- var imports = {
7
- "@inquirer/prompts": "npm:@inquirer/prompts@^7.8.4",
8
- "inquirer-toggle": "npm:inquirer-toggle@^1.0.1"
9
- };
10
- var exclude = ["dist/", "node_modules/"];
11
- var publish = { "exclude": ["**/*.test.ts"] };
12
- var tasks = {
13
- "check": "deno fmt --check && deno lint && deno check src/**/*.ts",
14
- "run": "deno run --allow-all src/mod.ts",
15
- "test-init": "FEDIFY_TEST_MODE=true deno run --allow-all src/test/mod.ts test-init"
16
- };
17
- var fmt = { "exclude": ["src/templates/**"] };
18
- var lint = {
19
- "exclude": ["src/templates/**"],
20
- "rules": { "exclude": ["no-slow-types"] }
21
- };
22
- var test = { "exclude": ["src/test/**"] };
23
- var deno_default = {
24
- name,
25
- version,
26
- license,
27
- exports,
28
- imports,
29
- exclude,
30
- publish,
31
- tasks,
32
- fmt,
33
- lint,
34
- test
35
- };
36
-
37
- //#endregion
38
- export { deno_default as default };
@@ -1,18 +0,0 @@
1
- //#region src/json/biome.json
2
- var $schema = "https://biomejs.dev/schemas/1.8.3/schema.json";
3
- var organizeImports = { "enabled": true };
4
- var formatter = {
5
- "enabled": true,
6
- "indentStyle": "space",
7
- "indentWidth": 2
8
- };
9
- var linter = { "enabled": false };
10
- var biome_default = {
11
- $schema,
12
- organizeImports,
13
- formatter,
14
- linter
15
- };
16
-
17
- //#endregion
18
- export { biome_default as default };
@@ -1,24 +0,0 @@
1
- //#region src/json/db-to-check.json
2
- var redis = {
3
- "name": "Redis",
4
- "defaultPort": 6379,
5
- "documentation": "https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/"
6
- };
7
- var postgres = {
8
- "name": "PostgreSQL",
9
- "defaultPort": 5432,
10
- "documentation": "https://www.postgresql.org/download/"
11
- };
12
- var amqp = {
13
- "name": "RabbitMQ",
14
- "defaultPort": 5672,
15
- "documentation": "https://www.rabbitmq.com/docs/download"
16
- };
17
- var db_to_check_default = {
18
- redis,
19
- postgres,
20
- amqp
21
- };
22
-
23
- //#endregion
24
- export { db_to_check_default as default };
package/dist/json/kv.js DELETED
@@ -1,63 +0,0 @@
1
- //#region src/json/kv.json
2
- var in_memory = {
3
- "label": "In-Memory",
4
- "packageManagers": [
5
- "deno",
6
- "bun",
7
- "npm",
8
- "yarn",
9
- "pnpm"
10
- ],
11
- "imports": { "@fedify/fedify": { "MemoryKvStore": "MemoryKvStore" } },
12
- "object": "new MemoryKvStore()"
13
- };
14
- var redis = {
15
- "label": "Redis",
16
- "packageManagers": [
17
- "deno",
18
- "bun",
19
- "npm",
20
- "yarn",
21
- "pnpm"
22
- ],
23
- "dependencies": { "npm:ioredis": "^5.4.1" },
24
- "imports": {
25
- "@fedify/redis": { "RedisKvStore": "RedisKvStore" },
26
- "ioredis": { "Redis": "Redis" }
27
- },
28
- "object": "new RedisKvStore(new Redis(process.env.REDIS_URL))",
29
- "env": { "REDIS_URL": "redis://localhost:6379" }
30
- };
31
- var postgres = {
32
- "label": "PostgreSQL",
33
- "packageManagers": [
34
- "deno",
35
- "bun",
36
- "npm",
37
- "yarn",
38
- "pnpm"
39
- ],
40
- "dependencies": { "npm:postgres": "^3.4.5" },
41
- "imports": {
42
- "@fedify/postgres": { "PostgresKvStore": "PostgresKvStore" },
43
- "postgres": { "default": "postgres" }
44
- },
45
- "object": "new PostgresKvStore(postgres(process.env.POSTGRES_URL))",
46
- "env": { "POSTGRES_URL": "postgres://postgres@localhost:5432/postgres" }
47
- };
48
- var denokv = {
49
- "label": "Deno KV",
50
- "packageManagers": ["deno"],
51
- "imports": { "@fedify/denokv": { "DenoKvStore": "DenoKvStore" } },
52
- "object": "new DenoKvStore(await Deno.openKv())",
53
- "denoUnstable": ["kv"]
54
- };
55
- var kv_default = {
56
- "in-memory": in_memory,
57
- redis,
58
- postgres,
59
- denokv
60
- };
61
-
62
- //#endregion
63
- export { kv_default as default };
package/dist/json/mq.js DELETED
@@ -1,82 +0,0 @@
1
- //#region src/json/mq.json
2
- var in_process = {
3
- "label": "In-Process",
4
- "packageManagers": [
5
- "deno",
6
- "bun",
7
- "npm",
8
- "yarn",
9
- "pnpm"
10
- ],
11
- "imports": { "@fedify/fedify": { "InProcessMessageQueue": "InProcessMessageQueue" } },
12
- "object": "new InProcessMessageQueue()"
13
- };
14
- var redis = {
15
- "label": "Redis",
16
- "packageManagers": [
17
- "deno",
18
- "bun",
19
- "npm",
20
- "yarn",
21
- "pnpm"
22
- ],
23
- "dependencies": { "npm:ioredis": "^5.4.1" },
24
- "imports": {
25
- "@fedify/redis": { "RedisMessageQueue": "RedisMessageQueue" },
26
- "ioredis": { "Redis": "Redis" }
27
- },
28
- "object": "new RedisMessageQueue(() => new Redis(process.env.REDIS_URL))",
29
- "env": { "REDIS_URL": "redis://localhost:6379" }
30
- };
31
- var postgres = {
32
- "label": "PostgreSQL",
33
- "packageManagers": [
34
- "deno",
35
- "bun",
36
- "npm",
37
- "yarn",
38
- "pnpm"
39
- ],
40
- "dependencies": { "npm:postgres": "^3.4.5" },
41
- "imports": {
42
- "@fedify/postgres": { "PostgresMessageQueue": "PostgresMessageQueue" },
43
- "postgres": { "default": "postgres" }
44
- },
45
- "object": "new PostgresMessageQueue(postgres(process.env.POSTGRES_URL))",
46
- "env": { "POSTGRES_URL": "postgres://postgres@localhost:5432/postgres" }
47
- };
48
- var amqp = {
49
- "label": "AMQP (e.g., RabbitMQ)",
50
- "packageManagers": [
51
- "deno",
52
- "bun",
53
- "npm",
54
- "yarn",
55
- "pnpm"
56
- ],
57
- "dependencies": { "npm:amqplib": "^0.10.4" },
58
- "devDependencies": { "npm:@types/amqplib": "^0.10.5" },
59
- "imports": {
60
- "@fedify/amqp": { "AmqpMessageQueue": "AmqpMessageQueue" },
61
- "amqplib": { "connect": "connect" }
62
- },
63
- "object": "new AmqpMessageQueue(await connect(process.env.AMQP_URL))",
64
- "env": { "AMQP_URL": "amqp://localhost" }
65
- };
66
- var denokv = {
67
- "label": "Deno KV",
68
- "packageManagers": ["deno"],
69
- "imports": { "@fedify/denokv": { "DenoKvMessageQueue": "DenoKvMessageQueue" } },
70
- "object": "new DenoKvMessageQueue(await Deno.openKv())",
71
- "denoUnstable": ["kv"]
72
- };
73
- var mq_default = {
74
- "in-process": in_process,
75
- redis,
76
- postgres,
77
- amqp,
78
- denokv
79
- };
80
-
81
- //#endregion
82
- export { mq_default as default };
package/dist/json/pm.js DELETED
@@ -1,41 +0,0 @@
1
- //#region src/json/pm.json
2
- var deno = {
3
- "label": "deno",
4
- "checkCommand": ["deno", "--version"],
5
- "outputPattern": "^deno\\s+\\d+\\.\\d+\\.\\d+\\b",
6
- "installUrl": "https://docs.deno.com/runtime/getting_started/installation"
7
- };
8
- var bun = {
9
- "label": "bun",
10
- "checkCommand": ["bun", "--version"],
11
- "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
12
- "installUrl": "https://bun.sh/docs/installation"
13
- };
14
- var npm = {
15
- "label": "npm",
16
- "checkCommand": ["npm", "--version"],
17
- "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
18
- "installUrl": "https://docs.npmjs.com/downloading-and-installing-node-js-and-npm"
19
- };
20
- var yarn = {
21
- "label": "Yarn",
22
- "checkCommand": ["yarn", "--version"],
23
- "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
24
- "installUrl": "https://classic.yarnpkg.com/en/docs/install/#windows-stable"
25
- };
26
- var pnpm = {
27
- "label": "pnpm",
28
- "checkCommand": ["pnpm", "--version"],
29
- "outputPattern": "^\\d+\\.\\d+\\.\\d+$",
30
- "installUrl": "https://pnpm.io/installation"
31
- };
32
- var pm_default = {
33
- deno,
34
- bun,
35
- npm,
36
- yarn,
37
- pnpm
38
- };
39
-
40
- //#endregion
41
- export { pm_default as default };
package/dist/json/rt.js DELETED
@@ -1,36 +0,0 @@
1
- //#region src/json/rt.json
2
- var deno = {
3
- "label": "Deno",
4
- "checkCommand": ["deno", "--version"],
5
- "outputPattern": "^deno\\s+\\d+\\.\\d+\\.\\d+\\b"
6
- };
7
- var bun = {
8
- "label": "Bun",
9
- "checkCommand": ["bun", "--version"],
10
- "outputPattern": "^\\d+\\.\\d+\\.\\d+$"
11
- };
12
- var pnpm = {
13
- "label": "Node.js",
14
- "checkCommand": ["node", "--version"],
15
- "outputPattern": "^v\\d+\\.\\d+\\.\\d+$"
16
- };
17
- var yarn = {
18
- "label": "Node.js",
19
- "checkCommand": ["node", "--version"],
20
- "outputPattern": "^v\\d+\\.\\d+\\.\\d+$"
21
- };
22
- var npm = {
23
- "label": "Node.js",
24
- "checkCommand": ["node", "--version"],
25
- "outputPattern": "^v\\d+\\.\\d+\\.\\d+$"
26
- };
27
- var rt_default = {
28
- deno,
29
- bun,
30
- pnpm,
31
- yarn,
32
- npm
33
- };
34
-
35
- //#endregion
36
- export { rt_default as default };
@@ -1,50 +0,0 @@
1
- //#region src/json/vscode-settings-for-deno.json
2
- var deno_enable = true;
3
- var deno_unstable = true;
4
- var editor_detectIndentation = false;
5
- var editor_indentSize = 2;
6
- var editor_insertSpaces = true;
7
- var __javascript_ = {
8
- "editor.defaultFormatter": "denoland.vscode-deno",
9
- "editor.formatOnSave": true,
10
- "editor.codeActionsOnSave": { "source.sortImports": "always" }
11
- };
12
- var __javascriptreact_ = {
13
- "editor.defaultFormatter": "denoland.vscode-deno",
14
- "editor.formatOnSave": true,
15
- "editor.codeActionsOnSave": { "source.sortImports": "always" }
16
- };
17
- var __json_ = {
18
- "editor.defaultFormatter": "vscode.json-language-features",
19
- "editor.formatOnSave": true
20
- };
21
- var __jsonc_ = {
22
- "editor.defaultFormatter": "vscode.json-language-features",
23
- "editor.formatOnSave": true
24
- };
25
- var __typescript_ = {
26
- "editor.defaultFormatter": "denoland.vscode-deno",
27
- "editor.formatOnSave": true,
28
- "editor.codeActionsOnSave": { "source.sortImports": "always" }
29
- };
30
- var __typescriptreact_ = {
31
- "editor.defaultFormatter": "denoland.vscode-deno",
32
- "editor.formatOnSave": true,
33
- "editor.codeActionsOnSave": { "source.sortImports": "always" }
34
- };
35
- var vscode_settings_for_deno_default = {
36
- "deno.enable": deno_enable,
37
- "deno.unstable": deno_unstable,
38
- "editor.detectIndentation": editor_detectIndentation,
39
- "editor.indentSize": editor_indentSize,
40
- "editor.insertSpaces": editor_insertSpaces,
41
- "[javascript]": __javascript_,
42
- "[javascriptreact]": __javascriptreact_,
43
- "[json]": __json_,
44
- "[jsonc]": __jsonc_,
45
- "[typescript]": __typescript_,
46
- "[typescriptreact]": __typescriptreact_
47
- };
48
-
49
- //#endregion
50
- export { vscode_settings_for_deno_default as default };
@@ -1,46 +0,0 @@
1
- //#region src/json/vscode-settings.json
2
- var editor_detectIndentation = false;
3
- var editor_indentSize = 2;
4
- var editor_insertSpaces = true;
5
- var __javascript_ = {
6
- "editor.defaultFormatter": "biomejs.biome",
7
- "editor.formatOnSave": true,
8
- "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
9
- };
10
- var __javascriptreact_ = {
11
- "editor.defaultFormatter": "biomejs.biome",
12
- "editor.formatOnSave": true,
13
- "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
14
- };
15
- var __json_ = {
16
- "editor.defaultFormatter": "biomejs.biome",
17
- "editor.formatOnSave": true
18
- };
19
- var __jsonc_ = {
20
- "editor.defaultFormatter": "biomejs.biome",
21
- "editor.formatOnSave": true
22
- };
23
- var __typescript_ = {
24
- "editor.defaultFormatter": "biomejs.biome",
25
- "editor.formatOnSave": true,
26
- "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
27
- };
28
- var __typescriptreact_ = {
29
- "editor.defaultFormatter": "biomejs.biome",
30
- "editor.formatOnSave": true,
31
- "editor.codeActionsOnSave": { "source.organizeImports.biome": "always" }
32
- };
33
- var vscode_settings_default = {
34
- "editor.detectIndentation": editor_detectIndentation,
35
- "editor.indentSize": editor_indentSize,
36
- "editor.insertSpaces": editor_insertSpaces,
37
- "[javascript]": __javascript_,
38
- "[javascriptreact]": __javascriptreact_,
39
- "[json]": __json_,
40
- "[jsonc]": __jsonc_,
41
- "[typescript]": __typescript_,
42
- "[typescriptreact]": __typescriptreact_
43
- };
44
-
45
- //#endregion
46
- export { vscode_settings_default as default };
package/dist/mod.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { initCommand, initOptions } from "./command.js";
2
- import { runInit } from "./action/mod.js";
3
- export { initCommand, initOptions, runInit };
package/dist/mod.js DELETED
@@ -1,4 +0,0 @@
1
- import action_default from "./action/mod.js";
2
- import { initCommand, initOptions } from "./command.js";
3
-
4
- export { initCommand, initOptions, action_default as runInit };
File without changes