@augment-vir/node 30.8.1 → 30.8.2

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.
@@ -15,6 +15,8 @@ export declare const ExtensionToRunner: Record<string, string>;
15
15
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
16
16
  */
17
17
  export declare function runCliScript(path: string,
18
+ /** This should just be `__filename` (for CJS) or `import.meta.filename` (for ESM). */
19
+ cliScriptFilePath: string,
18
20
  /**
19
21
  * This should be the bin name of the package that is calling this function. Set to `undefined`
20
22
  * if there isn't one.
@@ -24,6 +24,8 @@ export const ExtensionToRunner = {
24
24
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
25
25
  */
26
26
  export async function runCliScript(path,
27
+ /** This should just be `__filename` (for CJS) or `import.meta.filename` (for ESM). */
28
+ cliScriptFilePath,
27
29
  /**
28
30
  * This should be the bin name of the package that is calling this function. Set to `undefined`
29
31
  * if there isn't one.
@@ -32,7 +34,7 @@ binName) {
32
34
  const args = extractRelevantArgs({
33
35
  rawArgs: process.argv,
34
36
  binName,
35
- fileName: import.meta.filename,
37
+ fileName: cliScriptFilePath,
36
38
  });
37
39
  const extension = extname(path);
38
40
  const runner = ExtensionToRunner[extension];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/node",
3
- "version": "30.8.1",
3
+ "version": "30.8.2",
4
4
  "description": "A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.",
5
5
  "keywords": [
6
6
  "augment",
@@ -37,8 +37,8 @@
37
37
  "test:update": "npm test"
38
38
  },
39
39
  "dependencies": {
40
- "@augment-vir/assert": "^30.8.1",
41
- "@augment-vir/common": "^30.8.1",
40
+ "@augment-vir/assert": "^30.8.2",
41
+ "@augment-vir/common": "^30.8.2",
42
42
  "@date-vir/duration": "^7.0.1",
43
43
  "ansi-styles": "^6.2.1",
44
44
  "terminate": "^2.8.0",
@@ -46,7 +46,7 @@
46
46
  "typed-event-target": "^4.0.2"
47
47
  },
48
48
  "devDependencies": {
49
- "@augment-vir/test": "^30.8.1",
49
+ "@augment-vir/test": "^30.8.2",
50
50
  "@prisma/client": "^5.22.0",
51
51
  "@types/node": "^22.9.0",
52
52
  "@web/dev-server-esbuild": "^1.0.3",