@superwall/cli 2.5.0 → 2.6.0-beta.1
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/README.md +7 -0
- package/dist/{apple-Dyr7OFBx.js → apple-Bmt_iywx.js} +14 -14
- package/dist/{approve-Czs1-JO9.js → approve-D2UgqaRx.js} +31 -27
- package/dist/{assets-BrB9jQPQ.js → assets-B_quADds.js} +3 -3
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{session-D3fgXQBt.js → base-ChTi42M0.js} +35 -35
- package/dist/{billing-D5qqIlVb.js → billing-ZIETn0j4.js} +3 -3
- package/dist/{bind-B3eEcRyp.js → bind-ClFjTt0U.js} +4 -4
- package/dist/{build-DD9pSwHX.js → build-BWjXurjs.js} +11 -9
- package/dist/{client-AI9H4GGB.js → client-CyrYJzBF.js} +3 -3
- package/dist/create-7HDW3DCl.js +20 -0
- package/dist/{create-B4m-IKlr.js → create-BCIgjRHn.js} +6 -6
- package/dist/{create-ChfgWpiM.js → create-C3uklw-U.js} +31 -31
- package/dist/design-lint-CiFc78aM.js +158 -0
- package/dist/{doctor-XtXW6tKE.js → doctor-D2Q1EZe8.js} +6 -6
- package/dist/{drivers-CMEL13gp.js → drivers-BQkO5tHs.js} +3 -3
- package/dist/entry.js +20 -20
- package/dist/{environment-BWT2S4qC.js → environment-BocmdvZ-.js} +3 -3
- package/dist/{existing-b0GxFcnc.js → existing-Cl5x6_5u.js} +2 -2
- package/dist/{selection-BltBpyp5.js → framework-CLmf4swr.js} +50 -50
- package/dist/{held-D3PUNky2.js → held-Bykbwy-m.js} +6 -6
- package/dist/held-Chw3BtBV.js +17 -0
- package/dist/install-dXZZ79Oe.js +109 -0
- package/dist/{integrate-qvKd9pVW.js → integrate-DiSjlOjC.js} +23 -23
- package/dist/{types-JdxmnCko.js → lock-DgSx-p8Y.js} +79 -79
- package/dist/{login-PMoXUGqq.js → login-5sWIKDI2.js} +6 -6
- package/dist/login-DZ8Pipf6.js +17 -0
- package/dist/{login-COmGHrU5.js → login-Jp6E6d2e.js} +1 -1
- package/dist/{lookup-gjcKIZvh.js → lookup-CWzVfPpq.js} +3 -3
- package/dist/{migrate-SkkLLdmr.js → migrate-BKiOUsMY.js} +29 -29
- package/dist/{migration-DS44-3Zr.js → migration-Z69tLeHC.js} +29 -11
- package/dist/{notification-url-BjQPLf4-.js → notification-url-BDBxbwZq.js} +2 -2
- package/dist/{open-DQpm2yVs.js → open-DNd49kT-.js} +2 -2
- package/dist/{org-C04eAO-j.js → org-Dud1rF9f.js} +3 -3
- package/dist/{organization-BOECL3vZ.js → organization-7vJA3uy1.js} +8 -8
- package/dist/{orgs-D6Kk96mG.js → orgs-Z0H9WOs1.js} +1 -1
- package/dist/{paths-REb-GrbX.js → paths-CzTJVpfi.js} +1 -1
- package/dist/{playbook-Du4Oydbf.js → playbook-DJ__edOW.js} +10 -10
- package/dist/{project-CP6hiHra.js → project-NoMtbMyl.js} +9 -9
- package/dist/{promote-Dm2_b1WK.js → promote-DLtPSvmL.js} +23 -22
- package/dist/{pull-F6pvO4To.js → pull-AoUmaiMK.js} +8 -8
- package/dist/pull-C1xm2zqG.js +36 -0
- package/dist/pull-D-YuT3e0.js +106 -0
- package/dist/push-B42D8fKf.js +22 -0
- package/dist/{push-BIFLhAiO.js → push-BMblzg_6.js} +122 -22
- package/dist/{push-D_l9KJZN.js → push-BrzMFd4Z.js} +47 -47
- package/dist/push-Co5jk6Kr.js +30 -0
- package/dist/{registry-DIJB0mJa.js → registry-DDU10_Ix.js} +176 -155
- package/dist/resolve-DpOSDDdr.js +196 -0
- package/dist/{resources-BaP3p_LY.js → resources-CptT7HD6.js} +2 -2
- package/dist/{run-C5OPwhvS.js → run-c1O2_8pp.js} +2 -2
- package/dist/{run-CgLmD2vR.js → run-r3foWfhV.js} +93 -70
- package/dist/scan-D86kLtM7.js +4 -0
- package/dist/{scan-Bj5y0zTZ.js → scan-nVQO7JLx.js} +1 -1
- package/dist/{scope-CCb_7UvN.js → scope-ehZ7L1nj.js} +25 -11
- package/dist/{scope-Bp_zwJOo.js → scope-l1qGLsgz.js} +5 -5
- package/dist/{sdk-TvT0p_nO.js → sdk-DEfQttek.js} +7 -7
- package/dist/{series-TAixFBWW.js → series-D2ZpZ8cx.js} +96 -63
- package/dist/server-BEcsQaPu.js +29 -0
- package/dist/{server-CdVIboQn.js → server-DLARhh1k.js} +9 -9
- package/dist/session-Csuaw6RU.js +6 -0
- package/dist/{session-Ywim-P8M.js → session-Z0BeaJPf.js} +1 -1
- package/dist/{setup-zzjtTy8k.js → setup-C6NFy14d.js} +9 -9
- package/dist/skills/index.json +2 -2
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/SKILL.md +41 -31
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/cli.md +31 -28
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/slots.md +9 -9
- package/dist/{skills-2qYaUXGE.js → skills-421SFEyF.js} +4 -4
- package/dist/{skills-8um2fBPS.js → skills-CdKwaTRS.js} +8 -8
- package/dist/{git-D7AVdugb.js → source-BccdO4aL.js} +111 -102
- package/dist/{source-push-kAep4gPe.js → source-push-B4s6r9bB.js} +43 -26
- package/dist/{spinner-BANVLncC.js → spinner-DPdBlZe2.js} +3 -3
- package/dist/{starter-CiLrp1cN.js → starter-0OdVPH4l.js} +27 -27
- package/dist/{status-CoYMK7QL.js → status-Dsc7d3z2.js} +42 -39
- package/dist/{storage-DzP22xKn.js → storage-DT_wxwJ8.js} +1 -1
- package/dist/{storekit-n1x0bWkQ.js → storekit-B9M2raxe.js} +3 -3
- package/dist/storekit-BWZf-fNE.js +17 -0
- package/dist/{telemetry-CXN6f-ZX.js → telemetry-ovPiseFm.js} +1 -1
- package/dist/{token-FmeHywYt.js → token-Bu3FaRkv.js} +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +148 -128
- package/dist/{try-BWbzgelb.js → try-B8FYkTvQ.js} +29 -29
- package/dist/{upgrade-Bk5boOgW.js → upgrade-B7TmvEPP.js} +2 -2
- package/dist/{upgrade-CoWCEnoi.js → upgrade-CAHyrWUL.js} +2 -2
- package/package.json +2 -2
- package/dist/create-CJljlkJK.js +0 -20
- package/dist/held-CX7Zf8u-.js +0 -17
- package/dist/install-CVUXsx8c.js +0 -103
- package/dist/login-ClnJi1Ea.js +0 -17
- package/dist/pull-DsdOoG-D.js +0 -36
- package/dist/pull-zYAbqo9n.js +0 -106
- package/dist/push-CJVfvFZq.js +0 -29
- package/dist/push-SVzv7fzE.js +0 -22
- package/dist/resolve--GsHj0Q1.js +0 -171
- package/dist/scan-v_WTE722.js +0 -4
- package/dist/server-CvJVusw3.js +0 -29
- package/dist/session-B8JNXkwN.js +0 -6
- package/dist/storekit-D5eopLM0.js +0 -17
- /package/dist/{download-2Zu2I_Og.js → download-DhGd4hOB.js} +0 -0
- /package/dist/{reports-CuhB1_ub.js → reports-HYVp169R.js} +0 -0
- /package/dist/{storage-BjQCiTuz.d.ts → storage-Bdz5AmqS.d.ts} +0 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { u as DASHBOARD_ORIGIN_OVERRIDE } from "./environment-BocmdvZ-.js";
|
|
2
|
+
import { a as orgProjects, n as listOrganizations } from "./orgs-Z0H9WOs1.js";
|
|
3
|
+
import { t as ArtifactError } from "./project-NoMtbMyl.js";
|
|
4
|
+
import { n as ARTIFACT_FILE } from "./scope-ehZ7L1nj.js";
|
|
5
|
+
import * as fs from "node:fs";
|
|
6
|
+
import * as path from "node:path";
|
|
7
|
+
|
|
8
|
+
//#region src/core/artifacts/api.ts
|
|
9
|
+
const artifactPath = (id) => `/v2/artifacts/${encodeURIComponent(String(id))}`;
|
|
10
|
+
const versionPath = (id, version) => `${artifactPath(id)}/versions/${encodeURIComponent(String(version))}`;
|
|
11
|
+
const getMe = (api) => api.get("/v2/me");
|
|
12
|
+
const listMembers = async (api, organizationId) => (await api.get(`/v2/organizations/${encodeURIComponent(String(organizationId))}/access/members`)).data ?? [];
|
|
13
|
+
const getArtifact = (api, id) => api.get(artifactPath(id));
|
|
14
|
+
const listArtifacts = async (api, organizationId, slug) => {
|
|
15
|
+
const search = new URLSearchParams({
|
|
16
|
+
organization_id: organizationId,
|
|
17
|
+
...slug ? { slug } : {}
|
|
18
|
+
});
|
|
19
|
+
return (await api.get(`/v2/artifacts?${search}`)).data;
|
|
20
|
+
};
|
|
21
|
+
const createArtifact = (api, organizationId, name, slug) => api.post("/v2/artifacts", {
|
|
22
|
+
organization_id: Number(organizationId),
|
|
23
|
+
name,
|
|
24
|
+
slug
|
|
25
|
+
});
|
|
26
|
+
const listVersions = async (api, id) => (await api.get(`${artifactPath(id)}/versions`)).data;
|
|
27
|
+
const mintSourceAccess = (api, id) => api.post(`${artifactPath(id)}/source-access`, {});
|
|
28
|
+
const startBuild = (api, id, commitSha, tokenId) => api.post(`${artifactPath(id)}/builds`, {
|
|
29
|
+
commit_sha: commitSha,
|
|
30
|
+
token_id: tokenId
|
|
31
|
+
});
|
|
32
|
+
const getBuild = (api, id, version) => api.get(`${versionPath(id, version)}/build`);
|
|
33
|
+
const requestDeploy = (api, id, version) => api.post(`${versionPath(id, version)}/request-deploy`, {});
|
|
34
|
+
const approveVersion = (api, id, version) => api.post(`${versionPath(id, version)}/approve`, {});
|
|
35
|
+
const listInstallations = async (api, id) => (await api.get(`${artifactPath(id)}/installations`)).data;
|
|
36
|
+
const setInstallation = (api, id, body) => api.put(`${artifactPath(id)}/installations`, body);
|
|
37
|
+
const deleteInstallation = (api, id, entrypoint, application) => {
|
|
38
|
+
const search = new URLSearchParams({
|
|
39
|
+
entrypoint_id: entrypoint,
|
|
40
|
+
...application ? { application_id: application } : {}
|
|
41
|
+
});
|
|
42
|
+
return api.del(`${artifactPath(id)}/installations?${search}`);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/core/artifacts/binding.ts
|
|
47
|
+
function readBinding(root) {
|
|
48
|
+
const file = path.join(root, ARTIFACT_FILE);
|
|
49
|
+
let text;
|
|
50
|
+
try {
|
|
51
|
+
text = fs.readFileSync(file, "utf8");
|
|
52
|
+
} catch {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
let parsed;
|
|
56
|
+
try {
|
|
57
|
+
parsed = JSON.parse(text);
|
|
58
|
+
} catch (error) {
|
|
59
|
+
throw new ArtifactError(`${ARTIFACT_FILE} is not valid JSON: ${error.message}`);
|
|
60
|
+
}
|
|
61
|
+
const { artifact_id: artifactId, organization_id: organizationId, slug, synced_commit: syncedCommit, reviewed_commit: reviewedCommit } = parsed;
|
|
62
|
+
if (typeof artifactId !== "number" || typeof organizationId !== "number" || typeof slug !== "string") throw new ArtifactError(`${ARTIFACT_FILE} needs artifact_id, organization_id and slug.`);
|
|
63
|
+
return {
|
|
64
|
+
artifactId: String(artifactId),
|
|
65
|
+
organizationId: String(organizationId),
|
|
66
|
+
slug,
|
|
67
|
+
...typeof syncedCommit === "string" ? { syncedCommit } : {},
|
|
68
|
+
...typeof reviewedCommit === "string" ? { reviewedCommit } : {}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
const formatBinding = (binding, includeSync) => `${JSON.stringify({
|
|
72
|
+
artifact_id: Number(binding.artifactId),
|
|
73
|
+
organization_id: Number(binding.organizationId),
|
|
74
|
+
slug: binding.slug,
|
|
75
|
+
...includeSync && binding.syncedCommit ? { synced_commit: binding.syncedCommit } : {},
|
|
76
|
+
...includeSync && binding.reviewedCommit ? { reviewed_commit: binding.reviewedCommit } : {}
|
|
77
|
+
}, null, 2)}\n`;
|
|
78
|
+
function writeBinding(root, binding) {
|
|
79
|
+
fs.writeFileSync(path.join(root, ARTIFACT_FILE), formatBinding(binding, true));
|
|
80
|
+
}
|
|
81
|
+
function readSourceFile(root, relative$1) {
|
|
82
|
+
const file = path.join(root, relative$1);
|
|
83
|
+
if (relative$1 !== ARTIFACT_FILE) return fs.readFileSync(file);
|
|
84
|
+
const binding = readBinding(root);
|
|
85
|
+
return binding ? Buffer.from(formatBinding(binding, false)) : fs.readFileSync(file);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/core/artifacts/resolve.ts
|
|
90
|
+
const projectRoot = (dir) => path.resolve(dir ?? process.cwd());
|
|
91
|
+
async function resolveArtifact(ctx, ref) {
|
|
92
|
+
if (ref.artifact !== void 0) {
|
|
93
|
+
if (/^\d+$/.test(ref.artifact)) return getArtifact(ctx.api, ref.artifact);
|
|
94
|
+
if (ref.org === void 0) throw new ArtifactError(`A slug needs its organization: add --org <id>, or pass the artifact's id.`);
|
|
95
|
+
const [found] = await listArtifacts(ctx.api, ref.org, ref.artifact);
|
|
96
|
+
if (!found) throw new ArtifactError(`No artifact \`${ref.artifact}\` in organization ${ref.org}.`);
|
|
97
|
+
return found;
|
|
98
|
+
}
|
|
99
|
+
const binding = readBinding(projectRoot(ref.dir));
|
|
100
|
+
if (!binding) throw new ArtifactError("This project isn't linked to an artifact yet. Run `superwall artifacts push`, or say which with --artifact <id>.");
|
|
101
|
+
return getArtifact(ctx.api, binding.artifactId);
|
|
102
|
+
}
|
|
103
|
+
function dashboardOrigin(apiHost) {
|
|
104
|
+
return DASHBOARD_ORIGIN_OVERRIDE() ?? (new URL(apiHost).hostname.endsWith(".dev") ? "https://app.superwall.dev" : "https://app.superwall.com");
|
|
105
|
+
}
|
|
106
|
+
const artifactUrl = (apiHost, artifact) => `${dashboardOrigin(apiHost)}/${artifact.organization_id}/artifacts/${encodeURIComponent(artifact.slug)}`;
|
|
107
|
+
const EMBED_SLOTS = new Set([
|
|
108
|
+
"app.dashboard.widget@1",
|
|
109
|
+
"campaign.tab@1",
|
|
110
|
+
"campaign.metric@1",
|
|
111
|
+
"user.panel@1",
|
|
112
|
+
"user.action@1"
|
|
113
|
+
]);
|
|
114
|
+
const appEntrypointUrl = (apiHost, artifact, applicationId, entrypoint) => {
|
|
115
|
+
const app = `${dashboardOrigin(apiHost)}/${artifact.organization_id}/${applicationId}`;
|
|
116
|
+
if (entrypoint.slot === "chart.source@1") return `${app}/charts?cS=artifacts`;
|
|
117
|
+
if (EMBED_SLOTS.has(entrypoint.slot)) return `${app}/embeds`;
|
|
118
|
+
return `${app}/apps/${artifact.id}/${encodeURIComponent(entrypoint.id)}`;
|
|
119
|
+
};
|
|
120
|
+
const mainEntrypoint = (entrypoints) => entrypoints.find((entrypoint) => entrypoint.slot === "app.page@1") ?? entrypoints.find((entrypoint) => EMBED_SLOTS.has(entrypoint.slot)) ?? entrypoints.find((entrypoint) => entrypoint.slot === "chart.source@1");
|
|
121
|
+
async function openLink(ctx, artifact, manifest) {
|
|
122
|
+
const fallback = { url: artifactUrl(ctx.api.host, artifact) };
|
|
123
|
+
const entrypoints = manifest?.entrypoints ?? [];
|
|
124
|
+
const main = mainEntrypoint(entrypoints);
|
|
125
|
+
if (!main || entrypoints.some((entrypoint) => entrypoint.slot === "org.page@1")) return fallback;
|
|
126
|
+
const apps = (await orgProjects(ctx.api, String(artifact.organization_id)).catch(() => [])).flatMap((project) => project.applications ?? []);
|
|
127
|
+
const [first] = apps;
|
|
128
|
+
if (first === void 0) return fallback;
|
|
129
|
+
return {
|
|
130
|
+
url: appEntrypointUrl(ctx.api.host, artifact, String(first.id), main),
|
|
131
|
+
app: String(first.name ?? first.id),
|
|
132
|
+
otherApps: apps.length > 1
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
async function awaitingInstall(api, artifactId, manifest) {
|
|
136
|
+
const entrypoints = manifest?.entrypoints ?? [];
|
|
137
|
+
if (entrypoints.length === 0 || entrypoints.some((entrypoint) => entrypoint.slot === "org.page@1")) return false;
|
|
138
|
+
const installed = await listInstallations(api, artifactId).catch(() => void 0);
|
|
139
|
+
if (installed === void 0) return false;
|
|
140
|
+
return entrypoints.every((entrypoint) => !installed.some((row) => row.entrypoint_id === entrypoint.id));
|
|
141
|
+
}
|
|
142
|
+
const latestManifest = (versions) => newestFirst(versions).find((version) => version.manifest !== null)?.manifest;
|
|
143
|
+
async function visibilityOf(ctx, artifactId, version, manifest) {
|
|
144
|
+
const [artifact, me] = await Promise.all([getArtifact(ctx.api, artifactId).catch(() => void 0), getMe(ctx.api).catch(() => void 0)]);
|
|
145
|
+
if (artifact?.state === "turned_off") return {
|
|
146
|
+
visibleTo: "nobody",
|
|
147
|
+
sentence: `This artifact is turned off, so nobody can see version ${version}.`
|
|
148
|
+
};
|
|
149
|
+
if (artifact?.active_version_id === version) {
|
|
150
|
+
if (await awaitingInstall(ctx.api, artifactId, manifest)) return {
|
|
151
|
+
visibleTo: "its_author",
|
|
152
|
+
sentence: `Version ${version} is approved, but nothing is installed yet, so only its author can see it, marked "Not installed". An admin chooses where it shows with \`superwall artifacts install\`.`
|
|
153
|
+
};
|
|
154
|
+
return {
|
|
155
|
+
visibleTo: "everyone",
|
|
156
|
+
sentence: `Version ${version} is live.`
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
if (artifact?.author_version_id === version) return {
|
|
160
|
+
visibleTo: "you",
|
|
161
|
+
sentence: `Only you can see version ${version} until an admin approves it.`
|
|
162
|
+
};
|
|
163
|
+
if (me?.role === "SUPERADMIN") return {
|
|
164
|
+
visibleTo: "nobody",
|
|
165
|
+
sentence: `Nobody can see version ${version} until an admin approves it, because a staff account doesn't get a copy of its own.`
|
|
166
|
+
};
|
|
167
|
+
return {
|
|
168
|
+
visibleTo: "its_author",
|
|
169
|
+
sentence: `Only its author can see version ${version} until an admin approves it.`
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
async function roleCanApprove(ctx, artifact) {
|
|
173
|
+
const role = (await listOrganizations(ctx.api).catch(() => [])).find((organization) => String(organization.id) === String(artifact.organization_id))?.role;
|
|
174
|
+
return typeof role !== "string" || role === "OWNER" || role === "ADMIN";
|
|
175
|
+
}
|
|
176
|
+
const newestFirst = (versions) => [...versions].sort((a, b) => b.id - a.id);
|
|
177
|
+
async function pickVersion(ctx, artifact, requested, matches = () => true) {
|
|
178
|
+
const versions = newestFirst(await listVersions(ctx.api, artifact.id));
|
|
179
|
+
if (requested !== void 0) {
|
|
180
|
+
const version$1 = versions.find((candidate) => String(candidate.id) === requested);
|
|
181
|
+
if (!version$1) throw new ArtifactError(`No version ${requested} of \`${artifact.slug}\`.`);
|
|
182
|
+
return {
|
|
183
|
+
version: version$1,
|
|
184
|
+
versions
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
const version = versions.find(matches);
|
|
188
|
+
if (!version) throw new ArtifactError(`\`${artifact.slug}\` has no version for this yet. Run \`superwall artifacts push\`.`);
|
|
189
|
+
return {
|
|
190
|
+
version,
|
|
191
|
+
versions
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
//#endregion
|
|
196
|
+
export { listVersions as C, startBuild as D, setInstallation as E, listMembers as S, requestDeploy as T, deleteInstallation as _, newestFirst as a, listArtifacts as b, projectRoot as c, visibilityOf as d, readBinding as f, createArtifact as g, approveVersion as h, latestManifest as i, resolveArtifact as l, writeBinding as m, awaitingInstall as n, openLink as o, readSourceFile as p, dashboardOrigin as r, pickVersion as s, appEntrypointUrl as t, roleCanApprove as u, getBuild as v, mintSourceAccess as w, listInstallations as x, getMe as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ApiUnreachableError, t as ApiError } from "./client-
|
|
2
|
-
import { r as listReachableProjects } from "./orgs-
|
|
1
|
+
import { n as ApiUnreachableError, t as ApiError } from "./client-CyrYJzBF.js";
|
|
2
|
+
import { r as listReachableProjects } from "./orgs-Z0H9WOs1.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/json.ts
|
|
5
5
|
function isRecord(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as DASHBOARD_URL } from "./environment-
|
|
2
|
-
import { i as packagedDir } from "./paths-
|
|
1
|
+
import { d as DASHBOARD_URL } from "./environment-BocmdvZ-.js";
|
|
2
|
+
import { i as packagedDir } from "./paths-CzTJVpfi.js";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|