Skip to content

Commit

Permalink
ci: add README to package
Browse files Browse the repository at this point in the history
  • Loading branch information
laurci committed Aug 31, 2021
1 parent fe4bca3 commit 4a9f2a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"license": "MIT",
"description": "Generate Kubernetes YAMLs with code instead of templates.",
"homepage": "https://kubernate.dev",
"readme": "README.md",
"files": [
"README.md",
"dist/**.js",
"dist/**.d.ts"
],
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {writeFileSync} from "fs";
import {join as pathJoin} from "path";
const packageJson = require("../../package.json");
const rimraf = require("rimraf");
import {cp} from "shelljs";

const preparePackage = (input: any) => {
const VERSION = process.env["KUBERNATE_VERSION"] ?? process.argv.pop();
Expand All @@ -20,6 +21,7 @@ const preparePackage = (input: any) => {
};

writeFileSync(pathJoin(__dirname, "../../dist/package.json"), JSON.stringify(preparePackage(packageJson), null, 4));
cp("README.md", "dist/README.md");
rimraf("dist/scripts", () => {});
rimraf("dist/generator", () => {});
rimraf("dist/**.d.ts.map", () => {});
Expand Down

0 comments on commit 4a9f2a4

Please sign in to comment.