Skip to content

Commit

Permalink
fix: expor t path
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Sep 6, 2024
1 parent 887e927 commit 64098e4
Show file tree
Hide file tree
Showing 9 changed files with 736 additions and 654 deletions.
79 changes: 38 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "unplugin-unocss-config",
"type": "module",
"version": "0.1.0",
"packageManager": "[email protected]",
"description": "Use uno config in run-time",
Expand All @@ -22,32 +23,28 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./client": {
"types": "./client.d.ts"
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./vite": {
"types": "./dist/vite.d.ts",
"import": "./dist/vite.mjs",
"require": "./dist/vite.js"
"import": "./dist/vite.js",
"require": "./dist/vite.cjs"
},
"./nuxt": {
"types": "./dist/nuxt.d.ts",
"import": "./dist/nuxt.mjs",
"require": "./dist/nuxt.js"
"import": "./dist/nuxt.js",
"require": "./dist/nuxt.cjs"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.mjs",
"require": "./dist/types.js"
"import": "./dist/types.js",
"require": "./dist/types.cjs"
},
"./client": {
"types": "./client.d.ts"
},
"./*": "./*"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
Expand Down Expand Up @@ -92,31 +89,31 @@
"unplugin": "^1.5.1"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.1",
"@types/debug": "^4.1.12",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.5.0",
"@unocss/config": "^0.62.3",
"@unocss/core": "^0.62.3",
"@unocss/preset-mini": "^0.62.3",
"bumpp": "^9.2.1",
"chalk": "^5.3.0",
"debug": "^4.3.4",
"eslint": "^9.9.1",
"esno": "^4.0.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.0",
"nodemon": "^3.0.2",
"rimraf": "^6.0.1",
"rollup": "^4.9.2",
"simple-git-hooks": "^2.9.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"@antfu/eslint-config": "catalog:",
"@types/debug": "catalog:",
"@types/fs-extra": "catalog:",
"@types/node": "catalog:",
"@unocss/config": "catalog:",
"@unocss/core": "catalog:",
"@unocss/preset-mini": "catalog:",
"bumpp": "catalog:",
"chalk": "catalog:",
"debug": "catalog:",
"eslint": "catalog:",
"esno": "catalog:",
"fast-glob": "catalog:",
"fs-extra": "catalog:",
"lint-staged": "catalog:",
"nodemon": "catalog:",
"rimraf": "catalog:",
"rollup": "catalog:",
"simple-git-hooks": "catalog:",
"tsup": "catalog:",
"typescript": "catalog:",
"unplugin": "^1.6.0",
"vite": "^5.0.10",
"vitest": "^2.0.5",
"webpack": "^5.89.0"
"vite": "catalog:",
"vitest": "catalog:",
"webpack": "catalog:"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Expand Down
17 changes: 9 additions & 8 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
"type": "module",
"private": true,
"scripts": {
"dev": "cross-env DEBUG=unplugin-unocss-config vite",
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.4.3"
"vue": "catalog:"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.2",
"cross-env": "^7.0.3",
"unocss": "^0.62.3",
"unocss-preset-useful": "^0.5.1",
"@onu-ui/preset": "^1.1.2",
"@vitejs/plugin-vue": "catalog:",
"cross-env": "catalog:",
"unocss": "catalog:",
"unocss-preset-useful": "catalog:",
"unplugin-unocss-config": "workspace:*",
"vite": "^5.0.10",
"vite-plugin-inspect": "^0.8.1"
"vite": "catalog:",
"vite-plugin-inspect": "catalog:"
}
}
14 changes: 5 additions & 9 deletions playground/uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import {
defineConfig,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'
import presetOnu from '@onu-ui/preset'
import { defineConfig } from 'unocss'
import { presetUseful } from 'unocss-preset-useful'

export default defineConfig({
Expand All @@ -21,10 +18,9 @@ export default defineConfig({
},
},
}),
],
transformers: [
transformerVariantGroup(),
transformerDirectives(),
presetOnu({
color: '#FF5722',
}),
],
preflights: [
{
Expand Down
6 changes: 3 additions & 3 deletions playground/vite.config.mts → playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'
import vue from '@vitejs/plugin-vue'
import UnoCSS from 'unocss/vite'
import Unplugin from '../src/vite'
import Unplugin from 'unplugin-unocss-config/vite'
import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'

export default defineConfig({
plugins: [
Expand Down
Loading

0 comments on commit 64098e4

Please sign in to comment.