Skip to content

Commit

Permalink
clean up dnt
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Nov 24, 2023
1 parent ebc6c4d commit 056c514
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 2 deletions.
4 changes: 4 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"semiColons": false,
"singleQuote": true,
"lineWidth": 120
},
"tasks": {
"npm:prepare": "deno run -A scripts/npm.ts && rm -rf npm/esm/deps npm/esm/*test*",
"npm:publish": "cd npm && pnpm publish && git push origin --tags"
}
}
74 changes: 74 additions & 0 deletions deno.lock

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

6 changes: 4 additions & 2 deletions scripts/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ await build({
entryPoints: ['./mod.ts'],
outDir: './npm',
scriptModule: false,
shims: { deno: false },
shims: { deno: 'dev', weakRef: 'dev' },
test: true,
compilerOptions: {
lib: ['DOM'],
lib: ['DOM', 'ES2021.String'],
target: 'ES2022',
},
package: {
Expand All @@ -29,6 +30,7 @@ await build({
'@types/node': 'latest',
'@types/aws4': 'latest',
},
files: ['esm'],
},
postBuild() {
// steps to run after building and before running the tests
Expand Down

0 comments on commit 056c514

Please sign in to comment.