mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore: 1
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
"start": "lerna bootstrap --hoist",
|
"start": "lerna bootstrap --hoist",
|
||||||
"start:server": "cd ./packages/ui/certd-server && npm start",
|
"start:server": "cd ./packages/ui/certd-server && npm start",
|
||||||
"devb": "lerna run dev-build",
|
"devb": "lerna run dev-build",
|
||||||
|
"build": "lerna run build",
|
||||||
"i-all": "lerna link && lerna exec npm install ",
|
"i-all": "lerna link && lerna exec npm install ",
|
||||||
"publish": "npm run prepublishOnly2 && lerna publish --force-publish=pro/plus-core --conventional-commits --create-release github && npm run afterpublishOnly ",
|
"publish": "npm run prepublishOnly2 && lerna publish --force-publish=pro/plus-core --conventional-commits --create-release github && npm run afterpublishOnly ",
|
||||||
"afterpublishOnly": "npm run plugin-doc-gen && npm run copylogs && time /t >trigger/build.trigger && git add ./trigger/build.trigger && git commit -m \"build: trigger build image\" && TIMEOUT /T 10 && npm run commitAll",
|
"afterpublishOnly": "npm run plugin-doc-gen && npm run copylogs && time /t >trigger/build.trigger && git add ./trigger/build.trigger && git commit -m \"build: trigger build image\" && TIMEOUT /T 10 && npm run commitAll",
|
||||||
|
|||||||
@@ -22,3 +22,4 @@ run/
|
|||||||
tools/lego/*
|
tools/lego/*
|
||||||
!tools/lego/readme.md
|
!tools/lego/readme.md
|
||||||
test.mjs
|
test.mjs
|
||||||
|
isolate-*.log
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "cross-env NODE_ENV=production node ./bootstrap.js",
|
"start": "cross-env NODE_ENV=production node --optimize-for-size ./bootstrap.js",
|
||||||
"dev-start": "mwtsc --watch --run @midwayjs/mock/app",
|
"dev-start": "mwtsc --watch --run @midwayjs/mock/app",
|
||||||
"dc": "cd ../../../ && pnpm run dev",
|
"dc": "cd ../../../ && pnpm run dev",
|
||||||
"dev": "cross-env NODE_ENV=local & pnpm run dev-start",
|
"dev": "cross-env NODE_ENV=local & pnpm run dev-start",
|
||||||
@@ -23,13 +23,13 @@
|
|||||||
"lint": "mwts check",
|
"lint": "mwts check",
|
||||||
"lint:fix": "mwts fix",
|
"lint:fix": "mwts fix",
|
||||||
"ci": "npm run cov",
|
"ci": "npm run cov",
|
||||||
"build": "mwtsc --cleanOutDir --skipLibCheck",
|
"build": "cross-env NODE_ENV=production mwtsc --cleanOutDir --skipLibCheck",
|
||||||
"export-metadata": "node export-plugin-yaml.js",
|
"export-metadata": "node export-plugin-yaml.js",
|
||||||
"export-md": "node export-plugin-md.js",
|
"export-md": "node export-plugin-md.js",
|
||||||
"dev-build": "echo 1",
|
"dev-build": "echo 1",
|
||||||
"build-on-docker": "node ./before-build.js && npm run build",
|
"build-on-docker": "node ./before-build.js && npm run build",
|
||||||
"up-mw-deps": "npx midway-version -u -w",
|
"up-mw-deps": "npx midway-version -u -w",
|
||||||
"heap": "cross-env NODE_ENV=local clinic heapprofiler -- node ./bootstrap.js",
|
"heap": "cross-env NODE_ENV=production clinic heapprofiler -- node --optimize-for-size --inspect ./bootstrap.js",
|
||||||
"flame": "clinic flame -- node ./bootstrap.js",
|
"flame": "clinic flame -- node ./bootstrap.js",
|
||||||
"tsc": "tsc --skipLibCheck",
|
"tsc": "tsc --skipLibCheck",
|
||||||
"slimming": "node ./slimming.js",
|
"slimming": "node ./slimming.js",
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ import * as upload from '@midwayjs/upload';
|
|||||||
import { setLogger } from '@certd/acme-client';
|
import { setLogger } from '@certd/acme-client';
|
||||||
import {HiddenMiddleware} from "./middleware/hidden.js";
|
import {HiddenMiddleware} from "./middleware/hidden.js";
|
||||||
|
|
||||||
|
//@ts-ignore
|
||||||
|
// process.env.UV_THREADPOOL_SIZE = 2
|
||||||
process.on('uncaughtException', error => {
|
process.on('uncaughtException', error => {
|
||||||
console.error('未捕获的异常:', error);
|
console.error('未捕获的异常:', error);
|
||||||
// 在这里可以添加日志记录、发送错误通知等操作
|
// 在这里可以添加日志记录、发送错误通知等操作
|
||||||
|
|||||||
Reference in New Issue
Block a user