Skip to content

Commit

Permalink
Merge pull request bids-standard#1936 from nellh/build-fix-ignore-npm
Browse files Browse the repository at this point in the history
fix(schema): Fix relative import path "ignore" not prefixed error for standalone builds
  • Loading branch information
rwblair authored Apr 18, 2024
2 parents a6f0756 + 4fd00e8 commit 32c5fea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bids-validator/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
*
* If you would like to use this package in a Node.js project, you'll need to use native ESM or a transform system
*/
import * as esbuild from 'https://deno.land/x/esbuild@v0.20.1/mod.js'
import { parse } from 'https://deno.land/std@0.175.0/flags/mod.ts'
import { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.5/mod.ts"
import * as path from "https://deno.land/std@0.175.0/path/mod.ts"
import * as esbuild from 'https://deno.land/x/esbuild@v0.20.2/mod.js'
import { parse } from 'https://deno.land/std@0.223.0/flags/mod.ts'
import { denoPlugins } from "jsr:@luca/esbuild-deno-loader@0.10"
import * as path from "https://deno.land/std@0.223.0/path/mod.ts"


function getModuleDir(importMeta: ImportMeta): string {
return path.resolve(path.dirname(path.fromFileUrl(importMeta.url)));
Expand All @@ -33,7 +34,6 @@ const result = await esbuild.build({
plugins: [...denoPlugins()],
allowOverwrite: true,
sourcemap: flags.minify ? false : 'inline',
packages: 'external',
})

if (result.warnings.length > 0) {
Expand Down

0 comments on commit 32c5fea

Please sign in to comment.