Skip to content

Commit

Permalink
[FIX] propagated #21 to the tweetnacl-esm.ts, as the esm repackaging …
Browse files Browse the repository at this point in the history
…is done by a script
  • Loading branch information
aricart authored Dec 21, 2022
2 parents 125cd8c + 874a4aa commit 21db1ea
Show file tree
Hide file tree
Showing 6 changed files with 429 additions and 542 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
deno-version: [1.22.0]
deno-version: [1.29.1]

steps:
- name: checkout project
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:

strategy:
matrix:
deno-version: [1.22.0]
node-version: [14.x, 16.x, 18.x]
deno-version: [1.29.1]
node-version: [14.x, 16.x, 18.x, 19.x]

steps:
- name: checkout nkeys
Expand Down
4 changes: 2 additions & 2 deletions bin/tweetnacl-esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ await copyFromModulesDir(
"nacl.js",
"",
`
//added by nkeys.js export it
export const nacl = globalThis.nacl;
//added by nkeys.js export it - this line is added by bin/tweetnacl-esm.ts
export const nacl = typeof module !== 'undefined' && module.exports ? module.exports : globalThis.nacl;
`,
);
await copyFromModulesDir("nacl.d.ts");
2 changes: 1 addition & 1 deletion modules/esm/nacl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,5 +1182,5 @@ nacl.setPRNG = function(fn) {

})(typeof module !== 'undefined' && module.exports ? module.exports : (globalThis.nacl = globalThis.nacl || {}));

//added by nkeys.js export it
//added by nkeys.js export it - this line is added by bin/tweetnacl-esm.ts
export const nacl = typeof module !== 'undefined' && module.exports ? module.exports : globalThis.nacl;
Loading

0 comments on commit 21db1ea

Please sign in to comment.