Skip to content

Commit

Permalink
[Darkside] Tailwind darkside file export (#3431)
Browse files Browse the repository at this point in the history
* ✨ Added darkside export to tailwind package

* 🚚 Move darkside build-script to separate script

* 🐛 Avoid using darkside for website yet
  • Loading branch information
KenAJoh authored Dec 12, 2024
1 parent 36190f7 commit f026817
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions @navikt/core/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
"tailwind",
"design-tokens"
],
"main": "tailwind.config.js",
"types": "tailwind.config.d.ts",
"license": "MIT",
"files": [
"tailwind.config.js",
"tailwind.config.d.ts"
],
"scripts": {
"build": "tsx ./src && tsx darkside.ts",
"build": "tsx ./src && yarn build:darkside",
"build:darkside": "tsx darkside.ts",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand All @@ -36,5 +35,29 @@
"publishConfig": {
"access": "public",
"provenance": true
},
"main": "tailwind.config.js",
"types": "tailwind.config.d.ts",
"exports": {
".": {
"import": {
"types": "./tailwind.config.d.ts",
"default": "./tailwind.config.js"
},
"require": {
"types": "./tailwind.config.d.ts",
"default": "./tailwind.config.js"
}
},
"./darkside": {
"import": {
"types": "./tailwind.config.d.ts",
"default": "./tailwind.darkside.config.js"
},
"require": {
"types": "./tailwind.config.d.ts",
"default": "./tailwind.darkside.config.js"
}
}
}
}

0 comments on commit f026817

Please sign in to comment.