@appsbyme/create-basekit 1.0.2 → 1.0.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.
@@ -6415,7 +6415,7 @@ async function runWebCommand(argv) {
6415
6415
  return;
6416
6416
  }
6417
6417
  if (args.includes("--version") || args.includes("-v")) {
6418
- console.log("1.0.2");
6418
+ console.log("1.0.4");
6419
6419
  return;
6420
6420
  }
6421
6421
  printBanner();
@@ -6619,7 +6619,7 @@ async function runWebCommand(argv) {
6619
6619
  function printBanner() {
6620
6620
  console.log("");
6621
6621
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
6622
- console.log(` \u2551 create-basekit web v${"1.0.2"} \u2551`);
6622
+ console.log(` \u2551 create-basekit web v${"1.0.4"} \u2551`);
6623
6623
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
6624
6624
  console.log("");
6625
6625
  }
@@ -6854,7 +6854,7 @@ function buildWebScaffoldArgv(projectName, portOffset, nonInteractive) {
6854
6854
  "--port-offset",
6855
6855
  String(portOffset),
6856
6856
  "--no-git",
6857
- // Install after local @basekit pin rewrite (registry pins 404 until publish)
6857
+ // Install after optional local @appsbyme file: pin rewrite (kit authors)
6858
6858
  "--no-install"
6859
6859
  ];
6860
6860
  if (nonInteractive) {
@@ -7281,7 +7281,7 @@ async function runMobileCommand(argv) {
7281
7281
  return;
7282
7282
  }
7283
7283
  if (args.includes("--version") || args.includes("-v")) {
7284
- console.log("1.0.2");
7284
+ console.log("1.0.4");
7285
7285
  return;
7286
7286
  }
7287
7287
  printBanner2();
@@ -7384,7 +7384,7 @@ async function runMobileCommand(argv) {
7384
7384
  function printBanner2() {
7385
7385
  console.log("");
7386
7386
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
7387
- console.log(` \u2551 create-basekit mobile v${"1.0.2"} \u2551`);
7387
+ console.log(` \u2551 create-basekit mobile v${"1.0.4"} \u2551`);
7388
7388
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
7389
7389
  console.log("");
7390
7390
  console.log(" Expo (React Native) app scaffolder");
@@ -7503,6 +7503,20 @@ var import_path13 = __toESM(require("path"), 1);
7503
7503
  init_cjs_shims();
7504
7504
  var import_fs12 = __toESM(require("fs"), 1);
7505
7505
  var import_path12 = __toESM(require("path"), 1);
7506
+ var import_node_url3 = require("url");
7507
+ function resolveNewProjectFixturePath(fromDir = import_path12.default.dirname((0, import_node_url3.fileURLToPath)(importMetaUrl))) {
7508
+ const candidates = [
7509
+ import_path12.default.join(fromDir, "../../../fixtures/new_project.py"),
7510
+ import_path12.default.join(fromDir, "../fixtures/new_project.py")
7511
+ ];
7512
+ for (const candidate of candidates) {
7513
+ const resolved = import_path12.default.resolve(candidate);
7514
+ if (import_fs12.default.existsSync(resolved)) return resolved;
7515
+ }
7516
+ throw new Error(
7517
+ `fixtures/new_project.py missing (searched: ${candidates.map((c) => import_path12.default.resolve(c)).join(", ")})`
7518
+ );
7519
+ }
7506
7520
  function deriveProjectIdentity(projectName) {
7507
7521
  const slug = toPythonSlug(projectName);
7508
7522
  const name = projectName.split(/[-_\s]+/).filter(Boolean).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
@@ -7521,7 +7535,7 @@ function writeProjectIdentity(projectRoot, projectName) {
7521
7535
  );
7522
7536
  const scriptsDir = import_path12.default.join(projectRoot, "scripts");
7523
7537
  mkdirp(scriptsDir);
7524
- const fixturePath = import_path12.default.resolve(__dirname, "../../../fixtures/new_project.py");
7538
+ const fixturePath = resolveNewProjectFixturePath();
7525
7539
  const scriptPath = import_path12.default.join(scriptsDir, "new_project.py");
7526
7540
  import_fs12.default.copyFileSync(fixturePath, scriptPath);
7527
7541
  import_fs12.default.chmodSync(scriptPath, 493);
@@ -8567,7 +8581,7 @@ async function runAppCommand(argv) {
8567
8581
  return;
8568
8582
  }
8569
8583
  if (args.includes("--version") || args.includes("-V")) {
8570
- console.log("1.0.2");
8584
+ console.log("1.0.4");
8571
8585
  return;
8572
8586
  }
8573
8587
  printBanner3();
@@ -8729,7 +8743,7 @@ function initRootGit(projectRoot, includeMobile = false) {
8729
8743
  function printBanner3() {
8730
8744
  console.log("");
8731
8745
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
8732
- console.log(` \u2551 create-basekit app v${"1.0.2"} \u2551`);
8746
+ console.log(` \u2551 create-basekit app v${"1.0.4"} \u2551`);
8733
8747
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
8734
8748
  console.log("");
8735
8749
  console.log(" Full-stack project scaffolder");
@@ -8737,7 +8751,7 @@ function printBanner3() {
8737
8751
  }
8738
8752
  function printHelp3() {
8739
8753
  console.log(`
8740
- create-basekit app v${"1.0.2"}
8754
+ create-basekit app v${"1.0.4"}
8741
8755
 
8742
8756
  Usage: npx @appsbyme/create-basekit app [project-name] [options]
8743
8757
 
@@ -5365,7 +5365,7 @@ async function runMobileCommand(argv) {
5365
5365
  return;
5366
5366
  }
5367
5367
  if (args.includes("--version") || args.includes("-v")) {
5368
- console.log("1.0.2");
5368
+ console.log("1.0.4");
5369
5369
  return;
5370
5370
  }
5371
5371
  printBanner();
@@ -5468,7 +5468,7 @@ async function runMobileCommand(argv) {
5468
5468
  function printBanner() {
5469
5469
  console.log("");
5470
5470
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
5471
- console.log(` \u2551 create-basekit mobile v${"1.0.2"} \u2551`);
5471
+ console.log(` \u2551 create-basekit mobile v${"1.0.4"} \u2551`);
5472
5472
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
5473
5473
  console.log("");
5474
5474
  console.log(" Expo (React Native) app scaffolder");
@@ -5957,7 +5957,7 @@ async function runWebCommand(argv) {
5957
5957
  return;
5958
5958
  }
5959
5959
  if (args.includes("--version") || args.includes("-v")) {
5960
- console.log("1.0.2");
5960
+ console.log("1.0.4");
5961
5961
  return;
5962
5962
  }
5963
5963
  printBanner();
@@ -6161,7 +6161,7 @@ async function runWebCommand(argv) {
6161
6161
  function printBanner() {
6162
6162
  console.log("");
6163
6163
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
6164
- console.log(` \u2551 create-basekit web v${"1.0.2"} \u2551`);
6164
+ console.log(` \u2551 create-basekit web v${"1.0.4"} \u2551`);
6165
6165
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
6166
6166
  console.log("");
6167
6167
  }
package/dist/index.cjs CHANGED
@@ -5974,7 +5974,7 @@ async function runWebCommand(argv) {
5974
5974
  return;
5975
5975
  }
5976
5976
  if (args.includes("--version") || args.includes("-v")) {
5977
- console.log("1.0.2");
5977
+ console.log("1.0.4");
5978
5978
  return;
5979
5979
  }
5980
5980
  printBanner();
@@ -6178,7 +6178,7 @@ async function runWebCommand(argv) {
6178
6178
  function printBanner() {
6179
6179
  console.log("");
6180
6180
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
6181
- console.log(` \u2551 create-basekit web v${"1.0.2"} \u2551`);
6181
+ console.log(` \u2551 create-basekit web v${"1.0.4"} \u2551`);
6182
6182
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
6183
6183
  console.log("");
6184
6184
  }
@@ -6716,7 +6716,7 @@ async function runMobileCommand(argv) {
6716
6716
  return;
6717
6717
  }
6718
6718
  if (args.includes("--version") || args.includes("-v")) {
6719
- console.log("1.0.2");
6719
+ console.log("1.0.4");
6720
6720
  return;
6721
6721
  }
6722
6722
  printBanner2();
@@ -6819,7 +6819,7 @@ async function runMobileCommand(argv) {
6819
6819
  function printBanner2() {
6820
6820
  console.log("");
6821
6821
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
6822
- console.log(` \u2551 create-basekit mobile v${"1.0.2"} \u2551`);
6822
+ console.log(` \u2551 create-basekit mobile v${"1.0.4"} \u2551`);
6823
6823
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
6824
6824
  console.log("");
6825
6825
  console.log(" Expo (React Native) app scaffolder");
@@ -7529,7 +7529,7 @@ function buildWebScaffoldArgv(projectName, portOffset, nonInteractive) {
7529
7529
  "--port-offset",
7530
7530
  String(portOffset),
7531
7531
  "--no-git",
7532
- // Install after local @basekit pin rewrite (registry pins 404 until publish)
7532
+ // Install after optional local @appsbyme file: pin rewrite (kit authors)
7533
7533
  "--no-install"
7534
7534
  ];
7535
7535
  if (nonInteractive) {
@@ -7626,6 +7626,19 @@ var init_mobile2 = __esm({
7626
7626
  });
7627
7627
 
7628
7628
  // src/commands/app/project-identity.ts
7629
+ function resolveNewProjectFixturePath(fromDir = import_path12.default.dirname((0, import_node_url3.fileURLToPath)(importMetaUrl))) {
7630
+ const candidates = [
7631
+ import_path12.default.join(fromDir, "../../../fixtures/new_project.py"),
7632
+ import_path12.default.join(fromDir, "../fixtures/new_project.py")
7633
+ ];
7634
+ for (const candidate of candidates) {
7635
+ const resolved = import_path12.default.resolve(candidate);
7636
+ if (import_fs12.default.existsSync(resolved)) return resolved;
7637
+ }
7638
+ throw new Error(
7639
+ `fixtures/new_project.py missing (searched: ${candidates.map((c) => import_path12.default.resolve(c)).join(", ")})`
7640
+ );
7641
+ }
7629
7642
  function deriveProjectIdentity(projectName) {
7630
7643
  const slug = toPythonSlug(projectName);
7631
7644
  const name = projectName.split(/[-_\s]+/).filter(Boolean).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
@@ -7644,18 +7657,19 @@ function writeProjectIdentity(projectRoot, projectName) {
7644
7657
  );
7645
7658
  const scriptsDir = import_path12.default.join(projectRoot, "scripts");
7646
7659
  mkdirp(scriptsDir);
7647
- const fixturePath = import_path12.default.resolve(__dirname, "../../../fixtures/new_project.py");
7660
+ const fixturePath = resolveNewProjectFixturePath();
7648
7661
  const scriptPath = import_path12.default.join(scriptsDir, "new_project.py");
7649
7662
  import_fs12.default.copyFileSync(fixturePath, scriptPath);
7650
7663
  import_fs12.default.chmodSync(scriptPath, 493);
7651
7664
  }
7652
- var import_fs12, import_path12;
7665
+ var import_fs12, import_path12, import_node_url3;
7653
7666
  var init_project_identity = __esm({
7654
7667
  "src/commands/app/project-identity.ts"() {
7655
7668
  "use strict";
7656
7669
  init_cjs_shims();
7657
7670
  import_fs12 = __toESM(require("fs"), 1);
7658
7671
  import_path12 = __toESM(require("path"), 1);
7672
+ import_node_url3 = require("url");
7659
7673
  init_utils3();
7660
7674
  }
7661
7675
  });
@@ -8732,7 +8746,7 @@ async function runAppCommand(argv) {
8732
8746
  return;
8733
8747
  }
8734
8748
  if (args.includes("--version") || args.includes("-V")) {
8735
- console.log("1.0.2");
8749
+ console.log("1.0.4");
8736
8750
  return;
8737
8751
  }
8738
8752
  printBanner3();
@@ -8894,7 +8908,7 @@ function initRootGit(projectRoot, includeMobile = false) {
8894
8908
  function printBanner3() {
8895
8909
  console.log("");
8896
8910
  console.log(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
8897
- console.log(` \u2551 create-basekit app v${"1.0.2"} \u2551`);
8911
+ console.log(` \u2551 create-basekit app v${"1.0.4"} \u2551`);
8898
8912
  console.log(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
8899
8913
  console.log("");
8900
8914
  console.log(" Full-stack project scaffolder");
@@ -8902,7 +8916,7 @@ function printBanner3() {
8902
8916
  }
8903
8917
  function printHelp3() {
8904
8918
  console.log(`
8905
- create-basekit app v${"1.0.2"}
8919
+ create-basekit app v${"1.0.4"}
8906
8920
 
8907
8921
  Usage: npx @appsbyme/create-basekit app [project-name] [options]
8908
8922
 
@@ -9073,7 +9087,7 @@ function printHelp4() {
9073
9087
  console.log("");
9074
9088
  }
9075
9089
  function printVersion() {
9076
- console.log("1.0.2");
9090
+ console.log("1.0.4");
9077
9091
  }
9078
9092
  async function main() {
9079
9093
  const argv = process.argv.slice(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsbyme/create-basekit",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Scaffold Basekit web, mobile, or full-stack apps",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.cjs",