@openfn/cli 0.4.14 → 0.4.16
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 +4 -4
- package/dist/index.js +1 -1
- package/dist/process/runner.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -287,14 +287,14 @@ A workflow has a structure like this (better documentation is coming soon):
|
|
|
287
287
|
|
|
288
288
|
## Compilation
|
|
289
289
|
|
|
290
|
-
The CLI will
|
|
290
|
+
The CLI will compile your job code into regular Javascript. It does a number of things to make your code robust and portable:
|
|
291
291
|
|
|
292
292
|
- The language adaptor will be imported into the file
|
|
293
|
-
- The adaptor's execute function will be exported
|
|
293
|
+
- The adaptor's execute function will be exported from the file
|
|
294
294
|
- All top level operations will be added to an array
|
|
295
|
-
- That array will be made the default export of the file
|
|
295
|
+
- That operation array will be made the default export of the file
|
|
296
296
|
|
|
297
|
-
The result of this is a lightweight, modern JS
|
|
297
|
+
The result of this is a lightweight, modern JS module. It can be executed in any runtime environment: just execute each function in the exported array.
|
|
298
298
|
|
|
299
299
|
The CLI uses openfn's own runtime to execute jobs in a safe environment.
|
|
300
300
|
|
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ var expandAdaptors = {
|
|
|
214
214
|
name: "no-expand-adaptors",
|
|
215
215
|
yargs: {
|
|
216
216
|
boolean: true,
|
|
217
|
-
description: "Don't
|
|
217
|
+
description: "Don't try to auto-expand adaptor shorthand names"
|
|
218
218
|
},
|
|
219
219
|
ensure: (opts2) => {
|
|
220
220
|
setDefaultValue(opts2, "expandAdaptors", true);
|
package/dist/process/runner.js
CHANGED
|
@@ -306,7 +306,7 @@ var loadTransformOptions = async (opts, log) => {
|
|
|
306
306
|
let exports;
|
|
307
307
|
const [pattern] = opts.adaptors;
|
|
308
308
|
const [specifier] = pattern.split("=");
|
|
309
|
-
log.debug(`
|
|
309
|
+
log.debug(`Trying to preload types for ${specifier}`);
|
|
310
310
|
const path7 = await resolveSpecifierPath(pattern, opts.repoDir, log);
|
|
311
311
|
if (path7) {
|
|
312
312
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.16",
|
|
4
4
|
"description": "CLI devtools for the openfn toolchain.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"treeify": "^1.1.0",
|
|
46
46
|
"yargs": "^17.7.2",
|
|
47
|
-
"@openfn/
|
|
48
|
-
"@openfn/
|
|
47
|
+
"@openfn/compiler": "0.0.39",
|
|
48
|
+
"@openfn/deploy": "0.4.1",
|
|
49
49
|
"@openfn/describe-package": "0.0.18",
|
|
50
|
-
"@openfn/logger": "0.0.
|
|
51
|
-
"@openfn/runtime": "0.2.
|
|
50
|
+
"@openfn/logger": "0.0.20",
|
|
51
|
+
"@openfn/runtime": "0.2.6"
|
|
52
52
|
},
|
|
53
53
|
"files": [
|
|
54
54
|
"dist",
|