Skip to content

Commit

Permalink
fix(web): tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Jul 19, 2024
1 parent 6e23d2f commit 0236654
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"name": "@bottlesteam/ui",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
".": {
"import": "./dist/index.js"
},
"./styles": "./dist/index.css"
},
"scripts": {
"build": "node build.js",
"build": "tsc && node build.mjs",
"lint": "eslint . --max-warnings 0",
"generate:component": "turbo gen react-component"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { RecipeVariants } from '@vanilla-extract/recipes';
import { ReactNode } from 'react';
import { buttonStyle } from './button.css';
import { buttonStyle } from './button.css.ts';

interface ButtonProps {
children: ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/button/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Button } from './button.js';
export { Button } from './button';
4 changes: 3 additions & 1 deletion packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "@bottlesteam/typescript-config/react-library.json",
"compilerOptions": {
"outDir": "dist"
"outDir": "dist",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
Expand Down

0 comments on commit 0236654

Please sign in to comment.