deepstrike 2.0.0 → 3.1.0
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/cli.js +4 -7
- package/package.json +2 -3
package/dist/cli.js
CHANGED
|
@@ -112,9 +112,8 @@ var initCommand = async () => {
|
|
|
112
112
|
`);
|
|
113
113
|
};
|
|
114
114
|
var createCommand = async (environmentRaw) => {
|
|
115
|
-
const environmentName = formatEnvironmentFileName(environmentRaw);
|
|
116
115
|
const deepstrikeDir = getDeepstrikeDir();
|
|
117
|
-
const targetPath = getEnvironmentSecretsPath(
|
|
116
|
+
const targetPath = getEnvironmentSecretsPath(environmentRaw);
|
|
118
117
|
await ensureDir(deepstrikeDir);
|
|
119
118
|
if (await fileExists(targetPath)) {
|
|
120
119
|
process.stdout.write(`File already exists: ${path.relative(getProjectRoot(), targetPath)}
|
|
@@ -125,7 +124,7 @@ var createCommand = async (environmentRaw) => {
|
|
|
125
124
|
const envData = {
|
|
126
125
|
...template,
|
|
127
126
|
environment: {
|
|
128
|
-
name:
|
|
127
|
+
name: environmentRaw,
|
|
129
128
|
secretFileVersion: "latest"
|
|
130
129
|
}
|
|
131
130
|
};
|
|
@@ -136,16 +135,14 @@ var createCommand = async (environmentRaw) => {
|
|
|
136
135
|
`);
|
|
137
136
|
};
|
|
138
137
|
var pushCommand = async (environmentRaw) => {
|
|
139
|
-
const
|
|
140
|
-
const filePath = getEnvironmentSecretsPath(environmentName);
|
|
138
|
+
const filePath = getEnvironmentSecretsPath(environmentRaw);
|
|
141
139
|
if (!await fileExists(filePath)) {
|
|
142
140
|
throw new Error(`Missing environment file: ${path.relative(getProjectRoot(), filePath)}`);
|
|
143
141
|
}
|
|
144
142
|
throw new Error("push is not implemented yet");
|
|
145
143
|
};
|
|
146
144
|
var pullCommand = async (environmentRaw) => {
|
|
147
|
-
const
|
|
148
|
-
const filePath = getEnvironmentSecretsPath(environmentName);
|
|
145
|
+
const filePath = getEnvironmentSecretsPath(environmentRaw);
|
|
149
146
|
throw new Error("pull is not implemented yet");
|
|
150
147
|
};
|
|
151
148
|
var main = async () => {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"typescript": "^5"
|
|
11
11
|
},
|
|
12
|
-
"version": "
|
|
12
|
+
"version": "3.1.0",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
"run": "bun src/index.ts",
|
|
31
31
|
"format": "prettier --write . --config .prettierc",
|
|
32
32
|
"build": "bun build src/index.ts --target node --format esm --outdir dist && bun build src/cli.ts --target node --format esm --outdir dist && bunx tsc --emitDeclarationOnly --outDir dist",
|
|
33
|
-
"prepublishOnly": "bun run build"
|
|
34
|
-
"publish": "bun run build && npm publish "
|
|
33
|
+
"prepublishOnly": "bun run build"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
37
36
|
"@azure/identity": "^4.13.0",
|