Skip to content

Commit

Permalink
Restructure types
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Jul 8, 2024
1 parent d3c74e2 commit ee3ff21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/tokens/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ module.exports = {
buildPath: './dist/',
prefix: '',
files: [
{
destination: 'index.d.ts',
format: 'typescript/es6-declarations/module',
},
{
destination: 'js/colors.js',
format: 'javascript/es6/vads-colors',
Expand All @@ -26,17 +22,21 @@ module.exports = {
destination: 'js/index.js',
format: 'javascript/es6/vads-module-export',
},
{
destination: 'js/index.d.ts',
format: 'typescript/es6-declarations/module',
},
{
destination: 'js/themes.js',
format: 'javascript/es6/vads-colors-themes',
},
{
destination: 'types/colors.d.ts',
destination: 'js/types/colors.d.ts',
format: 'typescript/es6-declarations/colors',
filter: 'filter/color/is-color',
},
{
destination: 'types/theme.d.ts',
destination: 'js/types/theme.d.ts',
format: 'typescript/es6-declarations/theme',
filter: 'filter/color/light-mode',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.13.1-alpha.0",
"description": "VA Design System Mobile Token Library",
"exports": "./dist/js/index.js",
"types": "./dist/index.d.ts",
"types": "./dist/js/index.d.ts",
"scripts": {
"tokens:build": "node ./build.js && prettier dist/ --write",
"prepack": "npm run tokens:build",
Expand Down

0 comments on commit ee3ff21

Please sign in to comment.