chore: add dev script for openapi-oidc-page

perf/livekit-chat-count
moonrailgun 2 years ago
parent 9f9997012f
commit a143a7eada

@ -2264,6 +2264,9 @@ importers:
'@types/express': '@types/express':
specifier: ^4.17.15 specifier: ^4.17.15
version: 4.17.17 version: 4.17.17
nodemon:
specifier: ^3.0.1
version: 3.0.1
ts-node: ts-node:
specifier: 10.9.1 specifier: 10.9.1
version: 10.9.1(@types/node@18.11.9)(typescript@4.9.4) version: 10.9.1(@types/node@18.11.9)(typescript@4.9.4)
@ -25249,6 +25252,23 @@ packages:
undefsafe: 2.0.5 undefsafe: 2.0.5
dev: true dev: true
/nodemon@3.0.1:
resolution: {integrity: sha512-g9AZ7HmkhQkqXkRc20w+ZfQ73cHLbE8hnPbtaFbFtCumZsjyMhKk9LajQ07U5Ux28lvFjZ5X7HvWR1xzU8jHVw==}
engines: {node: '>=10'}
hasBin: true
dependencies:
chokidar: 3.5.3
debug: 3.2.7(supports-color@5.5.0)
ignore-by-default: 1.0.1
minimatch: 3.1.2
pstree.remy: 1.1.8
semver: 7.5.4
simple-update-notifier: 2.0.0
supports-color: 5.5.0
touch: 3.1.0
undefsafe: 2.0.5
dev: true
/nopt@1.0.10: /nopt@1.0.10:
resolution: {integrity: sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==} resolution: {integrity: sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==}
hasBin: true hasBin: true
@ -31027,6 +31047,13 @@ packages:
semver: 7.0.0 semver: 7.0.0
dev: true dev: true
/simple-update-notifier@2.0.0:
resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==}
engines: {node: '>=10'}
dependencies:
semver: 7.5.4
dev: true
/sirv@1.0.19: /sirv@1.0.19:
resolution: {integrity: sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==} resolution: {integrity: sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==}
engines: {node: '>= 10'} engines: {node: '>= 10'}

@ -204,7 +204,7 @@ class OIDCService extends TcService {
) )
); );
} else { } else {
this.renderError(res, '未知的操作'); this.renderError(res, 'Unknown operation');
} }
} catch (err) { } catch (err) {
this.renderError(res, err); this.renderError(res, err);

@ -6,6 +6,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "ts-node ./index.ts", "start": "ts-node ./index.ts",
"dev": "nodemon --watch \"index.ts\" --watch \"../../../services/openapi/oidc/views/**\" --ext \"ts,ejs\" --exec \"ts-node --transpile-only ./index.ts\"",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",
@ -15,6 +16,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/express": "^4.17.15", "@types/express": "^4.17.15",
"nodemon": "^3.0.1",
"ts-node": "10.9.1" "ts-node": "10.9.1"
} }
} }

Loading…
Cancel
Save