@catladder/cli 1.158.1 → 1.159.0

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/package.json CHANGED
@@ -52,7 +52,7 @@
52
52
  }
53
53
  ],
54
54
  "license": "MIT",
55
- "version": "1.158.1",
55
+ "version": "1.159.0",
56
56
  "scripts": {
57
57
  "lint": "eslint \"src/**/*.ts\"",
58
58
  "lint:fix": "eslint \"src/**/*.ts\" --fix",
@@ -72,9 +72,6 @@
72
72
  "engines": {
73
73
  "node": ">=12.0.0"
74
74
  },
75
- "dependencies": {
76
- "ts-node": "^10.9.1"
77
- },
78
75
  "devDependencies": {
79
76
  "@gitbeaker/rest": "^39.28.0",
80
77
  "@kubernetes/client-node": "^0.16.2",
package/scripts/bundle CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
- ncc build dist/cli/src/catenv.js -o dist/bundles/catenv -e 'ts-node' $( ((SHOULD_MINIFY == 1)) && printf %s '-m')
2
+ ncc build dist/cli/src/catenv.js -o dist/bundles/catenv -e 'tsx/cjs/api' $( ((SHOULD_MINIFY == 1)) && printf %s '-m')
3
3
 
4
- ncc build dist/cli/src/cli.js -o dist/bundles/cli -e 'ts-node' $( ((SHOULD_MINIFY == 1)) && printf %s '-m')
4
+ ncc build dist/cli/src/cli.js -o dist/bundles/cli -e 'tsx/cjs/api' $( ((SHOULD_MINIFY == 1)) && printf %s '-m')
5
5
 
6
- ncc build dist/cli/src/catci.js -o dist/bundles/catci -e 'ts-node' $( ((SHOULD_MINIFY == 1)) && printf %s '-m')
6
+ ncc build dist/cli/src/catci.js -o dist/bundles/catci -e 'tsx/cjs/api' $( ((SHOULD_MINIFY == 1)) && printf %s '-m')
@@ -1,6 +1,6 @@
1
1
  import type { Config, EnvironmentEnvVars } from "@catladder/pipeline";
2
2
  import {
3
- readConfigSync,
3
+ readConfig,
4
4
  getAllEnvs,
5
5
  getEnvironment as _getEnvironment,
6
6
  createComponentContext,
@@ -24,7 +24,7 @@ const reloadConfigAndObserve = async () => {
24
24
  if (!gitRoot) {
25
25
  return;
26
26
  }
27
- const result = readConfigSync(gitRoot);
27
+ const result = await readConfig(gitRoot);
28
28
  if (!result) {
29
29
  // can't do anything, there is no config
30
30
  return;