@flowrunner/cli 0.1.8 → 0.1.9
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/ai-docs/instructions/service-code-format/01-service-structure.md +1 -1
- package/ai-docs/instructions/service-code-format/04-http-requests.md +17 -13
- package/ai-docs/instructions/service-code-format/06-oauth2.md +1 -5
- package/ai-docs/instructions/service-code-format/07-actions.md +16 -12
- package/ai-docs/instructions/service-code-format/14-reference-service.md +5 -4
- package/ai-docs/instructions/service-code-format/17-client-certificates.md +5 -3
- package/dist/cli.js +18 -1
- package/dist/cli.js.map +2 -2
- package/dist/index.js +17 -0
- package/dist/index.js.map +2 -2
- package/dist/types/flow-extension-runner/src/v2/types.d.ts +1 -1
- package/dist/types/shared/src/constants/notification-types.d.ts +2 -2
- package/package.json +1 -1
- package/runtime/index.js.map +1 -1
- package/runtime/types/flow-extension-runner/src/v2/types.d.ts +1 -1
- package/runtime/types/shared/src/constants/notification-types.d.ts +2 -2
- package/templates/blank/files/src/index.js +1 -1
- package/templates/demo-todo-list/files/src/index.js +1 -1
- package/templates/qa-test/files/src/index.js +1 -1
package/dist/index.js
CHANGED
|
@@ -9653,6 +9653,22 @@ function writeReadme(projectRoot) {
|
|
|
9653
9653
|
import_fs13.default.writeFileSync(fullPath, README(packageNameFrom(projectRoot)), "utf-8");
|
|
9654
9654
|
return "created";
|
|
9655
9655
|
}
|
|
9656
|
+
var JSCONFIG = {
|
|
9657
|
+
compilerOptions: {
|
|
9658
|
+
module: "node16",
|
|
9659
|
+
moduleResolution: "node16",
|
|
9660
|
+
types: [`${CLI_PACKAGE}/runtime`]
|
|
9661
|
+
},
|
|
9662
|
+
include: ["services/*/src/**/*.js"]
|
|
9663
|
+
};
|
|
9664
|
+
function writeJsconfig(projectRoot) {
|
|
9665
|
+
const fullPath = import_path18.default.join(projectRoot, "jsconfig.json");
|
|
9666
|
+
if (import_fs13.default.existsSync(fullPath)) {
|
|
9667
|
+
return "skipped";
|
|
9668
|
+
}
|
|
9669
|
+
import_fs13.default.writeFileSync(fullPath, JSON.stringify(JSCONFIG, null, 2) + "\n", "utf-8");
|
|
9670
|
+
return "created";
|
|
9671
|
+
}
|
|
9656
9672
|
function git(projectRoot, args) {
|
|
9657
9673
|
(0, import_child_process.execFileSync)("git", args, { cwd: projectRoot, stdio: "pipe" });
|
|
9658
9674
|
}
|
|
@@ -9768,6 +9784,7 @@ async function init(options = {}) {
|
|
|
9768
9784
|
const server = ensureServerUrl(projectRoot, requestedServerUrl);
|
|
9769
9785
|
record(CONFIG_FILE, server.created ? "created" : server.updated ? "updated" : "skipped");
|
|
9770
9786
|
record("README.md", writeReadme(projectRoot));
|
|
9787
|
+
record("jsconfig.json", writeJsconfig(projectRoot));
|
|
9771
9788
|
const testing = tests ? writeTestingFiles(projectRoot) : { created: [], skipped: [] };
|
|
9772
9789
|
testing.created.forEach((file) => record(file, "created"));
|
|
9773
9790
|
testing.skipped.forEach((file) => record(file, "skipped"));
|