Skip to content

Commit

Permalink
#290 Add script to emit d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
zaki-yama committed Nov 5, 2019
1 parent 6f12480 commit 9ea8679
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"lint:src": "eslint --ext .ts,.tsx src/scripts/**",
"lint:stories": "eslint --ext .ts,.tsx stories/**",
"lint:test": "eslint --ext .js,.ts,.tsx test/**",
"build": "babel -d lib/ src/ --extensions \".ts,.tsx\"",
"build": "npm run build:src && npm run build:types",
"build:src": "babel -d lib/ src/ --extensions \".ts,.tsx\"",
"build:types": "tsc -p tsconfig.types.json",
"build:assets": "cp -r node_modules/@salesforce-ux/design-system/assets public",
"build:storybook": "build-storybook -o public",
"deploy": "npm-run-all build:storybook build:assets deploy:ghpage",
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"rootDir": "src"
},
"include": [
"src/**/*"
]
}

0 comments on commit 9ea8679

Please sign in to comment.