metaharness 0.2.4 → 0.2.6
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/with-wasm.d.ts +11 -0
- package/dist/with-wasm.d.ts.map +1 -1
- package/dist/with-wasm.js +26 -16
- package/dist/with-wasm.js.map +1 -1
- package/package.json +1 -1
- package/templates/minimal/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_advertising/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_agentics/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_ai/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_business/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_coding/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_crm/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_devops/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_education/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_exotic/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_gaming/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_health/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_legal/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_marketing/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_repo-maintainer/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_research/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_ruview/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_sales/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_support/vitest.config.ts.tmpl +23 -0
- package/templates/vertical_trading/vitest.config.ts.tmpl +23 -0
package/dist/with-wasm.d.ts
CHANGED
|
@@ -2,5 +2,16 @@ export interface WasmWireResult {
|
|
|
2
2
|
ok: boolean;
|
|
3
3
|
lines: string[];
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* GH #21: a `wasm-pack --target nodejs` output is CommonJS, but it lands inside
|
|
7
|
+
* an ESM (`"type":"module"`) harness — so Node would parse the CJS shim as ESM
|
|
8
|
+
* and `__dirname` (used to locate the `.wasm`) breaks. Force `{"type":"commonjs"}`
|
|
9
|
+
* into the wasm dir's package.json so the shim loads as CJS, and remove the
|
|
10
|
+
* `.gitignore` (`*`) wasm-pack drops, which would otherwise prune `wasm/` from
|
|
11
|
+
* the npm tarball. Extracted + exported so it is unit-testable without a real
|
|
12
|
+
* wasm-pack build. Returns the CJS entry filename (wasm-pack's `main`, else
|
|
13
|
+
* `index.js`).
|
|
14
|
+
*/
|
|
15
|
+
export declare function markWasmDirCommonjs(outDir: string): string;
|
|
5
16
|
export declare function wireWasm(cratePath: string, targetDir: string): WasmWireResult;
|
|
6
17
|
//# sourceMappingURL=with-wasm.d.ts.map
|
package/dist/with-wasm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-wasm.d.ts","sourceRoot":"","sources":["../src/with-wasm.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAWD,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"with-wasm.d.ts","sourceRoot":"","sources":["../src/with-wasm.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAWD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAa1D;AAED,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,cAAc,CA0G7E"}
|
package/dist/with-wasm.js
CHANGED
|
@@ -22,6 +22,31 @@ function have(cmd) {
|
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* GH #21: a `wasm-pack --target nodejs` output is CommonJS, but it lands inside
|
|
27
|
+
* an ESM (`"type":"module"`) harness — so Node would parse the CJS shim as ESM
|
|
28
|
+
* and `__dirname` (used to locate the `.wasm`) breaks. Force `{"type":"commonjs"}`
|
|
29
|
+
* into the wasm dir's package.json so the shim loads as CJS, and remove the
|
|
30
|
+
* `.gitignore` (`*`) wasm-pack drops, which would otherwise prune `wasm/` from
|
|
31
|
+
* the npm tarball. Extracted + exported so it is unit-testable without a real
|
|
32
|
+
* wasm-pack build. Returns the CJS entry filename (wasm-pack's `main`, else
|
|
33
|
+
* `index.js`).
|
|
34
|
+
*/
|
|
35
|
+
export function markWasmDirCommonjs(outDir) {
|
|
36
|
+
rmSync(join(outDir, '.gitignore'), { force: true });
|
|
37
|
+
const wasmPkgPath = join(outDir, 'package.json');
|
|
38
|
+
let wasmPkg = {};
|
|
39
|
+
try {
|
|
40
|
+
wasmPkg = JSON.parse(readFileSync(wasmPkgPath, 'utf8'));
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
/* wasm-pack always writes one; tolerate absence */
|
|
44
|
+
}
|
|
45
|
+
wasmPkg.type = 'commonjs';
|
|
46
|
+
const entry = typeof wasmPkg.main === 'string' && wasmPkg.main ? wasmPkg.main : 'index.js';
|
|
47
|
+
writeFileSync(wasmPkgPath, JSON.stringify(wasmPkg, null, 2) + '\n');
|
|
48
|
+
return entry;
|
|
49
|
+
}
|
|
25
50
|
export function wireWasm(cratePath, targetDir) {
|
|
26
51
|
const lines = [];
|
|
27
52
|
const crate = resolve(process.cwd(), cratePath);
|
|
@@ -46,22 +71,7 @@ export function wireWasm(cratePath, targetDir) {
|
|
|
46
71
|
catch (e) {
|
|
47
72
|
return { ok: false, lines: [`--with-wasm: wasm-pack build failed: ${e.message}`] };
|
|
48
73
|
}
|
|
49
|
-
|
|
50
|
-
// containing "*" (which would also prune wasm/ from any npm tarball) and a
|
|
51
|
-
// package.json without a type field. Remove the .gitignore and force
|
|
52
|
-
// type:commonjs so the CJS shim loads correctly under an ESM harness.
|
|
53
|
-
rmSync(join(outDir, '.gitignore'), { force: true });
|
|
54
|
-
const wasmPkgPath = join(outDir, 'package.json');
|
|
55
|
-
let wasmPkg = {};
|
|
56
|
-
try {
|
|
57
|
-
wasmPkg = JSON.parse(readFileSync(wasmPkgPath, 'utf8'));
|
|
58
|
-
}
|
|
59
|
-
catch {
|
|
60
|
-
/* wasm-pack always writes one; tolerate absence */
|
|
61
|
-
}
|
|
62
|
-
wasmPkg.type = 'commonjs';
|
|
63
|
-
const entry = typeof wasmPkg.main === 'string' && wasmPkg.main ? wasmPkg.main : 'index.js';
|
|
64
|
-
writeFileSync(wasmPkgPath, JSON.stringify(wasmPkg, null, 2) + '\n');
|
|
74
|
+
const entry = markWasmDirCommonjs(outDir);
|
|
65
75
|
// Add wasm/** to the harness package.json `files` (so it publishes) and a
|
|
66
76
|
// `wasm` script that runs the loader.
|
|
67
77
|
const harnessPkgPath = join(targetDir, 'package.json');
|
package/dist/with-wasm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-wasm.js","sourceRoot":"","sources":["../src/with-wasm.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,EAAE;AACF,gFAAgF;AAChF,gEAAgE;AAChE,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAC1E,2EAA2E;AAC3E,yEAAyE;AACzE,4EAA4E;AAC5E,8EAA8E;AAC9E,uEAAuE;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAO1C,SAAS,IAAI,CAAC,GAAW;IACvB,IAAI,CAAC;QACH,QAAQ,CAAC,GAAG,EAAE,EAAE,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AAC,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC;IAE1D,8EAA8E;IAC9E,MAAM,WAAW,GAAG;;;;;;;;;oDAS8B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;;;;;;;CAOxE,CAAC;IACA,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,iBAAiB,CAAC,EAAE,WAAW,CAAC,CAAC;IAEtE,KAAK,CAAC,IAAI,CACR,sBAAsB,KAAK,0EAA0E,EACrG,4EAA4E,EAC5E,iCAAiC,CAClC,CAAC;IACF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metaharness",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "MetaHarness — mint a custom AI agent harness from any repo. Browser Studio + `npx metaharness` CLI. Runs on Claude Code, Codex, pi.dev, Hermes, OpenClaw, RVM.",
|
|
5
5
|
"homepage": "https://github.com/ruvnet/agent-harness-generator",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Generated by metaharness. Strips the `#!/usr/bin/env node` shebang from
|
|
3
|
+
// importable entrypoints (e.g. bin/cli.js) before Vite parses them — Vite/esbuild
|
|
4
|
+
// (used internally by Vitest) does NOT strip shebangs, so importing a shebanged
|
|
5
|
+
// module throws `SyntaxError: Invalid or unexpected token`. See issue #44.
|
|
6
|
+
// Has no effect on direct CLI execution or `npm run doctor` (those bypass Vite).
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
plugins: [
|
|
11
|
+
{
|
|
12
|
+
name: 'strip-shebang',
|
|
13
|
+
enforce: 'pre',
|
|
14
|
+
transform(code: string) {
|
|
15
|
+
if (code.startsWith('#!')) {
|
|
16
|
+
// Replace with a blank line so source line numbers stay aligned.
|
|
17
|
+
return { code: code.replace(/^#![^\n]*/, ''), map: null };
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
});
|