diff --git a/packages/tokens/config.js b/packages/tokens/config.js index f5ff39a1..27b3681c 100644 --- a/packages/tokens/config.js +++ b/packages/tokens/config.js @@ -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', @@ -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', }, diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 2dc19daa..3e6b4a11 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -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",