Browse Source

chore: restore package.json

tags/v0.10.0
Muthu Kumar 2 years ago
parent
commit
57644d72b4
Failed to extract signature
  1. 26
      build_npm.ts
  2. 23
      package.json

26
build_npm.ts

@ -1,25 +1,17 @@
// ex. scripts/build_npm.ts
import { build, emptyDir } from "https://deno.land/x/dnt@0.33.1/mod.ts";
import pkg from "./package.json" assert { type: "json" };
await emptyDir("./npm");
await build({
entryPoints: ["./index.ts"],
outDir: "./npm",
shims: { deno: { test: true } },
package: {
name: "promise.object",
version: Deno.args[0],
description: "Deep resolve promises in objects.",
keywords: ["Promise", "A+", "objects", "deep resolve"],
author: "Muthu Kumar <@MKRhere> (https://mkr.pw)",
contributors: ["Thomas Rory Gummerson <@TRGWII> (https://rory.no)"],
repository: { type: "git", url: "git+https://github.com/codefeathers/Promise.object.git" },
bugs: { url: "https://github.com/codefeathers/Promise.object/issues" },
homepage: "https://github.com/codefeathers/Promise.object#readme",
license: "MIT",
},
});
await build(
Object.assign({
entryPoints: ["./index.ts"],
outDir: "./npm",
shims: { deno: { test: true } },
package: Object.assign(pkg, { version: Deno.args[0] }),
}),
);
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");

23
package.json

@ -0,0 +1,23 @@
{
"name": "@codefeathers/promise.object",
"description": "Deep resolve promises in objects.",
"keywords": [
"Promise",
"A+",
"objects",
"deep resolve"
],
"author": "Muthu Kumar <@MKRhere> (https://mkr.pw)",
"contributors": [
"Thomas Rory Gummerson <@TRGWII> (https://rory.no)"
],
"repository": {
"type": "git",
"url": "git+https://github.com/codefeathers/Promise.object.git"
},
"bugs": {
"url": "https://github.com/codefeathers/Promise.object/issues"
},
"homepage": "https://github.com/codefeathers/Promise.object#readme",
"license": "MIT"
}
Loading…
Cancel
Save