diff --git a/scripts/package-json.js b/scripts/package-json.js index 42d55c7..1db735e 100644 --- a/scripts/package-json.js +++ b/scripts/package-json.js @@ -26,7 +26,7 @@ function themablePackage() { exports: { ".": { types: "./theming.d.ts", - import: "./theming.js", + default: "./theming.js", }, }, }); diff --git a/src-themeable/theming.ts b/src-themeable/theming.ts index 79f5aa0..04738f8 100644 --- a/src-themeable/theming.ts +++ b/src-themeable/theming.ts @@ -10,7 +10,6 @@ import { preset, TypedOverride } from "./internal/template/internal/generated/th const internalDir = join(__dirname, "./internal"); const scssDir = join(internalDir, "./scss"); const templateDir = join(internalDir, "./template"); -const designTokensTemplateDir = join(internalDir, "./template-tokens"); export type Theme = TypedOverride; export interface BuildThemedComponentsParams { @@ -25,9 +24,10 @@ export function buildThemedComponents({ theme, outputDir, baseThemeId }: BuildTh preset, baseThemeId, componentsOutputDir: join(outputDir, "components"), + // The chat components reuse the core design tokens and ship no + // design-tokens template, so designTokensTemplateDir is omitted. designTokensOutputDir: join(outputDir, "design-tokens"), templateDir, - designTokensTemplateDir, scssDir, }); } diff --git a/tsconfig.src-themeable.json b/tsconfig.src-themeable.json index 9863673..96a58f6 100644 --- a/tsconfig.src-themeable.json +++ b/tsconfig.src-themeable.json @@ -2,8 +2,8 @@ "compilerOptions": { "lib": ["es2019", "dom", "dom.iterable"], "target": "ES2019", - "module": "ESNext", - "moduleResolution": "nodenext", + "module": "CommonJS", + "moduleResolution": "node16", "rootDir": "src-themeable", "declaration": true, "incremental": true,