depository-deploy 1.2.4 → 1.3.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/install/templates/web.config +0 -12
- package/package.json +4 -4
- package/wizard-server.mjs +5 -4
|
@@ -99,17 +99,5 @@
|
|
|
99
99
|
<!-- ── Error handling ────────────────────────────────────── -->
|
|
100
100
|
<httpErrors existingResponse="PassThrough" />
|
|
101
101
|
|
|
102
|
-
<!-- ── Authentication — override server-level defaults ──── -->
|
|
103
|
-
<!-- Explicitly allow anonymous and disable all challenge-based -->
|
|
104
|
-
<!-- auth so IIS never pops a browser credential dialog. -->
|
|
105
|
-
<security>
|
|
106
|
-
<authentication>
|
|
107
|
-
<anonymousAuthentication enabled="true" />
|
|
108
|
-
<windowsAuthentication enabled="false" />
|
|
109
|
-
<basicAuthentication enabled="false" />
|
|
110
|
-
<digestAuthentication enabled="false" />
|
|
111
|
-
</authentication>
|
|
112
|
-
</security>
|
|
113
|
-
|
|
114
102
|
</system.webServer>
|
|
115
103
|
</configuration>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "depository-deploy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Depository document management system – deployment wizard and installers",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"scripts/publish.mjs"
|
|
26
26
|
],
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"depository-deploy-linux": "1.
|
|
29
|
-
"depository-deploy-macos": "1.
|
|
30
|
-
"depository-deploy-windows": "1.
|
|
28
|
+
"depository-deploy-linux": "1.3.0",
|
|
29
|
+
"depository-deploy-macos": "1.3.0",
|
|
30
|
+
"depository-deploy-windows": "1.3.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"start": "node wizard-server.mjs"
|
package/wizard-server.mjs
CHANGED
|
@@ -347,13 +347,14 @@ const server = createServer((req, res) => {
|
|
|
347
347
|
for (const sub of job.subs) sendSSE(sub, 'line', { text });
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
const
|
|
350
|
+
const npmBin = os.platform() === 'win32' ? 'npm.cmd' : 'npm';
|
|
351
|
+
const npmArgs = ['install', '-g', `${PKG_NAME}@latest`];
|
|
351
352
|
|
|
352
353
|
pushLine(`Updating ${PKG_NAME} → latest...`);
|
|
353
|
-
pushLine(`Running:
|
|
354
|
+
pushLine(`Running: npm ${npmArgs.join(' ')}`);
|
|
354
355
|
|
|
355
|
-
const proc = spawn(
|
|
356
|
-
cwd: __dirname, shell:
|
|
356
|
+
const proc = spawn(npmBin, npmArgs, {
|
|
357
|
+
cwd: __dirname, shell: false, stdio: 'pipe',
|
|
357
358
|
});
|
|
358
359
|
|
|
359
360
|
proc.stdout.on('data', d => d.toString().split(/\r?\n/).forEach(pushLine));
|