@apps-in-toss/web-framework 0.0.0-dev.1739332271671 → 0.0.0-dev.1739416338672

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 (3) hide show
  1. package/dist/cli.cjs +31 -20
  2. package/dist/cli.js +30 -20
  3. package/package.json +7 -7
package/dist/cli.cjs CHANGED
@@ -357,7 +357,7 @@ var DeployCommand = class extends import_clipanion2.Command {
357
357
  }
358
358
  ]);
359
359
  if (deploymentId) {
360
- p.note(import_picocolors2.default.underline(import_picocolors2.default.green(`intoss://${appIdentifier}?_deploymentId=${deploymentId}`)));
360
+ p.note(import_picocolors2.default.underline(import_picocolors2.default.green(`intoss-sandbox://${appIdentifier}?_deploymentId=${deploymentId}`)));
361
361
  }
362
362
  } catch (error) {
363
363
  if (error instanceof Error) {
@@ -486,6 +486,15 @@ function transformTemplate(templateString, values) {
486
486
  }
487
487
 
488
488
  // src/InitCommand/InitCommand.ts
489
+ var import_meta = {};
490
+ async function getPnpRoot() {
491
+ try {
492
+ const pnpapi = (await import_meta.resolve("pnpapi")).replace("file://", "");
493
+ return import_path5.default.dirname(pnpapi);
494
+ } catch {
495
+ return null;
496
+ }
497
+ }
489
498
  var InitCommand = class extends import_clipanion4.Command {
490
499
  static paths = [[`init`]];
491
500
  async execute() {
@@ -557,9 +566,9 @@ var InitCommand = class extends import_clipanion4.Command {
557
566
  encoding: "utf-8"
558
567
  }
559
568
  );
560
- const isPnP = import_fs4.default.existsSync(import_path5.default.join(cwd, ".pnp.cjs"));
561
- if (isPnP) {
562
- const yarnrcPath = import_path5.default.join(cwd, ".yarnrc.yml");
569
+ const pnpRoot = await getPnpRoot();
570
+ if (pnpRoot) {
571
+ const yarnrcPath = import_path5.default.join(pnpRoot, ".yarnrc.yml");
563
572
  let yarnrc = {};
564
573
  try {
565
574
  const yarnrcContent = await import_fs4.default.promises.readFile(yarnrcPath, { encoding: "utf-8" });
@@ -568,21 +577,23 @@ var InitCommand = class extends import_clipanion4.Command {
568
577
  p2.log.info(".yarnrc.yml \uD30C\uC77C\uC774 \uC5C6\uC5B4 \uC0C8\uB85C \uC0DD\uC131\uD569\uB2C8\uB2E4.");
569
578
  }
570
579
  p2.log.step(".yarnrc.yml \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
571
- yarnrc.packageExtensions = (0, import_es_toolkit.merge)(yarnrc.packageExtensions, {
572
- "@react-native-community/cli-debugger-ui@*": {
573
- dependencies: {
574
- "@babel/runtime": "^7"
575
- }
576
- },
577
- "react-native-video@*": {
578
- peerDependencies: {
579
- react: "*",
580
- "react-native": "*"
581
- }
582
- },
583
- "react-native-fast-image@*": {
584
- dependencies: {
585
- "@babel/runtime": "^7"
580
+ yarnrc = (0, import_es_toolkit.merge)(yarnrc, {
581
+ packageExtensions: {
582
+ "@react-native-community/cli-debugger-ui@*": {
583
+ dependencies: {
584
+ "@babel/runtime": "^7"
585
+ }
586
+ },
587
+ "react-native-video@*": {
588
+ peerDependencies: {
589
+ react: "*",
590
+ "react-native": "*"
591
+ }
592
+ },
593
+ "react-native-fast-image@*": {
594
+ dependencies: {
595
+ "@babel/runtime": "^7"
596
+ }
586
597
  }
587
598
  }
588
599
  });
@@ -597,7 +608,7 @@ var InitCommand = class extends import_clipanion4.Command {
597
608
  };
598
609
 
599
610
  // package.json
600
- var version = "0.0.0-dev.1739332271671";
611
+ var version = "0.0.0-dev.1739416338672";
601
612
 
602
613
  // src/cli.ts
603
614
  var cli = new import_clipanion5.Cli({
package/dist/cli.js CHANGED
@@ -306,7 +306,7 @@ var DeployCommand = class extends Command2 {
306
306
  }
307
307
  ]);
308
308
  if (deploymentId) {
309
- p.note(picocolors2.underline(picocolors2.green(`intoss://${appIdentifier}?_deploymentId=${deploymentId}`)));
309
+ p.note(picocolors2.underline(picocolors2.green(`intoss-sandbox://${appIdentifier}?_deploymentId=${deploymentId}`)));
310
310
  }
311
311
  } catch (error) {
312
312
  if (error instanceof Error) {
@@ -435,6 +435,14 @@ function transformTemplate(templateString, values) {
435
435
  }
436
436
 
437
437
  // src/InitCommand/InitCommand.ts
438
+ async function getPnpRoot() {
439
+ try {
440
+ const pnpapi = (await import.meta.resolve("pnpapi")).replace("file://", "");
441
+ return path5.dirname(pnpapi);
442
+ } catch {
443
+ return null;
444
+ }
445
+ }
438
446
  var InitCommand = class extends Command4 {
439
447
  static paths = [[`init`]];
440
448
  async execute() {
@@ -506,9 +514,9 @@ var InitCommand = class extends Command4 {
506
514
  encoding: "utf-8"
507
515
  }
508
516
  );
509
- const isPnP = fs5.existsSync(path5.join(cwd, ".pnp.cjs"));
510
- if (isPnP) {
511
- const yarnrcPath = path5.join(cwd, ".yarnrc.yml");
517
+ const pnpRoot = await getPnpRoot();
518
+ if (pnpRoot) {
519
+ const yarnrcPath = path5.join(pnpRoot, ".yarnrc.yml");
512
520
  let yarnrc = {};
513
521
  try {
514
522
  const yarnrcContent = await fs5.promises.readFile(yarnrcPath, { encoding: "utf-8" });
@@ -517,21 +525,23 @@ var InitCommand = class extends Command4 {
517
525
  p2.log.info(".yarnrc.yml \uD30C\uC77C\uC774 \uC5C6\uC5B4 \uC0C8\uB85C \uC0DD\uC131\uD569\uB2C8\uB2E4.");
518
526
  }
519
527
  p2.log.step(".yarnrc.yml \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
520
- yarnrc.packageExtensions = merge(yarnrc.packageExtensions, {
521
- "@react-native-community/cli-debugger-ui@*": {
522
- dependencies: {
523
- "@babel/runtime": "^7"
524
- }
525
- },
526
- "react-native-video@*": {
527
- peerDependencies: {
528
- react: "*",
529
- "react-native": "*"
530
- }
531
- },
532
- "react-native-fast-image@*": {
533
- dependencies: {
534
- "@babel/runtime": "^7"
528
+ yarnrc = merge(yarnrc, {
529
+ packageExtensions: {
530
+ "@react-native-community/cli-debugger-ui@*": {
531
+ dependencies: {
532
+ "@babel/runtime": "^7"
533
+ }
534
+ },
535
+ "react-native-video@*": {
536
+ peerDependencies: {
537
+ react: "*",
538
+ "react-native": "*"
539
+ }
540
+ },
541
+ "react-native-fast-image@*": {
542
+ dependencies: {
543
+ "@babel/runtime": "^7"
544
+ }
535
545
  }
536
546
  }
537
547
  });
@@ -546,7 +556,7 @@ var InitCommand = class extends Command4 {
546
556
  };
547
557
 
548
558
  // package.json
549
- var version = "0.0.0-dev.1739332271671";
559
+ var version = "0.0.0-dev.1739416338672";
550
560
 
551
561
  // src/cli.ts
552
562
  var cli = new Cli({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-framework",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.1739332271671",
4
+ "version": "0.0.0-dev.1739416338672",
5
5
  "description": "Web Framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -38,8 +38,8 @@
38
38
  "vitest": "^3.0.5"
39
39
  },
40
40
  "dependencies": {
41
- "@apps-in-toss/babel-plugin-json": "0.0.0-dev.1739332271671",
42
- "@apps-in-toss/framework": "0.0.0-dev.1739332271671",
41
+ "@apps-in-toss/babel-plugin-json": "0.0.0-dev.1739416338672",
42
+ "@apps-in-toss/framework": "0.0.0-dev.1739416338672",
43
43
  "@babel/core": "7.23.9",
44
44
  "@babel/plugin-proposal-class-properties": "^7.16.7",
45
45
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
@@ -53,8 +53,8 @@
53
53
  "@babel/preset-typescript": "^7.16.7",
54
54
  "@babel/runtime": "7.18.9",
55
55
  "@clack/prompts": "^0.10.0",
56
- "@react-native-bedrock/mpack-next": "0.0.0-dev.1739330039126",
57
- "@react-native-bedrock/native": "0.0.0-dev.1739330039126",
56
+ "@react-native-bedrock/mpack-next": "0.0.0-dev.1739416149790",
57
+ "@react-native-bedrock/native": "0.0.0-dev.1739416149790",
58
58
  "@types/react": "18.3.3",
59
59
  "clipanion": "^4.0.0-rc.4",
60
60
  "cosmiconfig": "^9.0.0",
@@ -65,7 +65,7 @@
65
65
  "picocolors": "^1.1.1",
66
66
  "react": "18.2.0",
67
67
  "react-native": "0.72.6",
68
- "react-native-bedrock": "0.0.0-dev.1739330039126",
68
+ "react-native-bedrock": "0.0.0-dev.1739416149790",
69
69
  "yaml": "^2.7.0",
70
70
  "yauzl": "^3.2.0",
71
71
  "zod": "^3.24.1"
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "8561a5fd5f5e1ac87e1ee2705a7b20ba493ec9bd"
76
+ "gitHead": "5c24130807211edbfa1c82bac88039112fa319c3"
77
77
  }