Skip to content

Commit

Permalink
fix(): Export from src index file.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Dec 19, 2023
1 parent 0defea2 commit a59fb38
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions index.ts

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"registry": "https://npm.pkg.github.com"
},
"exports": {
".": "./dist/index.js",
".": "./dist/src/index.js",
"./tokens.css": "./dist/tokens.css"
},
"types": "./dist/types/index.d.ts",
"types": "./dist/types",
"repository": {
"type": "git",
"url": "git+https://github.com/CQCL/quantinuum-ui.git"
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { terser } from "rollup-plugin-terser";

export default [
{
input: "index.ts",
input: "src/index.ts",
output: [
{
dir: "dist/",
Expand All @@ -23,7 +23,7 @@ export default [
// Create typescript definitions.
typescript({
tsconfig: "./tsconfig.json",
declarationDir: "dist/types",
declarationDir: "./dist/types",
}),
// CSS vendor prefixing etc.
copy({
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "../tailwind.config";
export * from "./atoms/accordion";
export * from "./atoms/alert";
export * from "./atoms/alert-dialog";
Expand Down

0 comments on commit a59fb38

Please sign in to comment.