generator-reshow 0.19.2 → 0.19.4

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.
@@ -2137,7 +2137,7 @@ var promptSubGenerator = async (oGen, {
2137
2137
  // src/generator/index.ts
2138
2138
  class generator_default extends YoGenerator_default {
2139
2139
  async prompting() {
2140
- this.env.options.nodePackageManager = "yarn";
2140
+ this.env.options.nodePackageManager = "bun";
2141
2141
  const {
2142
2142
  handleAnswers: handleAnswers2,
2143
2143
  mergePromptOrOption,
@@ -49,7 +49,7 @@ module.exports = class extends YoGenerator {
49
49
  }
50
50
 
51
51
  writing() {
52
- this.env.options.nodePackageManager = "yarn";
52
+ this.env.options.nodePackageManager = "bun";
53
53
  this.options.skipInstall = true;
54
54
  const { cp, chMainName } = YoHelper(this);
55
55
 
@@ -2241,7 +2241,7 @@ class gitlab_docker_default extends YoGenerator_default {
2241
2241
  });
2242
2242
  }
2243
2243
  writing() {
2244
- this.env.options.nodePackageManager = "yarn";
2244
+ this.env.options.nodePackageManager = "bun";
2245
2245
  this.options.skipInstall = true;
2246
2246
  const { cp, chMainName } = YoHelper_default(this);
2247
2247
  chMainName(this.mainName);
@@ -2243,6 +2243,9 @@ var defaultPackageJSON2 = {
2243
2243
  dependencies: {
2244
2244
  hono: "*"
2245
2245
  },
2246
+ devDependencies: {
2247
+ "modality-bun-kit": "*"
2248
+ },
2246
2249
  scripts: {
2247
2250
  test: "npm run build && bun test",
2248
2251
  build: "bun run src/build.ts",
@@ -2271,6 +2274,7 @@ class hono_default extends YoGenerator_default {
2271
2274
  const { cp, chMainName } = YoHelper_default(this);
2272
2275
  chMainName(this.mainName);
2273
2276
  cp("src/index.ts", null, this.payload);
2277
+ cp("src/cli.ts", null, this.payload);
2274
2278
  }
2275
2279
  conflicts() {
2276
2280
  const { handleKeywords, updateDestJSON } = YoHelper_default(this);
@@ -2280,6 +2284,7 @@ class hono_default extends YoGenerator_default {
2280
2284
  Object.assign(data, defaultPackageJSON2);
2281
2285
  data.repository = repository;
2282
2286
  data.homepage = repositoryHomepage;
2287
+ data.bin = { [this.mainName]: "src/cli.ts" };
2283
2288
  return data;
2284
2289
  });
2285
2290
  }
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bun
2
+
3
+ console.log("Hello from the CLI!");
@@ -2335,7 +2335,7 @@ class npm_default extends YoGenerator_default {
2335
2335
  });
2336
2336
  }
2337
2337
  writing() {
2338
- this.env.options.nodePackageManager = "yarn";
2338
+ this.env.options.nodePackageManager = "bun";
2339
2339
  const { cp, chMainName } = YoHelper_default(this);
2340
2340
  const { isUseBabel, isUseBabelUI, babelRootMode } = this.payload || {};
2341
2341
  chMainName(this.mainName);
@@ -19,9 +19,7 @@
19
19
  "types": "./types/index.d.ts",
20
20
  "main": "./build/cjs/src/index.js",
21
21
  "module": "./build/es/src/index.mjs",
22
- "bin": {
23
- "<%= mainName %>": "./build/cjs/src/index.js"
24
- },
22
+ "bin": {},
25
23
  "scripts": {},
26
24
  "files": {}
27
25
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.19.2",
2
+ "version": "0.19.4",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",