@plugjs/plug 0.7.2 → 0.7.4

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/globals.d.ts CHANGED
@@ -1,9 +1,2 @@
1
- /**
2
- * A pseudo-variable replaced by `ESBuild` resolving to either `__filename`
3
- * in CJS modules, or to `import.meta.url` in ESM modules.
4
- *
5
- * @deprecated As we are moving to ESM-only, this will be removed in the future.
6
- * Use `import.meta.url` or `import.meta.filename` instead.
7
- */
8
- declare const __fileurl: string;
1
+ export {};
9
2
  //# sourceMappingURL=globals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../src/globals.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,CAAC,MAAM,SAAS,EAAE,MAAM,CAAA"}
1
+ {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../src/globals.ts"],"names":[],"mappings":""}
package/dist/globals.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";
1
+ export {};
2
2
  //# sourceMappingURL=globals.js.map
@@ -9,7 +9,7 @@ export interface CopyOptions {
9
9
  /** If specified, this function will be invoked to rename files. */
10
10
  rename?: (relative: string) => string;
11
11
  }
12
- declare module '../index' {
12
+ declare module '../index.ts' {
13
13
  interface Pipe {
14
14
  /**
15
15
  * Copy the curent {@link Files} to a different directory
@@ -1 +1 @@
1
- {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../src/plugs/copy.ts"],"names":[],"mappings":"AASA,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,mEAAmE;IACnE,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC;AAED,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB;;;;WAIG;QACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;QAC7B;;;;;WAKG;QACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;KACpD;CACF"}
1
+ {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../src/plugs/copy.ts"],"names":[],"mappings":"AASA,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,mEAAmE;IACnE,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;CACtC;AAED,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB;;;;WAIG;QACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;QAC7B;;;;;WAKG;QACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;KACpD;CACF"}
@@ -1,4 +1,4 @@
1
- declare module '../index' {
1
+ declare module '../index.ts' {
2
2
  interface Pipe {
3
3
  /** Log some info about the current {@link Files} being passed around. */
4
4
  debug(title?: string): Pipe;
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/plugs/debug.ts"],"names":[],"mappings":"AAMA,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB,yEAAyE;QACzE,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/plugs/debug.ts"],"names":[],"mappings":"AAMA,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB,yEAAyE;QACzE,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC5B;CACF"}
@@ -1,5 +1,5 @@
1
1
  import type { AbsolutePath } from '../paths.ts';
2
- declare module '../index' {
2
+ declare module '../index.ts' {
3
3
  interface Pipe {
4
4
  /** Edits the content of all files in a pipeline. */
5
5
  edit(callback: (content: string, fileName: AbsolutePath) => string | void | Promise<string | void>): Pipe;
@@ -1 +1 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../src/plugs/edit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB,oDAAoD;QACpD,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;KAC1G;CACF"}
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../src/plugs/edit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB,oDAAoD;QACpD,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;KAC1G;CACF"}
@@ -11,7 +11,7 @@ export interface ModuleToCommonJSOptions {
11
11
  }
12
12
  export * from './esbuild/bundle-locals.ts';
13
13
  export * from './esbuild/fix-extensions.ts';
14
- declare module '../index' {
14
+ declare module '../index.ts' {
15
15
  interface Pipe {
16
16
  /**
17
17
  * Transpile and bundle with {@link https://esbuild.github.io/ esbuild}.
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../src/plugs/esbuild.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAgB,YAAY,EAA0C,MAAM,SAAS,CAAA;AAMjG,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE,eAAe,GAAG,aAAa,GAAG,OAAO,CAAC,CAAA;AAE1F,qDAAqD;AACrD,MAAM,WAAW,uBAAuB;IACtC,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAE3C,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB;;;;;;;;WAQG;QACH,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAA;QAEtC;;;;;;;WAOG;QACH,OAAO,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAA;KACjD;CACF"}
1
+ {"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../src/plugs/esbuild.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAgB,YAAY,EAA0C,MAAM,SAAS,CAAA;AAMjG,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE,eAAe,GAAG,aAAa,GAAG,OAAO,CAAC,CAAA;AAE1F,qDAAqD;AACrD,MAAM,WAAW,uBAAuB;IACtC,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAE3C,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB;;;;;;;;WAQG;QACH,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAA;QAEtC;;;;;;;WAOG;QACH,OAAO,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAA;KACjD;CACF"}
@@ -13,7 +13,7 @@ export interface ExecOptions extends ExecChildOptions {
13
13
  */
14
14
  relativePaths?: boolean;
15
15
  }
16
- declare module '../index' {
16
+ declare module '../index.ts' {
17
17
  interface Pipe {
18
18
  /**
19
19
  * Execute a shell command, adding to its _arguments_ the list of files
@@ -1 +1 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/plugs/exec.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,oCAAoC;AACpC,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACnD;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QAE1C;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAE,GAAG,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,CAAE,GAAG,IAAI,CAAA;KAC/E;CACF"}
1
+ {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/plugs/exec.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,oCAAoC;AACpC,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACnD;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QAE1C;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAE,GAAG,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,CAAE,GAAG,IAAI,CAAA;KAC/E;CACF"}
@@ -9,7 +9,7 @@ export interface ExportsOptions {
9
9
  /** The extension for EcmaScript modules (default: `.mjs` or `.js`) */
10
10
  esmExtension?: string;
11
11
  }
12
- declare module '../index' {
12
+ declare module '../index.ts' {
13
13
  interface Pipe {
14
14
  /** Include the files piped into this task as `exports` in `package.json` */
15
15
  exports(options?: ExportsOptions): Pipe;
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/plugs/exports.ts"],"names":[],"mappings":"AAYA,sCAAsC;AACtC,MAAM,WAAW,cAAc;IAC7B,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB,4EAA4E;QAC5E,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;KACxC;CACF"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/plugs/exports.ts"],"names":[],"mappings":"AAYA,sCAAsC;AACtC,MAAM,WAAW,cAAc;IAC7B,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB,4EAA4E;QAC5E,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;KACxC;CACF"}
@@ -4,7 +4,7 @@ export interface FilterOptions extends MatchOptions {
4
4
  /** The base directory for filtering, and relativising the resulting files. */
5
5
  directory?: string;
6
6
  }
7
- declare module '../index' {
7
+ declare module '../index.ts' {
8
8
  interface Pipe {
9
9
  /**
10
10
  * Filter the current {@link Files} using globs.
@@ -1 +1 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/plugs/filter.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,2CAA2C;AAC3C,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB;;;;WAIG;QACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QAC1B;;;;WAIG;QACH,MAAM,CAAC,GAAG,KAAK,EAAE,CAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAE,GAAG,IAAI,CAAA;QAC/C;;;;;WAKG;QACH,MAAM,CAAC,GAAG,IAAI,EAAE,CAAE,GAAG,KAAK,EAAE,CAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAE,EAAE,OAAO,EAAE,aAAa,CAAE,GAAG,IAAI,CAAA;KACrF;CACF"}
1
+ {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/plugs/filter.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,2CAA2C;AAC3C,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB;;;;WAIG;QACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QAC1B;;;;WAIG;QACH,MAAM,CAAC,GAAG,KAAK,EAAE,CAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAE,GAAG,IAAI,CAAA;QAC/C;;;;;WAKG;QACH,MAAM,CAAC,GAAG,IAAI,EAAE,CAAE,GAAG,KAAK,EAAE,CAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAE,EAAE,OAAO,EAAE,aAAa,CAAE,GAAG,IAAI,CAAA;KACrF;CACF"}
@@ -1,4 +1,4 @@
1
- declare module '../index' {
1
+ declare module '../index.ts' {
2
2
  interface Pipe {
3
3
  /**
4
4
  * Remove all {@link Files} piped in.
@@ -1 +1 @@
1
- {"version":3,"file":"rmf.d.ts","sourceRoot":"","sources":["../../src/plugs/rmf.ts"],"names":[],"mappings":"AAOA,OAAO,QAAQ,UAAU,CAAC;IACxB,UAAiB,IAAI;QACnB;;;;WAIG;QACH,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;KAC1C;CACF"}
1
+ {"version":3,"file":"rmf.d.ts","sourceRoot":"","sources":["../../src/plugs/rmf.ts"],"names":[],"mappings":"AAOA,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAiB,IAAI;QACnB;;;;WAIG;QACH,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;KAC1C;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugjs/plug",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -55,11 +55,11 @@
55
55
  "node": ">=22.16.0"
56
56
  },
57
57
  "dependencies": {
58
- "@plugjs/tsrun": "^0.7.6",
58
+ "@plugjs/tsrun": "^0.7.7",
59
59
  "@types/node": "<23",
60
60
  "esbuild": "^0.28.2",
61
61
  "jsonc-parser": "^3.3.1",
62
- "picomatch": "^4.0.5"
62
+ "picomatch": "^4.0.7"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@types/picomatch": "^4.0.3"
package/src/plugs/copy.ts CHANGED
@@ -19,7 +19,7 @@ export interface CopyOptions {
19
19
  rename?: (relative: string) => string
20
20
  }
21
21
 
22
- declare module '../index' {
22
+ declare module '../index.ts' {
23
23
  export interface Pipe {
24
24
  /**
25
25
  * Copy the curent {@link Files} to a different directory
@@ -4,7 +4,7 @@ import { install } from '../pipe.ts'
4
4
  import type { Files } from '../files.ts'
5
5
  import type { Context, PipeParameters, Plug } from '../pipe.ts'
6
6
 
7
- declare module '../index' {
7
+ declare module '../index.ts' {
8
8
  export interface Pipe {
9
9
  /** Log some info about the current {@link Files} being passed around. */
10
10
  debug(title?: string): Pipe
package/src/plugs/edit.ts CHANGED
@@ -5,7 +5,7 @@ import type { Files } from '../files.ts'
5
5
  import type { AbsolutePath } from '../paths.ts'
6
6
  import type { PipeParameters, Plug } from '../pipe.ts'
7
7
 
8
- declare module '../index' {
8
+ declare module '../index.ts' {
9
9
  export interface Pipe {
10
10
  /** Edits the content of all files in a pipeline. */
11
11
  edit(callback: (content: string, fileName: AbsolutePath) => string | void | Promise<string | void>): Pipe
@@ -30,7 +30,7 @@ export interface ModuleToCommonJSOptions {
30
30
  export * from './esbuild/bundle-locals.ts'
31
31
  export * from './esbuild/fix-extensions.ts'
32
32
 
33
- declare module '../index' {
33
+ declare module '../index.ts' {
34
34
  export interface Pipe {
35
35
  /**
36
36
  * Transpile and bundle with {@link https://esbuild.github.io/ esbuild}.
package/src/plugs/exec.ts CHANGED
@@ -21,7 +21,7 @@ export interface ExecOptions extends ExecChildOptions {
21
21
  relativePaths?: boolean
22
22
  }
23
23
 
24
- declare module '../index' {
24
+ declare module '../index.ts' {
25
25
  export interface Pipe {
26
26
  /**
27
27
  * Execute a shell command, adding to its _arguments_ the list of files
@@ -22,7 +22,7 @@ export interface ExportsOptions {
22
22
  esmExtension?: string
23
23
  }
24
24
 
25
- declare module '../index' {
25
+ declare module '../index.ts' {
26
26
  export interface Pipe {
27
27
  /** Include the files piped into this task as `exports` in `package.json` */
28
28
  exports(options?: ExportsOptions): Pipe
@@ -13,7 +13,7 @@ export interface FilterOptions extends MatchOptions {
13
13
  directory?: string
14
14
  }
15
15
 
16
- declare module '../index' {
16
+ declare module '../index.ts' {
17
17
  export interface Pipe {
18
18
  /**
19
19
  * Filter the current {@link Files} using globs.
package/src/plugs/rmf.ts CHANGED
@@ -5,7 +5,7 @@ import { install } from '../pipe.ts'
5
5
  import type { Files } from '../files.ts'
6
6
  import type { Context, PipeParameters, Plug } from '../pipe.ts'
7
7
 
8
- declare module '../index' {
8
+ declare module '../index.ts' {
9
9
  export interface Pipe {
10
10
  /**
11
11
  * Remove all {@link Files} piped in.