Last active
June 18, 2024 14:17
-
-
Save joscha/49e26fb6a2e3b9cbae0f1f44b5879ec6 to your computer and use it in GitHub Desktop.
example for https://github.com/denoland/dnt/issues/413
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I am empty, weeee! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ex. scripts/build_npm.ts | |
import { build, emptyDir } from "@deno/dnt"; | |
await emptyDir("./npm"); | |
await build({ | |
entryPoints: ["./foo.ts"], | |
outDir: "./npm", | |
shims: { | |
// see JS docs for overview and more options | |
deno: true, | |
}, | |
package: { | |
// package.json properties | |
name: "your-package", | |
version: Deno.args[0], | |
description: "Your package.", | |
license: "MIT", | |
repository: { | |
type: "git", | |
url: "git+https://github.com/username/repo.git", | |
}, | |
bugs: { | |
url: "https://github.com/username/repo/issues", | |
}, | |
}, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"imports": { | |
"@deno/dnt": "jsr:@deno/dnt@^0.41.2" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './bla.ts'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment