Skip to content

Commit

Permalink
fix(packages): add types versions (#3677)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Apr 1, 2024
1 parent 274d396 commit 42187e2
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 225 deletions.
103 changes: 56 additions & 47 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,57 @@
{
"name": "@unocss/eslint-config",
"version": "0.59.0-beta.1",
"description": "ESLint config for UnoCSS",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/eslint-config#readme",
"repository": {
"type": "git",
"url": "https://github.com/unocss/unocss",
"directory": "packages/eslint-config"
},
"bugs": {
"url": "https://github.com/unocss/unocss/issues"
},
"keywords": [
"eslint-config",
"eslint"
],
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./flat": {
"import": "./dist/flat.mjs",
"require": "./dist/flat.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=14"
},
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
},
"dependencies": {
"@unocss/eslint-plugin": "workspace:*"
}
{
"name": "@unocss/eslint-config",
"type": "module",
"version": "0.59.0-beta.1",
"description": "ESLint config for UnoCSS",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/eslint-config#readme",
"repository": {
"type": "git",
"url": "https://github.com/unocss/unocss",
"directory": "packages/eslint-config"
},
"bugs": {
"url": "https://github.com/unocss/unocss/issues"
},
"keywords": [
"eslint-config",
"eslint"
],
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./flat": {
"import": "./dist/flat.mjs",
"require": "./dist/flat.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./*"
]
}
},
"files": [
"dist"
],
"engines": {
"node": ">=14"
},
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
},
"dependencies": {
"@unocss/eslint-plugin": "workspace:*"
}
}
124 changes: 66 additions & 58 deletions packages/preset-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,67 @@
{
"name": "@unocss/preset-icons",
"type": "module",
"version": "0.59.0-beta.1",
"description": "Pure CSS Icons for UnoCSS",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-icons#readme",
"repository": {
"type": "git",
"url": "https://github.com/unocss/unocss",
"directory": "packages/preset-icons"
},
"bugs": {
"url": "https://github.com/unocss/unocss/issues"
},
"keywords": [
"unocss",
"unocss-preset",
"icons",
"css-icons",
"iconify"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./browser": {
"types": "./dist/browser.d.mts",
"default": "./dist/browser.mjs"
},
"./core": {
"types": "./dist/core.d.mts",
"default": "./dist/core.mjs"
}
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"*.css",
"dist"
],
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
},
"dependencies": {
"@iconify/utils": "^2.1.22",
"@unocss/core": "workspace:*",
"ofetch": "^1.3.4"
},
"devDependencies": {
"@iconify/types": "^2.0.0"
}
{
"name": "@unocss/preset-icons",
"type": "module",
"version": "0.59.0-beta.1",
"description": "Pure CSS Icons for UnoCSS",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-icons#readme",
"repository": {
"type": "git",
"url": "https://github.com/unocss/unocss",
"directory": "packages/preset-icons"
},
"bugs": {
"url": "https://github.com/unocss/unocss/issues"
},
"keywords": [
"unocss",
"unocss-preset",
"icons",
"css-icons",
"iconify"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./browser": {
"types": "./dist/browser.d.mts",
"default": "./dist/browser.mjs"
},
"./core": {
"types": "./dist/core.d.mts",
"default": "./dist/core.mjs"
}
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./*"
]
}
},
"files": [
"*.css",
"dist"
],
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
},
"dependencies": {
"@iconify/utils": "^2.1.22",
"@unocss/core": "workspace:*",
"ofetch": "^1.3.4"
},
"devDependencies": {
"@iconify/types": "^2.0.0"
}
}
124 changes: 66 additions & 58 deletions packages/preset-uno/package.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,67 @@
{
"name": "@unocss/preset-uno",
"type": "module",
"version": "0.59.0-beta.1",
"description": "The default preset for UnoCSS",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-uno#readme",
"repository": {
"type": "git",
"url": "https://github.com/unocss/unocss",
"directory": "packages/preset-uno"
},
"bugs": {
"url": "https://github.com/unocss/unocss/issues"
},
"keywords": [
"unocss",
"unocss-preset"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./theme": {
"types": "./dist/theme.d.mts",
"default": "./dist/theme.mjs"
},
"./colors": {
"types": "./dist/colors.d.mts",
"default": "./dist/colors.mjs"
},
"./utils": {
"types": "./dist/utils.d.mts",
"default": "./dist/utils.mjs"
},
"./*": "./*"
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"*.css",
"dist"
],
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
},
"dependencies": {
"@unocss/core": "workspace:*",
"@unocss/preset-mini": "workspace:*",
"@unocss/preset-wind": "workspace:*",
"@unocss/rule-utils": "workspace:*"
}
{
"name": "@unocss/preset-uno",
"type": "module",
"version": "0.59.0-beta.1",
"description": "The default preset for UnoCSS",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-uno#readme",
"repository": {
"type": "git",
"url": "https://github.com/unocss/unocss",
"directory": "packages/preset-uno"
},
"bugs": {
"url": "https://github.com/unocss/unocss/issues"
},
"keywords": [
"unocss",
"unocss-preset"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./theme": {
"types": "./dist/theme.d.mts",
"default": "./dist/theme.mjs"
},
"./colors": {
"types": "./dist/colors.d.mts",
"default": "./dist/colors.mjs"
},
"./utils": {
"types": "./dist/utils.d.mts",
"default": "./dist/utils.mjs"
},
"./*": "./*"
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./*"
]
}
},
"files": [
"*.css",
"dist"
],
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub"
},
"dependencies": {
"@unocss/core": "workspace:*",
"@unocss/preset-mini": "workspace:*",
"@unocss/preset-wind": "workspace:*",
"@unocss/rule-utils": "workspace:*"
}
}
Loading

0 comments on commit 42187e2

Please sign in to comment.