From 2e61fd1e5c65f7e5bf28607811c27d6d2b114e8e Mon Sep 17 00:00:00 2001 From: QCQCQC <1220204124@zust.edu.cn> Date: Tue, 5 Nov 2024 19:50:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=BA=E9=80=82=E9=85=8Dpnpm=E5=92=8Cyar?= =?UTF-8?q?n=E7=AD=89=E5=8C=85=E7=AE=A1=E7=90=86=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8template=E7=9A=84package.json=E4=B8=AD?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86resolutions=E5=92=8Cpnpm.overrides?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/template.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/template.ts b/src/template.ts index dd8fbcc..00fb656 100644 --- a/src/template.ts +++ b/src/template.ts @@ -296,6 +296,14 @@ export function packageJsonContent({ "crypto-browserify": { "readable-stream": "3.6.2" } + }, + "pnpm": { + "overrides": { + "readable-stream": "3.6.2" + } + }, + "resolutions": { + "readable-stream": "3.6.2" } } `; From e86f2c0cffcb7b39f59f5b98a409b6a6353a1b63 Mon Sep 17 00:00:00 2001 From: QCQCQC <1220204124@zust.edu.cn> Date: Tue, 5 Nov 2024 19:52:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9C=A8=E5=9F=BA=E7=A1=80=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=B8=AD=E6=96=B0=E5=A2=9E=E4=BA=86oak=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E7=9A=84=E9=A1=B9=E7=9B=AE=E6=A3=80=E6=9F=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/oak.config.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 template/oak.config.json diff --git a/template/oak.config.json b/template/oak.config.json new file mode 100644 index 0000000..4c33bd6 --- /dev/null +++ b/template/oak.config.json @@ -0,0 +1,21 @@ +{ + "projectDir": "./", + "trigger": { + "onReturnLiteral": "warn", + "onNoAsyncFn": "error", + "onNoAwaitContext": "error" + }, + "i18n": { + "onMissingKey": "error", + "onKeyBlank": "warn" + }, + "oakComponent": { + "onInvalidEntity": "error", + "onInvalidIsList": "error", + "onMissingDataAttrs": "warn", + "onMissingMethods": "error" + }, + "oakPath": { + "onInvalidPath": "error" + } +} \ No newline at end of file