Browse Source

chore: restore package.json

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

20
build_npm.ts

@ -1,25 +1,17 @@
// ex. scripts/build_npm.ts // ex. scripts/build_npm.ts
import { build, emptyDir } from "https://deno.land/x/dnt@0.33.1/mod.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 emptyDir("./npm");
await build({ await build(
Object.assign({
entryPoints: ["./index.ts"], entryPoints: ["./index.ts"],
outDir: "./npm", outDir: "./npm",
shims: { deno: { test: true } }, shims: { deno: { test: true } },
package: { package: Object.assign(pkg, { version: Deno.args[0] }),
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",
},
});
// post build steps // post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE"); 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