diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a7a1d0f..7634cb8 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -23,6 +23,7 @@ jobs: node-version-file: .nvmrc registry-url: https://registry.npmjs.org/ + - name: Ensure output folder exists run: mkdir -p objects @@ -32,6 +33,8 @@ jobs: - name: Prepare npm package run: | cp package.template.json objects/package.json + cp tsconfig.template.json objects/tsconfig.json + cp README.md objects/ || true node <=24" +} } \ No newline at end of file diff --git a/tsconfig.template.json b/tsconfig.template.json new file mode 100644 index 0000000..3f29710 --- /dev/null +++ b/tsconfig.template.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "es2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "allowJs": true, + "sourceMap": true, + "outDir": "./dist", + "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "exactOptionalPropertyTypes": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "declaration": true, + "declarationMap": true + }}