Skip to content

Commit

Permalink
Fix: css file exports (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicky-comeau committed Aug 17, 2023
1 parent efffcfc commit 52edb87
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions apps/docs/components/preview/Preview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@hopper-ui/tokens/fonts.css";
import "./preview.css";

interface PreviewProps {
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "pnpm doc:build"
command = "pnpm build && pnpm doc:build"
publish = "apps/docs/.next"

[[plugins]]
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

"test": "echo \"no test specified\"",
"build": "pnpm --filter=\"@hopper-ui/*\" -r --parallel build ",
"build:tokens": "pnpm --filte=\"@hopper-ui/tokens\" build",
"build:tokens": "pnpm --filter=\"@hopper-ui/tokens\" build",

"changeset": "changeset",
"ci-release": "pnpm build && changeset publish",
Expand All @@ -42,6 +42,7 @@
"storybook": "7.2.0"
},
"devDependencies": {
"@hopper-ui/tokens": "workspace:^",
"@storybook/addon-essentials": "7.2.0",
"@storybook/addon-interactions": "7.2.0",
"@storybook/addon-links": "7.2.0",
Expand Down
9 changes: 4 additions & 5 deletions packages/tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hopper-ui/tokens",
"author": "Workleap",
"version": "0.1.0-beta.0",
"version": "0.1.1-beta.0",
"description": "The tokens package.",
"license": "Apache-2.0",
"repository": {
Expand All @@ -20,10 +20,9 @@
},
"type": "module",
"exports": {
"./dist/": {
"import": "./dist/",
"require": "./dist/"
}
"./tokens.css": "./dist/tokens.css",
"./fonts.css": "./dist/fonts.css",
"./dark/tokens.css": "./dist/dark/tokens.css"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/src/style-dictionary/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const fontsConfig = {
}
},
"options": {
"fontPathPrefix": "./"
"fontPathPrefix": "../"
}
}
],
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 52edb87

Please sign in to comment.