@terascope/scripts 1.0.2 → 1.1.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/bin/ts-scripts.js CHANGED
@@ -7,5 +7,5 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
7
7
 
8
8
  // this path.join is only used for pkg asset injection
9
9
  path.join(dirname, '../package.json');
10
- // eslint-disable-next-line import/no-unresolved
10
+
11
11
  import('../dist/src/command.js');
@@ -9,7 +9,7 @@ export async function executeHook(hook, quiet, ...args) {
9
9
  const { terascope: { hook_file } } = getRootInfo();
10
10
  if (!hook_file)
11
11
  return;
12
- let hookFile = require(path.resolve(hook_file));
12
+ let hookFile = await import(path.resolve(hook_file));
13
13
  if (hookFile.default) {
14
14
  hookFile = hookFile.default;
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/helpers/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC;;;EAGE;AACF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAU,EAAE,KAAc,EAAE,GAAG,IAAW;IACxE,MAAM,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC;IACnD,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,IAAI,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IAChD,IAAI,QAAQ,CAAC,OAAO,EAAE;QAClB,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC;KAC/B;IAED,IAAI,CAAC,KAAK,EAAE;QACR,OAAO,CAAC,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,CAAC;KAC1C;IACD,MAAM,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;AAClC,CAAC"}
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/helpers/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC;;;EAGE;AACF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAU,EAAE,KAAc,EAAE,GAAG,IAAW;IACxE,MAAM,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC;IACnD,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,IAAI,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IACrD,IAAI,QAAQ,CAAC,OAAO,EAAE;QAClB,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC;KAC/B;IAED,IAAI,CAAC,KAAK,EAAE;QACR,OAAO,CAAC,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,CAAC;KAC1C;IACD,MAAM,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;AAClC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@terascope/scripts",
3
3
  "displayName": "Scripts",
4
- "version": "1.0.2",
4
+ "version": "1.1.0",
5
5
  "description": "A collection of terascope monorepo scripts",
6
6
  "homepage": "https://github.com/terascope/teraslice/tree/master/packages/scripts#readme",
7
7
  "bugs": {
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@kubernetes/client-node": "^0.21.0",
36
- "@terascope/utils": "^1.0.0",
36
+ "@terascope/utils": "^1.1.0",
37
37
  "codecov": "^3.8.3",
38
38
  "execa": "^5.1.0",
39
39
  "fs-extra": "^11.2.0",
@@ -74,8 +74,8 @@
74
74
  }
75
75
  },
76
76
  "engines": {
77
- "node": ">=14.17.0",
78
- "yarn": ">=1.16.0"
77
+ "node": ">=18.18.0",
78
+ "yarn": ">=1.22.19"
79
79
  },
80
80
  "publishConfig": {
81
81
  "access": "public",