@hitch42/applet 0.1.1-beta.5 → 0.1.1-beta.6
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/applet.js +5 -5
- package/dist/build-B70gkDi5.js +2 -0
- package/dist/{build-D1S5XCRV.js → build-DIsKQQT0.js} +3 -1
- package/dist/{deploy-BDonkPqF.js → deploy-0dlUvCt3.js} +1 -1
- package/dist/{init-VzV28EFT.js → init-tEMeys9M.js} +2 -1
- package/package.json +1 -1
- package/scaffold/.github/workflows/hitch.yml +1 -1
- package/dist/build-pvl3vj91.js +0 -2
package/dist/applet.js
CHANGED
|
@@ -85,7 +85,7 @@ async function main() {
|
|
|
85
85
|
const noLogFlags = values.run === void 0 && values.filter === void 0 && values.level === void 0 && values.limit === void 0 && values.live === void 0 && values.search === void 0 && values.since === void 0;
|
|
86
86
|
const noModeFlags = values["client-only"] === void 0 && values["server-only"] === void 0;
|
|
87
87
|
if (positionals.length === 1 && positionals[0] === "bootstrap" && values.changeset === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags) {
|
|
88
|
-
await (await import("./init-
|
|
88
|
+
await (await import("./init-tEMeys9M.js")).runBootstrap({ install: values["no-install"] !== true });
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
if (positionals.length === 1 && positionals[0] === "generate" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags) {
|
|
@@ -93,15 +93,15 @@ async function main() {
|
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
95
|
if (positionals.length === 1 && positionals[0] === "build" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags) {
|
|
96
|
-
await (await import("./build-
|
|
96
|
+
await (await import("./build-B70gkDi5.js")).runBuild({ changesetId: values.changeset });
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
if (positionals.length === 1 && positionals[0] === "deploy" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags) {
|
|
100
|
-
await (await import("./deploy-
|
|
100
|
+
await (await import("./deploy-0dlUvCt3.js")).runDeploy({ changesetId: values.changeset });
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
if (positionals.length === 2 && positionals[0] === "init" && values.changeset === void 0 && noModeFlags && noVariableFlags && noLogFlags) {
|
|
104
|
-
await (await import("./init-
|
|
104
|
+
await (await import("./init-tEMeys9M.js")).runInit(positionals[1], {
|
|
105
105
|
commit: values["no-commit"] !== true,
|
|
106
106
|
git: values["no-git"] !== true,
|
|
107
107
|
install: values["no-install"] !== true
|
|
@@ -109,7 +109,7 @@ async function main() {
|
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
if (positionals.length === 2 && positionals[0] === "new" && values.changeset === void 0 && noGitFlags && noVariableFlags && noLogFlags) {
|
|
112
|
-
await (await import("./init-
|
|
112
|
+
await (await import("./init-tEMeys9M.js")).runNew({
|
|
113
113
|
code: positionals[1],
|
|
114
114
|
clientOnly: values["client-only"],
|
|
115
115
|
install: values["no-install"] !== true,
|
|
@@ -11,7 +11,8 @@ async function runPnpm(args, cwd) {
|
|
|
11
11
|
let finished = false;
|
|
12
12
|
const child = spawn("pnpm", args, {
|
|
13
13
|
cwd,
|
|
14
|
-
stdio: "inherit"
|
|
14
|
+
stdio: "inherit",
|
|
15
|
+
shell: process.platform === "win32"
|
|
15
16
|
});
|
|
16
17
|
child.once("error", (error) => {
|
|
17
18
|
finished = true;
|
|
@@ -46,6 +47,7 @@ async function buildApplet(appletRoot, changesetId, outDir = ".hitch/dist") {
|
|
|
46
47
|
], {
|
|
47
48
|
cwd: appletRoot,
|
|
48
49
|
stdio: "inherit",
|
|
50
|
+
shell: process.platform === "win32",
|
|
49
51
|
env: {
|
|
50
52
|
...process.env,
|
|
51
53
|
...changesetId === void 0 ? {} : { HITCH_CHANGESET_ID: changesetId }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as fetchWithOrgAuth } from "./auth-DaVK0k5R.js";
|
|
2
2
|
import { n as githubActionsContext, r as hitchResponseError, t as fetchWithGitHubActions } from "./ci-D0nC_Ho7.js";
|
|
3
3
|
import { r as readWorkspaceConfig } from "./load-config-BnxocLAQ.js";
|
|
4
|
-
import { t as buildApplet } from "./build-
|
|
4
|
+
import { t as buildApplet } from "./build-DIsKQQT0.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { readFile, readdir } from "node:fs/promises";
|
|
@@ -33,7 +33,8 @@ async function installDependencies(target, install) {
|
|
|
33
33
|
let finished = false;
|
|
34
34
|
const child = spawn("pnpm", ["install"], {
|
|
35
35
|
cwd: target,
|
|
36
|
-
stdio: "inherit"
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
shell: process.platform === "win32"
|
|
37
38
|
});
|
|
38
39
|
child.once("error", (error) => {
|
|
39
40
|
finished = true;
|
package/package.json
CHANGED
|
@@ -18,4 +18,4 @@ jobs:
|
|
|
18
18
|
contents: read
|
|
19
19
|
id-token: write
|
|
20
20
|
# Hitch verifies the called workflow's commit SHA from the OIDC token.
|
|
21
|
-
uses: hitch-42/actions/.github/workflows/deploy.yml@
|
|
21
|
+
uses: hitch-42/actions/.github/workflows/deploy.yml@1a76e4936f94730e20710b455fa0a06564929f39
|
package/dist/build-pvl3vj91.js
DELETED