Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed Apr 28, 2024
1 parent b649622 commit 8c2c6be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
11 changes: 0 additions & 11 deletions patches/base64.ts.patch

This file was deleted.

11 changes: 0 additions & 11 deletions patches/index.ts.patch

This file was deleted.

10 changes: 5 additions & 5 deletions scripts/build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ await build({
test: false,
typeCheck: false,
package: await mkPackage(name),
declaration: true,
declaration: "separate",
packageManager: 'pnpm',
compilerOptions: {
sourceMap: true,
target: 'ES2019',
target: 'ES2022',
lib: ["ES2022", "DOM"]
},
mappings: {
'https://cdn.skypack.dev/@stardazed/[email protected]': {
Expand Down Expand Up @@ -62,11 +63,10 @@ ext.waitUntil(Deno.copyFile('./vendor/html_rewriter_bg.wasm', './npm/esm/vendor/
ext.waitUntil(Deno.copyFile('./vendor/html_rewriter_bg.wasm', './npm/scripts/vendor/html_rewriter_bg.wasm'))
ext.waitUntil(Deno.copyFile('./vendor/html_rewriter_bg.wasm', './npm/src/vendor/html_rewriter_bg.wasm'))

ext.waitUntil(patch('./npm/src/index.ts', './patches/index.ts.patch'))
ext.waitUntil(patch('./npm/src/base64.ts', './patches/base64.ts.patch'))

await ext;

for await (const f of Deno.readDir('./npm/src'))
if (extname(f.name) === '.orig')
await Deno.remove(resolve('./npm/src', f.name))

console.log("Done.")

0 comments on commit 8c2c6be

Please sign in to comment.