Skip to content

Commit

Permalink
⚙️ Chore(index.ts,config): implement partly init command and add we…
Browse files Browse the repository at this point in the history
…bpack support d.ts
  • Loading branch information
INeedJobToStartWork committed Jan 9, 2024
1 parent 67a9279 commit 772d365
Show file tree
Hide file tree
Showing 10 changed files with 92 additions and 375 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.hbs
14 changes: 13 additions & 1 deletion config/webpack/webpack.base.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import p from "bundle-declarations-webpack-plugin";
import path from "path";

const __dirname = path.resolve();
Expand Down Expand Up @@ -26,5 +27,16 @@ export default {
"@": path.resolve(__dirname, "src/")
}
},
target: "node"
target: "node",
plugins: [
new p.BundleDeclarationsWebpackPlugin({
entry: ["./src/utils/types.ts"],
outFile: "types.d.ts",
compilationOptions: {
libraries: {
inlinedLibraries: ["zod"]
}
}
})
]
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"bundle-declarations-webpack-plugin": "^5.0.0",
"chalk": "^5.3.0",
"eslint": "^8.56.0",
"eslint-plugin-optimize-regex": "^1.2.1",
Expand Down
Loading

0 comments on commit 772d365

Please sign in to comment.