pepr 0.1.40 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/cli/index.js +3 -3
- package/dist/src/cli/init/templates.js +2 -3
- package/package.json +1 -1
- package/.env +0 -0
- package/dist/src/cli/version.d.ts +0 -1
- package/dist/src/cli/version.js +0 -6
package/dist/package.json
CHANGED
package/dist/src/cli/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
6
|
};
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const package_json_1 = require("../../package.json");
|
|
8
9
|
const banner_1 = require("./banner");
|
|
9
10
|
const build_1 = __importDefault(require("./build"));
|
|
10
11
|
const capability_1 = __importDefault(require("./capability"));
|
|
@@ -13,11 +14,10 @@ const dev_1 = __importDefault(require("./dev"));
|
|
|
13
14
|
const init_1 = __importDefault(require("./init"));
|
|
14
15
|
const root_1 = require("./root");
|
|
15
16
|
const test_1 = __importDefault(require("./test"));
|
|
16
|
-
const version_1 = require("./version");
|
|
17
17
|
const program = new root_1.RootCmd();
|
|
18
18
|
program
|
|
19
|
-
.version(
|
|
20
|
-
.description(`Pepr Kubernetes Thingy (v${
|
|
19
|
+
.version(package_json_1.version)
|
|
20
|
+
.description(`Pepr Kubernetes Thingy (v${package_json_1.version})`)
|
|
21
21
|
.action(() => {
|
|
22
22
|
if (program.args.length < 1) {
|
|
23
23
|
console.log(banner_1.banner);
|
|
@@ -7,7 +7,6 @@ const client_node_1 = require("@kubernetes/client-node");
|
|
|
7
7
|
const util_1 = require("util");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const package_json_1 = require("../../../package.json");
|
|
10
|
-
const version_1 = require("../version");
|
|
11
10
|
const utils_1 = require("./utils");
|
|
12
11
|
function genPeprTS() {
|
|
13
12
|
return {
|
|
@@ -44,7 +43,7 @@ function genPkgJSON(opts) {
|
|
|
44
43
|
keywords: ["pepr", "k8s", "policy-engine", "pepr-module", "security"],
|
|
45
44
|
pepr: {
|
|
46
45
|
name: opts.name.trim(),
|
|
47
|
-
version:
|
|
46
|
+
version: package_json_1.version,
|
|
48
47
|
uuid,
|
|
49
48
|
onError: opts.errorBehavior,
|
|
50
49
|
alwaysIgnore: {
|
|
@@ -57,7 +56,7 @@ function genPkgJSON(opts) {
|
|
|
57
56
|
start: "pepr dev",
|
|
58
57
|
},
|
|
59
58
|
dependencies: {
|
|
60
|
-
pepr: `^${
|
|
59
|
+
pepr: `^${package_json_1.version}`,
|
|
61
60
|
},
|
|
62
61
|
devDependencies: {
|
|
63
62
|
typescript,
|
package/package.json
CHANGED
package/.env
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version: string;
|
package/dist/src/cli/version.js
DELETED