@apps-in-toss/cli 0.0.0-dev.1741070687477 → 0.0.0-dev.1741073346182
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/chunk-SKA52PHO.js +173634 -0
- package/dist/index.cjs +21 -7
- package/dist/index.js +21 -7
- package/dist/typescript-C65BOS2Q.js +5 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -37579,9 +37579,26 @@ function transformTemplate(templateString, values) {
|
|
|
37579
37579
|
// src/InitCommand.ts
|
|
37580
37580
|
async function setupPnpm(cwd) {
|
|
37581
37581
|
p2.log.step(".npmrc \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
|
|
37582
|
-
|
|
37583
|
-
|
|
37584
|
-
|
|
37582
|
+
const npmrcPath = import_path3.default.join(cwd, ".npmrc");
|
|
37583
|
+
let config = {};
|
|
37584
|
+
try {
|
|
37585
|
+
const fileContent = await import_fs4.default.promises.readFile(npmrcPath, "utf-8");
|
|
37586
|
+
for (const line of fileContent.split("\n")) {
|
|
37587
|
+
const trimmed = line.trim();
|
|
37588
|
+
if (trimmed && !trimmed.startsWith("#")) {
|
|
37589
|
+
const [key, ...rest] = trimmed.split("=");
|
|
37590
|
+
if (!key) {
|
|
37591
|
+
continue;
|
|
37592
|
+
}
|
|
37593
|
+
config[key.trim()] = rest.join("=").trim();
|
|
37594
|
+
}
|
|
37595
|
+
}
|
|
37596
|
+
} catch (err) {
|
|
37597
|
+
config = {};
|
|
37598
|
+
}
|
|
37599
|
+
config["auto-install-peers"] = "false";
|
|
37600
|
+
const newContent = Object.entries(config).map(([key, value]) => `${key}=${value}`).join("\n");
|
|
37601
|
+
await import_fs4.default.promises.writeFile(npmrcPath, newContent, { encoding: "utf-8" });
|
|
37585
37602
|
await execa("pnpm", ["install"], {
|
|
37586
37603
|
cwd,
|
|
37587
37604
|
stdio: "inherit"
|
|
@@ -37716,10 +37733,7 @@ var InitCommand = class extends import_clipanion2.Command {
|
|
|
37716
37733
|
});
|
|
37717
37734
|
}
|
|
37718
37735
|
}
|
|
37719
|
-
const workspaceRoot = (0, import_workspace_tools.getWorkspaceRoot)(cwd);
|
|
37720
|
-
if (!workspaceRoot) {
|
|
37721
|
-
return;
|
|
37722
|
-
}
|
|
37736
|
+
const workspaceRoot = (0, import_workspace_tools.getWorkspaceRoot)(cwd) ?? cwd;
|
|
37723
37737
|
const lockFile = [
|
|
37724
37738
|
{ path: import_path3.default.join(workspaceRoot, "pnpm-lock.yaml"), type: "pnpm" },
|
|
37725
37739
|
{ path: import_path3.default.join(workspaceRoot, "yarn.lock"), type: "yarn" }
|
package/dist/index.js
CHANGED
|
@@ -37587,9 +37587,26 @@ function transformTemplate(templateString, values) {
|
|
|
37587
37587
|
// src/InitCommand.ts
|
|
37588
37588
|
async function setupPnpm(cwd) {
|
|
37589
37589
|
p2.log.step(".npmrc \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
|
|
37590
|
-
|
|
37591
|
-
|
|
37592
|
-
|
|
37590
|
+
const npmrcPath = path9.join(cwd, ".npmrc");
|
|
37591
|
+
let config = {};
|
|
37592
|
+
try {
|
|
37593
|
+
const fileContent = await fs4.promises.readFile(npmrcPath, "utf-8");
|
|
37594
|
+
for (const line of fileContent.split("\n")) {
|
|
37595
|
+
const trimmed = line.trim();
|
|
37596
|
+
if (trimmed && !trimmed.startsWith("#")) {
|
|
37597
|
+
const [key, ...rest] = trimmed.split("=");
|
|
37598
|
+
if (!key) {
|
|
37599
|
+
continue;
|
|
37600
|
+
}
|
|
37601
|
+
config[key.trim()] = rest.join("=").trim();
|
|
37602
|
+
}
|
|
37603
|
+
}
|
|
37604
|
+
} catch (err) {
|
|
37605
|
+
config = {};
|
|
37606
|
+
}
|
|
37607
|
+
config["auto-install-peers"] = "false";
|
|
37608
|
+
const newContent = Object.entries(config).map(([key, value]) => `${key}=${value}`).join("\n");
|
|
37609
|
+
await fs4.promises.writeFile(npmrcPath, newContent, { encoding: "utf-8" });
|
|
37593
37610
|
await execa("pnpm", ["install"], {
|
|
37594
37611
|
cwd,
|
|
37595
37612
|
stdio: "inherit"
|
|
@@ -37724,10 +37741,7 @@ var InitCommand = class extends Command2 {
|
|
|
37724
37741
|
});
|
|
37725
37742
|
}
|
|
37726
37743
|
}
|
|
37727
|
-
const workspaceRoot = (0, import_workspace_tools.getWorkspaceRoot)(cwd);
|
|
37728
|
-
if (!workspaceRoot) {
|
|
37729
|
-
return;
|
|
37730
|
-
}
|
|
37744
|
+
const workspaceRoot = (0, import_workspace_tools.getWorkspaceRoot)(cwd) ?? cwd;
|
|
37731
37745
|
const lockFile = [
|
|
37732
37746
|
{ path: path9.join(workspaceRoot, "pnpm-lock.yaml"), type: "pnpm" },
|
|
37733
37747
|
{ path: path9.join(workspaceRoot, "yarn.lock"), type: "yarn" }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.1741073346182",
|
|
5
5
|
"description": "CLI for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "e7d31a38dff4984b2c703e1b4a7ea8bd5847cfc0"
|
|
50
50
|
}
|