Skip to content

Commit

Permalink
chore(_tools): update npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed Apr 11, 2023
1 parent a64fc75 commit a3a00ee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _tools/build_npm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { build, emptyDir } from "https://deno.land/x/dnt@0.33.1/mod.ts";
import { build, emptyDir } from "https://deno.land/x/dnt@0.34.0/mod.ts";
import { join } from "https://deno.land/std@0.177.0/path/mod.ts";
import { makeOptions } from "./meta.ts";

Expand Down
22 changes: 16 additions & 6 deletions _tools/meta.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import { BuildOptions } from "https://deno.land/x/dnt@0.33.1/mod.ts";
import { BuildOptions } from "https://deno.land/x/dnt@0.34.0/mod.ts";

export const makeOptions = (version: string): BuildOptions => ({
test: false,
shims: {},
compilerOptions: {
lib: ["dom", "esnext", "dom.iterable"],
lib: ["dom", "esnext"],
},
typeCheck: true,
entryPoints: ["./mod.ts"],
outDir: "./npm",
package: {
name: "@httpland/csp-middleware",
version,
description: "HTTP Content Security Policy(CSP) middleware",
description: "HTTP content security policy(CSP) middleware",
keywords: [
"http",
"middleware",
"csp",
"content-security-policy",
"csp",
"csp-level3",
"fetch-api",
"security",
"request",
"response",
],
license: "MIT",
homepage: "https://github.com/httpland/csp-middleware",
Expand All @@ -40,7 +40,7 @@ export const makeOptions = (version: string): BuildOptions => ({
},
packageManager: "pnpm",
mappings: {
"https://esm.sh/kebab-case@1.0.2?pin=v111": {
"https://esm.sh/kebab-case@1.0.2?pin=v114": {
name: "kebab-case",
version: "1.0.2",
},
Expand All @@ -53,5 +53,15 @@ export const makeOptions = (version: string): BuildOptions => ({
version: "1.1.1",
subPath: "is_string",
},
"https://deno.land/x/isx@1.1.1/is_undefined.ts": {
name: "@miyauci/isx",
version: "1.1.1",
subPath: "is_undefined",
},
"https://deno.land/x/http_utils@1.0.0/message.ts": {
name: "@httpland/http-utils",
version: "1.0.0",
subPath: "message.js",
},
},
});

0 comments on commit a3a00ee

Please sign in to comment.