fix(build): update tooling configuration and align nginx certificate generation with current dependencies
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"@git.zone/cli": {
|
||||||
|
"projectType": "npm",
|
||||||
|
"module": {
|
||||||
|
"githost": "code.foss.global",
|
||||||
|
"gitscope": "push.rocks",
|
||||||
|
"gitrepo": "smartnginx",
|
||||||
|
"description": "A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.",
|
||||||
|
"npmPackagename": "@push.rocks/smartnginx",
|
||||||
|
"license": "MIT",
|
||||||
|
"projectDomain": "push.rocks"
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@git.zone/tsdoc": {
|
||||||
|
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||||
|
},
|
||||||
|
"@ship.zone/szci": {
|
||||||
|
"npmGlobalTools": [],
|
||||||
|
"npmRegistryUrl": "registry.npmjs.org"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-04-30 - 2.0.55 - fix(build)
|
||||||
|
update tooling configuration and align nginx certificate generation with current dependencies
|
||||||
|
|
||||||
|
- migrates project metadata to the new smartconfig and release configuration format
|
||||||
|
- updates package scripts, TypeScript settings, and dependency versions for the current toolchain
|
||||||
|
- adapts self-signed certificate generation to the newer selfsigned API and tightens class property initialization
|
||||||
|
|
||||||
## 2025-11-27 - 2.0.54 - fix(package)
|
## 2025-11-27 - 2.0.54 - fix(package)
|
||||||
Pin package manager to pnpm@10.18.1 in package.json
|
Pin package manager to pnpm@10.18.1 in package.json
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +1,28 @@
|
|||||||
-----BEGIN RSA PRIVATE KEY-----
|
-----BEGIN PRIVATE KEY-----
|
||||||
MIIEowIBAAKCAQEAuO16Nu4tMkmBqsNWezt3ENqnsbWNUqC+curHyXURaoIH2wQ1
|
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCmYXVXbBVKOo7L
|
||||||
6DIZaBIbO/WndNisMy6TnxJtiMVbKGKjkRH4w3qegthIRCKLD3+Yl1ffqpHRz19h
|
wia3tFZQrQI6hVYlhwMAYyO1tedTOc1H7gdE7GAucwRRBmCnOFbt+dnQwM3Em8zg
|
||||||
kNxVg4HfXRQMfH0Pnvd/4wB7g2mapk8SMwsTuEZ0j/7dAwc0dqw94g+aehgZlvxU
|
71/IA5d2lp8dFb66axbBCJWqdyIPVeTTPUYCMESwyVnAYRhk+7bitJbAKzyzUTO9
|
||||||
DFQjI/4kU9EiheDZ9TPREBMfeIb82zapINekKq5TkN/euWfsfpbZZ6qWZvTX8Neg
|
NrHI7IBFu9vCScr9ZYaZqQa46HA4ththaNY4x4/7b4fCzrhql8JjT4Z3MRjH2Z1e
|
||||||
ulKOtDCCFauXKv2LNqy4jxWQef2XfMT8Jr4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Fjb
|
||||||
DOrGoHMBT+vsv7073QTjqByRVf7a3dfsL6EtLUtxH4Hzp7wXILOkU7M7LzU5rFLB
|
J7CvYyb4vJ62bkbhSFPFrZiT4FyElNfUKc5Xhe1yreNBGDGnnhQwx17WXWLtq6qB
|
||||||
tmaHRteoLWhSYzfeOqMPglXsCSaQyAn//COLHr6KftquNCpqzqFSGpPoR6cqpmR4
|
Hi+rWCNoQ9GUqENYeZC2BDtw3BtvovvuU0AKooQXCJpMMxFd5ZR2NGQCFdi5yNOn
|
||||||
Bu2FAoGBAN+UVwhXtSYG89pYFw5u4Oa2XwaVciaqGSkXR0Oyb8pBx65AX6Byy1FD
|
fSU6tRxScovTY3NatjvKf8MdQyLm5sqQ9yf/o9hbAoGBAI0yTeAw89evsJeZf4EK
|
||||||
6IooFiAkHqDDz2iIPx7mxzTrHBfKcaHsUcgT5aXr720A6/aD6W5PsVdebWoMMTyA
|
hfM3wd51grMKSbMqkqmPhQuGK0AmTJDQ0unIIDetAgSRTrWtakYOouyWtEDyizpw
|
||||||
OqFdoeXdMWUzCOWQYp6ViD8f0MQydHppOhugEivReRP700C1WVnx
|
htC3YsxRR34kZXDiJteQtOwtmmyba2gPkgc/LcPXGeO0hjDj/h6vrwZN1LR152II
|
||||||
-----END RSA PRIVATE KEY-----
|
enxdIKMOcx1/cMqgqnpKBQMr
|
||||||
|
-----END PRIVATE KEY-----
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
-----BEGIN CERTIFICATE-----
|
||||||
MIIDBDCCAeygAwIBAgIJZid+XT7/NTaWMA0GCSqGSIb3DQEBBQUAMB4xHDAaBgNV
|
MIIDHjCCAgagAwIBAgIJQBJbROxXlqB6MA0GCSqGSIb3DQEBBQUAMB4xHDAaBgNV
|
||||||
BAMTE3NlbGZzaWduZWQuZ2l0LnpvbmUwHhcNMjUxMTI3MTMxMzM0WhcNMjYxMTI3
|
BAMTE3NlbGZzaWduZWQuZ2l0Lnp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
{
|
||||||
"npmci": {
|
"@git.zone/cli": {
|
||||||
"npmAccessLevel": "public"
|
|
||||||
},
|
|
||||||
"npmdocker": {},
|
|
||||||
"gitzone": {
|
|
||||||
"projectType": "npm",
|
"projectType": "npm",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "code.foss.global",
|
"githost": "code.foss.global",
|
||||||
@@ -21,9 +17,20 @@
|
|||||||
"reverse proxy",
|
"reverse proxy",
|
||||||
"SSL certificates"
|
"SSL certificates"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tsdoc": {
|
"@git.zone/tsdoc": {
|
||||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||||
|
},
|
||||||
|
"@ship.zone/szci": {
|
||||||
|
"npmGlobalTools": [],
|
||||||
|
"npmRegistryUrl": "registry.npmjs.org"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-13
@@ -7,8 +7,8 @@
|
|||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tstest test/ --verbose",
|
"test": "tstest test/ --verbose",
|
||||||
"cleanTest": "(rm -r nginxconfig) && npm run test",
|
"cleanTest": "rm -r nginxconfig && pnpm test",
|
||||||
"build": "(tsbuild tsfolders --allowimplicitany)"
|
"build": "tsbuild tsfolders"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -26,25 +26,25 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitlab.com/pushrocks/smartnginx/issues"
|
"url": "https://code.foss.global/push.rocks/smartnginx/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://code.foss.global/push.rocks/smartnginx",
|
"homepage": "https://code.foss.global/push.rocks/smartnginx",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@push.rocks/lik": "^6.2.2",
|
"@push.rocks/lik": "^6.4.1",
|
||||||
"@push.rocks/smartfs": "^1.1.0",
|
"@push.rocks/smartfs": "^1.5.1",
|
||||||
"@push.rocks/smartlog": "^3.1.10",
|
"@push.rocks/smartlog": "^3.2.2",
|
||||||
"@push.rocks/smartpath": "^6.0.0",
|
"@push.rocks/smartpath": "^6.0.0",
|
||||||
"@push.rocks/smartpromise": "^4.2.3",
|
"@push.rocks/smartpromise": "^4.2.3",
|
||||||
"@push.rocks/smartshell": "^3.3.0",
|
"@push.rocks/smartshell": "^3.3.8",
|
||||||
"@push.rocks/smartstring": "^4.1.0",
|
"@push.rocks/smartstring": "^4.1.0",
|
||||||
"@push.rocks/smartunique": "^3.0.9",
|
"@push.rocks/smartunique": "^3.0.9",
|
||||||
"selfsigned": "^4.0.0"
|
"selfsigned": "^5.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^3.1.0",
|
"@git.zone/tsbuild": "^4.4.0",
|
||||||
"@git.zone/tsrun": "^2.0.0",
|
"@git.zone/tsrun": "^2.0.3",
|
||||||
"@git.zone/tstest": "^3.1.3",
|
"@git.zone/tstest": "^3.6.3",
|
||||||
"@push.rocks/qenv": "^6.1.3"
|
"@types/node": "^25.6.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
@@ -55,6 +55,8 @@
|
|||||||
"dist_ts_web/**/*",
|
"dist_ts_web/**/*",
|
||||||
"assets/**/*",
|
"assets/**/*",
|
||||||
"cli.js",
|
"cli.js",
|
||||||
|
".smartconfig.json",
|
||||||
|
"license",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
],
|
],
|
||||||
@@ -62,5 +64,5 @@
|
|||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
],
|
],
|
||||||
"packageManager": "pnpm@10.18.1+sha512.77a884a165cbba2d8d1c19e3b4880eee6d2fcabd0d879121e282196b80042351d5eb3ca0935fa599da1dc51265cc68816ad2bddd2a2de5ea9fdf92adbec7cd34"
|
"packageManager": "pnpm@10.28.2"
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+2174
-1877
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,6 @@
|
|||||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||||
import * as path from 'node:path';
|
import * as path from 'node:path';
|
||||||
|
|
||||||
import { Qenv } from '@push.rocks/qenv';
|
|
||||||
|
|
||||||
import * as smartnginx from '../ts/index.js';
|
import * as smartnginx from '../ts/index.js';
|
||||||
|
|
||||||
let testSmartNginx: smartnginx.SmartNginx;
|
let testSmartNginx: smartnginx.SmartNginx;
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartnginx',
|
name: '@push.rocks/smartnginx',
|
||||||
version: '2.0.54',
|
version: '2.0.55',
|
||||||
description: 'A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.'
|
description: 'A TypeScript library for controlling Nginx from Node.js, with support for generating and managing Nginx configurations dynamically.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export class NginxHost implements IHostConfig {
|
|||||||
public hostName: string; // the host name e.g. domain name
|
public hostName: string; // the host name e.g. domain name
|
||||||
public destination: string;
|
public destination: string;
|
||||||
public destinationPort: number;
|
public destinationPort: number;
|
||||||
public configString: string; // the actual host config file as string
|
public configString = ''; // the actual host config file as string
|
||||||
public privateKey: string;
|
public privateKey: string;
|
||||||
public publicKey: string;
|
public publicKey: string;
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { ChildProcess } from 'child_process';
|
|||||||
export class NginxProcess {
|
export class NginxProcess {
|
||||||
public started: boolean = false;
|
public started: boolean = false;
|
||||||
public smartNginxRef: SmartNginx;
|
public smartNginxRef: SmartNginx;
|
||||||
private nginxChildProcess: ChildProcess;
|
private nginxChildProcess?: ChildProcess;
|
||||||
private smartshellInstance = new plugins.smartshell.Smartshell({
|
private smartshellInstance = new plugins.smartshell.Smartshell({
|
||||||
executor: 'bash',
|
executor: 'bash',
|
||||||
});
|
});
|
||||||
@@ -62,6 +62,6 @@ export class NginxProcess {
|
|||||||
* checks if nginx is in path
|
* checks if nginx is in path
|
||||||
*/
|
*/
|
||||||
public check(): boolean {
|
public check(): boolean {
|
||||||
return;
|
return Boolean(this.nginxChildProcess);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export class SmartNginx {
|
|||||||
this.options.logger
|
this.options.logger
|
||||||
? (this.logger = this.options.logger)
|
? (this.logger = this.options.logger)
|
||||||
: (this.logger = new plugins.smartlog.Smartlog({
|
: (this.logger = new plugins.smartlog.Smartlog({
|
||||||
logContext: null
|
logContext: {}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,10 +122,9 @@ export class SmartNginx {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// write standard self signed certificate
|
// write standard self signed certificate
|
||||||
const selfsignedCert = plugins.selfsigned.generate(
|
const selfsignedCert = await plugins.selfsigned.generate([
|
||||||
[{ name: 'commonName', value: 'selfsigned.git.zone' }],
|
{ name: 'commonName', value: 'selfsigned.git.zone' },
|
||||||
{ days: 365 }
|
]);
|
||||||
);
|
|
||||||
|
|
||||||
// deploy hosts
|
// deploy hosts
|
||||||
await plugins.fs.directory(paths.nginxHostDirPath).recursive().create();
|
await plugins.fs.directory(paths.nginxHostDirPath).recursive().create();
|
||||||
|
|||||||
+4
-4
@@ -5,10 +5,10 @@
|
|||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
|
"noImplicitAny": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"verbatimModuleSyntax": true
|
"verbatimModuleSyntax": true,
|
||||||
|
"types": ["node"]
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": ["dist_*/**/*.d.ts"]
|
||||||
"dist_*/**/*.d.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user