Skip to content

Commit db2a037

Browse files
fix: Workflow Bot -- Update ALL Dependencies (main) (#2417)
Co-authored-by: Jason3S <[email protected]> Co-authored-by: Jason Dent <[email protected]>
1 parent 910b662 commit db2a037

7 files changed

Lines changed: 2356 additions & 1922 deletions

File tree

action-src/build.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ async function buildLib() {
1919
bundle: true,
2020
packages: 'bundle',
2121
platform: 'node',
22+
inject: ['src-build/import-meta-url.cjs'],
23+
define: {
24+
'import.meta.url': 'import_meta_url',
25+
},
2226
outfile: path.join(targetPackageDir, 'lib/main_root.cjs'),
2327
});
2428
}

action-src/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"@actions/github": "^6.0.1",
2626
"@cspell/cspell-types": "^9.2.1",
2727
"@octokit/webhooks-types": "^7.6.1",
28-
"@types/node": "^20.19.10",
28+
"@types/node": "^20.19.13",
2929
"cspell": "^9.2.1",
3030
"cspell-glob": "^9.2.1",
31-
"esbuild": "^0.25.8",
31+
"esbuild": "^0.25.9",
3232
"vscode-uri": "^3.1.0"
3333
},
3434
"dependencies": {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// This file is used by esbuild to provide a CJS-compatible way to access import.meta.url
2+
// Related to: https://github.com/thecodrr/fdir/issues/163
3+
4+
// eslint-disable-next-line @typescript-eslint/no-require-imports, no-undef
5+
export var import_meta_url = require('url').pathToFileURL(__filename);

action-src/vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
'bin.js',
1717
'bin.cjs',
1818
'build.mjs',
19+
'src-build/**',
1920
'fixtures/**',
2021
'.coverage/**',
2122
'coverage',

0 commit comments

Comments
 (0)