Skip to content

Commit 888a979

Browse files
authored
chore: Update to esy 0.9.2 and bump other dependencies (#2327)
1 parent f161bcd commit 888a979

File tree

9 files changed

+1043
-1768
lines changed

9 files changed

+1043
-1768
lines changed

cli/bin/exec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function execGrainc(
4141
commandOrFile = "",
4242
options,
4343
program,
44-
execOpts = { stdio: "inherit" }
44+
execOpts = { stdio: "inherit" },
4545
) {
4646
const flags = flagsFromOptions(program, options);
4747

@@ -67,7 +67,7 @@ function execGraindoc(
6767
commandOrFile = "",
6868
options,
6969
program,
70-
execOpts = { stdio: "inherit" }
70+
execOpts = { stdio: "inherit" },
7171
) {
7272
const flags = flagsFromOptions(program, options);
7373

@@ -93,7 +93,7 @@ function execGrainformat(
9393
commandOrFile = "",
9494
options,
9595
program,
96-
execOpts = { stdio: "inherit" }
96+
execOpts = { stdio: "inherit" },
9797
) {
9898
const flags = flagsFromOptions(program, options);
9999

@@ -134,7 +134,7 @@ function execGrainrun(
134134
file,
135135
options,
136136
program,
137-
execOpts = { stdio: "inherit" }
137+
execOpts = { stdio: "inherit" },
138138
) {
139139
const preopens = {};
140140
options.dir?.forEach((preopen) => {

cli/bin/grain.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class GrainHelp extends commander.Help {
5252
// If we are running `--help` at the root, we want to list options for `compile-and-run`
5353
if (cmd.name() === "grain") {
5454
return super.visibleOptions(
55-
cmd.commands.find((command) => command.name() === "compile-and-run")
55+
cmd.commands.find((command) => command.name() === "compile-and-run"),
5656
);
5757
}
5858
return super.visibleOptions(cmd);
@@ -87,69 +87,69 @@ class GrainCommand extends commander.Command {
8787
"-I, --include-dirs <dirs>",
8888
"add additional dependency include directories",
8989
list,
90-
[]
90+
[],
9191
);
9292
cmd.forwardOption(
9393
"-S, --stdlib <path>",
9494
"override the standard library with your own",
9595
null,
96-
stdlibPath
96+
stdlibPath,
9797
);
9898
cmd.forwardOption(
9999
"--initial-memory-pages <size>",
100100
"initial number of WebAssembly memory pages",
101-
num
101+
num,
102102
);
103103
cmd.forwardOption(
104104
"--maximum-memory-pages <size>",
105105
"maximum number of WebAssembly memory pages",
106-
num
106+
num,
107107
);
108108
cmd.forwardOption("--import-memory", "import the memory from `env.memory`");
109109
cmd.forwardOption(
110110
"--elide-type-info",
111-
"don't include runtime type information used by toString/print"
111+
"don't include runtime type information used by toString/print",
112112
);
113113
cmd.profileOption(
114114
"--release",
115-
"compile using the release profile (production mode)"
115+
"compile using the release profile (production mode)",
116116
);
117117
cmd.forwardOption("--no-wasm-tail-call", "disables tail-call optimization");
118118
cmd.forwardOption("--debug", "compile with debugging information");
119119
cmd.forwardOption(
120120
"--wat",
121-
"additionally produce a WebAssembly Text (.wat) file"
121+
"additionally produce a WebAssembly Text (.wat) file",
122122
);
123123
cmd.forwardOption(
124124
"--hide-locs",
125-
"hide locations from intermediate trees. Only has an effect with `--verbose`"
125+
"hide locations from intermediate trees. Only has an effect with `--verbose`",
126126
);
127127
cmd.forwardOption("--no-color", "disable colored output");
128128
cmd.forwardOption(
129129
"--no-gc",
130-
"turn off reference counting garbage collection"
130+
"turn off reference counting garbage collection",
131131
);
132132
cmd.forwardOption(
133133
"--no-bulk-memory",
134-
"polyfill WebAssembly bulk memory instructions"
134+
"polyfill WebAssembly bulk memory instructions",
135135
);
136136
cmd.forwardOption(
137137
"--wasi-polyfill <filename>",
138-
"path to custom WASI implementation"
138+
"path to custom WASI implementation",
139139
);
140140
cmd.forwardOption(
141141
"--no-pervasives",
142-
"don't automatically import the Grain Pervasives module"
142+
"don't automatically import the Grain Pervasives module",
143143
);
144144
cmd.forwardOption(
145145
"--memory-base <addr>",
146-
"set the base address for the Grain heap"
146+
"set the base address for the Grain heap",
147147
);
148148
cmd.forwardOption("--source-map", "generate source maps");
149149
cmd.forwardOption("--strict-sequence", "enable strict sequencing");
150150
cmd.forwardOption(
151151
"--verbose",
152-
"print critical information at various stages of compilation"
152+
"print critical information at various stages of compilation",
153153
);
154154
return cmd;
155155
}
@@ -191,11 +191,11 @@ program
191191
.forwardOption("-o <filename>", "output filename")
192192
.forwardOption(
193193
"--single-file",
194-
"compile a single file without compiling dependencies"
194+
"compile a single file without compiling dependencies",
195195
)
196196
.forwardOption(
197197
"--use-start-section",
198-
"replaces the _start export with a start section during linking"
198+
"replaces the _start export with a start section during linking",
199199
)
200200
.forwardOption("--no-link", "disable static linking")
201201
.action(exec.grainc);
@@ -217,7 +217,7 @@ program
217217
.description("generate documentation for a grain file")
218218
.forwardOption(
219219
"--current-version <version>",
220-
"provide a version to use as current when generating markdown for `@since` and `@history` attributes"
220+
"provide a version to use as current when generating markdown for `@since` and `@history` attributes",
221221
)
222222
.forwardOption("-o <file|dir>", "output file or directory")
223223
.action(exec.graindoc);

cli/bin/grainrun.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ async function run(filename) {
3333
} catch (err) {
3434
if (filename.endsWith(".gr")) {
3535
console.error(
36-
`The \`grain run\` command is used on compiled \`.wasm\` files.`
36+
`The \`grain run\` command is used on compiled \`.wasm\` files.`,
3737
);
3838
console.error(
39-
`To compile and run your \`.gr\` file, use \`grain ${filename}\``
39+
`To compile and run your \`.gr\` file, use \`grain ${filename}\``,
4040
);
4141
} else {
4242
console.error(`Unable to compile WebAssembly module.`);

cli/bin/pkg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ if (process.pkg) {
2222
new RegExp(`${regexpSafeStdlibPath}(.+)(?<!.gr)$`),
2323
function (_match, group1) {
2424
return path.join(stdlibTarget, group1);
25-
}
25+
},
2626
);
2727
}

cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"devDependencies": {
4141
"@grain/pkg": "6.5.0",
42-
"del-cli": "^4.0.1",
43-
"prettier": "^2.3.2"
42+
"del-cli": "^7.0.0",
43+
"prettier": "^3.6.2"
4444
}
4545
}

0 commit comments

Comments
 (0)