@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/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"));