Skip to content

Commit

Permalink
Fix Deno shim
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Jan 19, 2024
1 parent 9e3ba17 commit 5b9bd23
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
5 changes: 3 additions & 2 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ if (import.meta.main) {
Deno.copyFileSync('LICENSE', `${OUTPUT_DIR}/LICENSE`);
Deno.copyFileSync('README.md', `${OUTPUT_DIR}/README.md`);
Deno.copyFileSync('.npmrc', `${OUTPUT_DIR}/.npmrc`);
Deno.writeFileSync(`${OUTPUT_DIR}/esm/_dnt.shims.js`, new Uint8Array());
Deno.writeFileSync(`${OUTPUT_DIR}/script/_dnt.shims.js`, new Uint8Array());
const dntShim = new TextEncoder().encode('const Deno = globalThis.Deno;\nexport { Deno };');
Deno.writeFileSync(`${OUTPUT_DIR}/esm/_dnt.shims.js`, dntShim);
Deno.writeFileSync(`${OUTPUT_DIR}/script/_dnt.shims.js`, dntShim);
},
});
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ucla-irl/ndnts-aux",
"version": "1.0.4",
"version": "1.0.5",
"description": "NDNts Auxiliary Package for Web and Deno",
"scripts": {
"test": "deno test",
Expand Down
46 changes: 23 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b9bd23

Please sign in to comment.