@apps-in-toss/web-framework 0.0.0-dev.1739415803173 → 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.
- package/dist/cli.cjs +30 -19
- package/dist/cli.js +29 -19
- package/package.json +7 -7
package/dist/cli.cjs
CHANGED
|
@@ -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
|
|
561
|
-
if (
|
|
562
|
-
const yarnrcPath = import_path5.default.join(
|
|
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
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
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.
|
|
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
|
@@ -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
|
|
510
|
-
if (
|
|
511
|
-
const yarnrcPath = path5.join(
|
|
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
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
42
|
-
"@apps-in-toss/framework": "0.0.0-dev.
|
|
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.
|
|
57
|
-
"@react-native-bedrock/native": "0.0.0-dev.
|
|
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.
|
|
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": "
|
|
76
|
+
"gitHead": "5c24130807211edbfa1c82bac88039112fa319c3"
|
|
77
77
|
}
|