Skip to content

Commit

Permalink
refactor(SLB-203): rollup type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Jan 3, 2024
1 parent ecb8ec4 commit 3295409
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 46 deletions.
8 changes: 5 additions & 3 deletions packages/executors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"types": "build/index.d.ts",
"type": "module",
"scripts": {
"prep": "tsc",
"build": "tsc",
"prep": "tsc && rollup -c",
"build": "pnpm prep",
"test:unit": "vitest run",
"test:static": "tsc --noEmit && eslint \"**/*.{ts,tsx,js,jsx}\" --ignore-path=\"./.gitignore\" --fix"
},
Expand All @@ -18,11 +18,13 @@
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
"@amazeelabs/eslint-config": "^1.4.43",
"@amazeelabs/prettier-config": "^1.1.3",
"@types/lodash-es": "^4.17.12",
"eslint": "^8.43.0",
"prettier": "^2.8.8",
"rollup": "^4.9.2",
"rollup-plugin-dts": "^6.1.0",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
}
Expand Down
8 changes: 8 additions & 0 deletions packages/executors/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'rollup';
import dts from 'rollup-plugin-dts';

export default defineConfig({
input: 'build/dts/index.d.ts',
output: [{ file: 'build/index.d.ts', format: 'es' }],
plugins: [dts()],
});
2 changes: 1 addition & 1 deletion packages/executors/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"declarationDir": "build",
"declarationDir": "build/dts",
"outDir": "build"
},
"include": ["src"]
Expand Down
136 changes: 94 additions & 42 deletions pnpm-lock.yaml

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

0 comments on commit 3295409

Please sign in to comment.