Skip to content

Commit

Permalink
Merge pull request #73 from xpadev-net/fix/type-definition
Browse files Browse the repository at this point in the history
fix: build process
  • Loading branch information
xpadev-net authored Nov 29, 2023
2 parents 89f2504 + b96ae9c commit 7c52bf0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "npx rimraf dist&&npm run build:ts&&npm run build:dts",
"build:ts": "rollup -c rollup.config.mjs",
"build:dts": "npx copyfiles -u 2 src/@types/*.d.ts dist/dts/@types/&&node ./util/resolve-path-alias.js&&rollup -c rollup.config.dts.mjs",
"build:dts": "npx copyfiles -u 2 src/@types/*.d.ts dist/dts/@types/&&node ./util/resolve-path-alias.js&&rollup -c rollup.config.dts.mjs&& npx dts-bundle-generator --external-inlines=valibot -o dist/bundle.d.ts dist/bundle_.d.ts",
"watch": "rollup -c rollup.config.mjs -w",
"typedoc": "typedoc --entryPointStrategy Expand --out ./docs/type/ ./src/",
"prepublishOnly": "npm run build",
Expand Down Expand Up @@ -56,6 +56,7 @@
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"copyfiles": "^2.4.1",
"dts-bundle-generator": "^9.0.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jsdoc": "^46.9.0",
Expand Down
39 changes: 39 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rollup.config.dts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ const __dirname = path.dirname(__filename);

export default {
input: "./dist/dts/main.d.ts",
output: [{ file: "dist/bundle.d.ts", format: "es" }],
output: [{ file: "dist/bundle_.d.ts", format: "es" }],
plugins: [typescriptPaths(), dts()],
};

0 comments on commit 7c52bf0

Please sign in to comment.