Skip to content

Commit

Permalink
Typescript declarations for eds-icons (#727)
Browse files Browse the repository at this point in the history
* tsconfig

* rollup.config

* package.json
  • Loading branch information
pomfrida authored Oct 22, 2020
1 parent 02715ab commit 72ff076
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions libraries/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"main": "dist/icons.esm.js",
"module": "dist/icons.esm.js",
"browser": "dist/icons.umd.js",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"author": {
"name": "EDS Core Team",
Expand Down
10 changes: 1 addition & 9 deletions libraries/icons/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ export default [
watch: {
clearScreen: true,
},
plugins: [
resolve(),
typescript({
tsconfig: 'tsconfig.json',
typescript: require('typescript'),
include: ['*.ts+(|x)', '**/*.ts+(|x)', '*.js+(|x)', '**/*.js+(|x)'],
exclude: ['node_modules/**'],
}),
],
plugins: [resolve(), typescript({ useTsconfigDeclarationDir: true })],
output: [
{
file: pkg.module,
Expand Down
7 changes: 6 additions & 1 deletion libraries/icons/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"include": ["index.ts"],
"compilerOptions": {
"declaration": true,
"declarationDir": "./dist/types",
"outDir": "./dist"
},
"include": ["./src/**/*.ts*"],
"exclude": ["node_modules"]
}

0 comments on commit 72ff076

Please sign in to comment.