-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: upgrade dnt to fix npm package #22
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { build } from "https://deno.land/x/dnt@0.3.1/mod.ts"; | ||
import { build } from "https://deno.land/x/dnt@0.4.0/mod.ts"; | ||
import { copy } from "https://deno.land/std@0.113.0/fs/mod.ts"; | ||
|
||
await Deno.remove("npm", { recursive: true }).catch((_) => {}); | ||
|
@@ -7,7 +7,11 @@ await copy("testdata", "npm/umd/testdata", { overwrite: true }); | |
await copy("README.md", "npm/README.md", { overwrite: true }); | ||
|
||
await build({ | ||
entryPoints: ["./main.ts"], | ||
entryPoints: ["./lib.ts", { | ||
kind: "bin", | ||
name: "license_checker", | ||
path: "./main.ts", | ||
}], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this new There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! Great! |
||
outDir: "./npm", | ||
typeCheck: false, | ||
declaration: true, | ||
|
@@ -18,9 +22,6 @@ await build({ | |
version: "3.1.4", | ||
description: "馃搫 CLI tool for checking license headers in files", | ||
license: "MIT", | ||
bin: { | ||
license_checker: "./umd/main.js", | ||
}, | ||
repository: { | ||
type: "git", | ||
url: "git+https://github.com/kt3k/deno_license_checker.git", | ||
|
@@ -30,3 +31,9 @@ await build({ | |
}, | ||
}, | ||
}); | ||
|
||
await Deno.writeTextFile( | ||
"npm/.npmignore", | ||
"esm/testdata/\numd/testdata/\n", | ||
{ append: true } | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it correct to have "./lib.ts" as an entrypoint for someone who wants to use the API?
The package.json looks like this now: