@requence/task 1.0.0-alpha.14 → 1.0.0-alpha.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @requence/task
2
2
 
3
+ ## 1.0.0-alpha.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 92ef7aa: include node info in all node related task updates
8
+
9
+ ## 1.0.0-alpha.15
10
+
11
+ ### Patch Changes
12
+
13
+ - 45d26fc: fixed task access token retrieval
14
+
3
15
  ## 1.0.0-alpha.14
4
16
 
5
17
  ### Patch Changes
package/build/cli.js CHANGED
@@ -4874,13 +4874,18 @@ function errorExit(title, text) {
4874
4874
  process.exit(1);
4875
4875
  }
4876
4876
  y.command("generate-types", "generates typescript types", (yargs) => yargs.option("access-token", {
4877
- describe: "access token"
4877
+ describe: "access token",
4878
+ type: "string"
4878
4879
  }).option("outfile", {
4879
4880
  default: "requence-env.d.ts"
4880
4881
  }).option("outdir", {
4881
4882
  default: ""
4882
4883
  }), async (argv) => {
4883
- const token = argv.accessToken ?? process.env.REQUENCE_ACCESS_TOKEN ?? JSON.parse(fs.readFileSync("package.json", "utf-8")).requence?.accessToken;
4884
+ let token = argv.accessToken ?? process.env.REQUENCE_TASK_ACCESS_TOKEN ?? process.env.REQUENCE_ACCESS_TOKEN;
4885
+ if (!token) {
4886
+ const pkgJson = JSON.parse(fs.readFileSync("package.json", "utf-8"));
4887
+ token = pkgJson.requence?.task?.accessToken ?? pkgJson.requence?.accessToken;
4888
+ }
4884
4889
  console.info();
4885
4890
  if (!token) {
4886
4891
  errorExit("No access token found", `You can provide the access token as argument to ${chalk.bold("createTask")},
@@ -4911,5 +4916,5 @@ in your ${chalk.bold("package.json")} in ${chalk.bold("requence.accessToken")}`)
4911
4916
  console.info(chalk.green("types saved to", chalk.bold(path.relative(process.cwd(), file))));
4912
4917
  }).scriptName("requence-task").help("h").demandCommand(1, 1).strict().parse();
4913
4918
 
4914
- //# debugId=15A15A18E843216464756E2164756E21
4919
+ //# debugId=F3A972B39B5A133F64756E2164756E21
4915
4920
  //# sourceMappingURL=cli.js.map