Skip to content

Commit

Permalink
fix(components): adding back ts declaration files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and owilliams320 committed Jun 9, 2023
1 parent 60d6070 commit 8cb0b10
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
9 changes: 8 additions & 1 deletion libs/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
"name": "@covalent/components",
"version": "0.0.0-COVALENT",
"description": "a catalog of material components for covalent",
"main": "index.js",
"main": "covalent.umd.js",
"module": "covalent.mjs",
"exports": {
".": {
"import": "./covalent.js",
"require": "./covalent.umd.js"
}
},
"repository": {
"type": "git",
"url": "https://github.com/teradata/covalent.git"
Expand Down
1 change: 1 addition & 0 deletions libs/components/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"options": {
"commands": [
"vite build --config libs/components/vite.config.js --outDir dist/libs/components",
"./node_modules/.bin/tsc --project libs/components/tsconfig.lib.json --declaration --declarationMap --emitDeclarationOnly --outDir dist/",
"cp libs/components/package.json dist/libs/components"
],
"parallel": false,
Expand Down
4 changes: 4 additions & 0 deletions libs/components/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ declare module '*.css' {
const css: CSSResult;
export default css;
}
declare module '*?inline' {
const contents:{default: string}
export = contents
}
1 change: 0 additions & 1 deletion libs/components/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = defineConfig({
formats: ['es', 'umd'],
},
rollupOptions: {
external: [/^lit/, /^@material/],
output: {
chunkFileNames: '[name].mjs',
},
Expand Down

0 comments on commit 8cb0b10

Please sign in to comment.