Skip to content

Commit 8c2c6be

Browse files
committed
Commit
1 parent b649622 commit 8c2c6be

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

patches/base64.ts.patch

-11
This file was deleted.

patches/index.ts.patch

-11
This file was deleted.

scripts/build_npm.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ await build({
2929
test: false,
3030
typeCheck: false,
3131
package: await mkPackage(name),
32-
declaration: true,
32+
declaration: "separate",
3333
packageManager: 'pnpm',
3434
compilerOptions: {
3535
sourceMap: true,
36-
target: 'ES2019',
36+
target: 'ES2022',
37+
lib: ["ES2022", "DOM"]
3738
},
3839
mappings: {
3940
'https://cdn.skypack.dev/@stardazed/[email protected]': {
@@ -62,11 +63,10 @@ ext.waitUntil(Deno.copyFile('./vendor/html_rewriter_bg.wasm', './npm/esm/vendor/
6263
ext.waitUntil(Deno.copyFile('./vendor/html_rewriter_bg.wasm', './npm/scripts/vendor/html_rewriter_bg.wasm'))
6364
ext.waitUntil(Deno.copyFile('./vendor/html_rewriter_bg.wasm', './npm/src/vendor/html_rewriter_bg.wasm'))
6465

65-
ext.waitUntil(patch('./npm/src/index.ts', './patches/index.ts.patch'))
66-
ext.waitUntil(patch('./npm/src/base64.ts', './patches/base64.ts.patch'))
67-
6866
await ext;
6967

7068
for await (const f of Deno.readDir('./npm/src'))
7169
if (extname(f.name) === '.orig')
7270
await Deno.remove(resolve('./npm/src', f.name))
71+
72+
console.log("Done.")

0 commit comments

Comments
 (0)