2021-05-24 10:25:02 +00:00
|
|
|
{
|
|
|
|
"name": "@iconify/utils",
|
2022-03-04 11:00:20 +00:00
|
|
|
"type": "module",
|
2021-05-24 10:25:02 +00:00
|
|
|
"description": "Common functions for working with Iconify icon sets used by various packages.",
|
|
|
|
"author": "Vjacheslav Trushkin",
|
2022-07-02 08:21:45 +00:00
|
|
|
"version": "2.0.0-beta.4",
|
2021-05-24 10:25:02 +00:00
|
|
|
"license": "MIT",
|
|
|
|
"bugs": "https://github.com/iconify/iconify/issues",
|
|
|
|
"homepage": "https://iconify.design/",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/iconify/iconify.git",
|
|
|
|
"directory": "packages/utils"
|
|
|
|
},
|
|
|
|
"scripts": {
|
2022-03-16 08:58:02 +00:00
|
|
|
"clean": "rimraf lib tsconfig.tsbuildinfo",
|
2022-03-14 14:39:40 +00:00
|
|
|
"lint": "eslint --fix src/**/*.ts",
|
2022-06-19 19:40:13 +00:00
|
|
|
"prebuild": "pnpm run lint && pnpm run clean",
|
2022-03-14 15:17:29 +00:00
|
|
|
"build": "unbuild",
|
2022-08-21 15:40:56 +00:00
|
|
|
"test:cjs": "vitest --config vitest.config.cjs",
|
|
|
|
"test:esm": "vitest --config vitest.config.mjs",
|
|
|
|
"test": "pnpm run test:cjs && pnpm run test:esm"
|
2022-03-04 11:00:20 +00:00
|
|
|
},
|
2022-03-03 23:36:30 +00:00
|
|
|
"sideEffects": false,
|
2022-03-20 13:43:26 +00:00
|
|
|
"main": "lib/index.cjs",
|
|
|
|
"module": "lib/index.mjs",
|
|
|
|
"types": "lib/index.d.ts",
|
2021-09-16 21:07:22 +00:00
|
|
|
"exports": {
|
2021-11-25 08:50:09 +00:00
|
|
|
".": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/index.cjs",
|
2021-11-13 19:25:38 +00:00
|
|
|
"import": "./lib/index.mjs"
|
|
|
|
},
|
2022-03-04 11:00:20 +00:00
|
|
|
"./*": "./*",
|
2021-10-09 17:20:07 +00:00
|
|
|
"./lib/colors": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/colors/index.cjs",
|
2021-10-09 17:20:07 +00:00
|
|
|
"import": "./lib/colors/index.mjs"
|
|
|
|
},
|
|
|
|
"./lib/colors/index": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/colors/index.cjs",
|
2021-10-09 17:20:07 +00:00
|
|
|
"import": "./lib/colors/index.mjs"
|
|
|
|
},
|
|
|
|
"./lib/colors/keywords": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/colors/keywords.cjs",
|
2021-10-09 17:20:07 +00:00
|
|
|
"import": "./lib/colors/keywords.mjs"
|
|
|
|
},
|
|
|
|
"./lib/colors/types": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/colors/types.cjs",
|
2021-10-09 17:20:07 +00:00
|
|
|
"import": "./lib/colors/types.mjs"
|
|
|
|
},
|
2021-09-16 21:07:22 +00:00
|
|
|
"./lib/customisations/bool": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/customisations/bool.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/customisations/bool.mjs"
|
|
|
|
},
|
2022-06-19 14:12:26 +00:00
|
|
|
"./lib/customisations/defaults": {
|
|
|
|
"require": "./lib/customisations/defaults.cjs",
|
|
|
|
"import": "./lib/customisations/defaults.mjs"
|
2021-09-20 09:59:16 +00:00
|
|
|
},
|
2022-04-30 20:12:34 +00:00
|
|
|
"./lib/customisations/flip": {
|
|
|
|
"require": "./lib/customisations/flip.cjs",
|
|
|
|
"import": "./lib/customisations/flip.mjs"
|
|
|
|
},
|
2022-06-19 14:12:26 +00:00
|
|
|
"./lib/customisations/merge": {
|
|
|
|
"require": "./lib/customisations/merge.cjs",
|
|
|
|
"import": "./lib/customisations/merge.mjs"
|
2021-09-16 21:07:22 +00:00
|
|
|
},
|
|
|
|
"./lib/customisations/rotate": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/customisations/rotate.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/customisations/rotate.mjs"
|
|
|
|
},
|
2021-10-05 12:02:06 +00:00
|
|
|
"./lib/icon-set/convert-info": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon-set/convert-info.cjs",
|
2021-10-05 12:02:06 +00:00
|
|
|
"import": "./lib/icon-set/convert-info.mjs"
|
|
|
|
},
|
2021-09-16 21:07:22 +00:00
|
|
|
"./lib/icon-set/expand": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon-set/expand.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon-set/expand.mjs"
|
|
|
|
},
|
|
|
|
"./lib/icon-set/get-icon": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon-set/get-icon.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon-set/get-icon.mjs"
|
|
|
|
},
|
|
|
|
"./lib/icon-set/get-icons": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon-set/get-icons.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon-set/get-icons.mjs"
|
|
|
|
},
|
|
|
|
"./lib/icon-set/minify": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon-set/minify.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon-set/minify.mjs"
|
|
|
|
},
|
|
|
|
"./lib/icon-set/parse": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon-set/parse.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon-set/parse.mjs"
|
|
|
|
},
|
2022-06-20 13:44:56 +00:00
|
|
|
"./lib/icon-set/tree": {
|
|
|
|
"require": "./lib/icon-set/tree.cjs",
|
|
|
|
"import": "./lib/icon-set/tree.mjs"
|
|
|
|
},
|
2021-09-16 21:07:22 +00:00
|
|
|
"./lib/icon-set/validate": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon-set/validate.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon-set/validate.mjs"
|
|
|
|
},
|
2022-03-31 08:07:02 +00:00
|
|
|
"./lib/icon-set/validate-basic": {
|
|
|
|
"require": "./lib/icon-set/validate-basic.cjs",
|
|
|
|
"import": "./lib/icon-set/validate-basic.mjs"
|
|
|
|
},
|
2022-06-19 14:12:26 +00:00
|
|
|
"./lib/icon/defaults": {
|
|
|
|
"require": "./lib/icon/defaults.cjs",
|
|
|
|
"import": "./lib/icon/defaults.mjs"
|
2021-09-16 21:07:22 +00:00
|
|
|
},
|
|
|
|
"./lib/icon/merge": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon/merge.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon/merge.mjs"
|
|
|
|
},
|
|
|
|
"./lib/icon/name": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon/name.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon/name.mjs"
|
|
|
|
},
|
2022-06-19 14:12:26 +00:00
|
|
|
"./lib/icon/transformations": {
|
|
|
|
"require": "./lib/icon/transformations.cjs",
|
|
|
|
"import": "./lib/icon/transformations.mjs"
|
|
|
|
},
|
2021-11-13 19:25:38 +00:00
|
|
|
"./lib": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/index.cjs",
|
2021-11-13 19:25:38 +00:00
|
|
|
"import": "./lib/index.mjs"
|
|
|
|
},
|
|
|
|
"./lib/index": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/index.cjs",
|
2021-11-13 19:25:38 +00:00
|
|
|
"import": "./lib/index.mjs"
|
|
|
|
},
|
2021-12-11 22:10:26 +00:00
|
|
|
"./lib/loader/custom": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/loader/custom.cjs",
|
2021-12-11 22:10:26 +00:00
|
|
|
"import": "./lib/loader/custom.mjs"
|
|
|
|
},
|
2022-03-02 20:11:50 +00:00
|
|
|
"./lib/loader/fs": {
|
|
|
|
"require": "./lib/loader/fs.cjs",
|
|
|
|
"import": "./lib/loader/fs.mjs",
|
2022-03-03 23:36:30 +00:00
|
|
|
"types": "./lib/loader/fs.d.ts"
|
|
|
|
},
|
|
|
|
"./lib/loader/install-pkg": {
|
|
|
|
"require": "./lib/loader/install-pkg.cjs",
|
|
|
|
"import": "./lib/loader/install-pkg.mjs",
|
|
|
|
"types": "./lib/loader/install-pkg.d.ts"
|
|
|
|
},
|
2022-02-26 14:12:13 +00:00
|
|
|
"./lib/loader/loader": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/loader/loader.cjs",
|
2022-02-26 14:12:13 +00:00
|
|
|
"import": "./lib/loader/loader.mjs"
|
|
|
|
},
|
2022-01-10 16:08:40 +00:00
|
|
|
"./lib/loader/modern": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/loader/modern.cjs",
|
2022-01-10 16:08:40 +00:00
|
|
|
"import": "./lib/loader/modern.mjs"
|
|
|
|
},
|
2022-03-03 23:36:30 +00:00
|
|
|
"./lib/loader/node-loader": {
|
|
|
|
"require": "./lib/loader/node-loader.cjs",
|
|
|
|
"import": "./lib/loader/node-loader.mjs",
|
|
|
|
"types": "./lib/loader/node-loader.d.ts"
|
|
|
|
},
|
|
|
|
"./lib/loader/node-loaders": {
|
|
|
|
"require": "./lib/loader/node-loaders.cjs",
|
|
|
|
"import": "./lib/loader/node-loaders.mjs",
|
|
|
|
"types": "./lib/loader/node-loaders.d.ts"
|
|
|
|
},
|
2021-12-11 22:10:26 +00:00
|
|
|
"./lib/loader/types": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/loader/types.cjs",
|
2021-12-11 22:10:26 +00:00
|
|
|
"import": "./lib/loader/types.mjs"
|
|
|
|
},
|
|
|
|
"./lib/loader/utils": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/loader/utils.cjs",
|
2021-12-11 22:10:26 +00:00
|
|
|
"import": "./lib/loader/utils.mjs"
|
2022-03-03 23:36:30 +00:00
|
|
|
},
|
|
|
|
"./lib/loader/warn": {
|
|
|
|
"require": "./lib/loader/warn.cjs",
|
|
|
|
"import": "./lib/loader/warn.mjs",
|
|
|
|
"types": "./lib/loader/warn.d.ts"
|
|
|
|
},
|
2022-01-09 20:05:18 +00:00
|
|
|
"./lib/misc/strings": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/misc/strings.cjs",
|
2022-01-09 20:05:18 +00:00
|
|
|
"import": "./lib/misc/strings.mjs"
|
|
|
|
},
|
2022-06-23 18:23:41 +00:00
|
|
|
"./lib/misc/objects": {
|
|
|
|
"require": "./lib/misc/objects.cjs",
|
|
|
|
"import": "./lib/misc/objects.mjs"
|
|
|
|
},
|
2021-09-16 21:07:22 +00:00
|
|
|
"./lib/svg/build": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/svg/build.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/svg/build.mjs"
|
|
|
|
},
|
2022-02-26 17:33:01 +00:00
|
|
|
"./lib/svg/encode-svg-for-css": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/svg/encode-svg-for-css.cjs",
|
2022-02-26 17:33:01 +00:00
|
|
|
"import": "./lib/svg/encode-svg-for-css.mjs"
|
|
|
|
},
|
2022-04-10 07:45:05 +00:00
|
|
|
"./lib/svg/html": {
|
|
|
|
"require": "./lib/svg/html.cjs",
|
|
|
|
"import": "./lib/svg/html.mjs"
|
|
|
|
},
|
2021-09-16 21:07:22 +00:00
|
|
|
"./lib/svg/id": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/svg/id.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/svg/id.mjs"
|
|
|
|
},
|
|
|
|
"./lib/svg/size": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/svg/size.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/svg/size.mjs"
|
2022-03-21 16:54:25 +00:00
|
|
|
},
|
|
|
|
"./lib/svg/trim": {
|
|
|
|
"require": "./lib/svg/trim.cjs",
|
|
|
|
"import": "./lib/svg/trim.mjs"
|
2022-04-10 10:47:25 +00:00
|
|
|
},
|
|
|
|
"./lib/svg/url": {
|
|
|
|
"require": "./lib/svg/url.cjs",
|
|
|
|
"import": "./lib/svg/url.mjs"
|
2022-03-04 10:27:41 +00:00
|
|
|
}
|
2022-03-03 23:36:30 +00:00
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"lib",
|
2022-03-04 11:00:20 +00:00
|
|
|
"*.d.ts"
|
2022-03-03 23:36:30 +00:00
|
|
|
],
|
|
|
|
"dependencies": {
|
|
|
|
"@antfu/install-pkg": "^0.1.0",
|
2022-06-19 19:25:00 +00:00
|
|
|
"@antfu/utils": "^0.5.2",
|
2022-06-19 17:58:50 +00:00
|
|
|
"@iconify/types": "workspace:^",
|
2022-03-22 09:49:15 +00:00
|
|
|
"debug": "^4.3.4",
|
|
|
|
"kolorist": "^1.5.1",
|
2022-09-07 17:06:23 +00:00
|
|
|
"local-pkg": "^0.4.2"
|
2022-01-09 20:05:18 +00:00
|
|
|
},
|
2021-05-24 10:25:02 +00:00
|
|
|
"devDependencies": {
|
2022-09-07 17:06:23 +00:00
|
|
|
"@iconify-json/flat-color-icons": "^1.1.2",
|
2021-12-11 22:10:26 +00:00
|
|
|
"@types/debug": "^4.1.7",
|
2022-09-07 17:06:23 +00:00
|
|
|
"@types/jest": "^29.0.0",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
|
|
|
"eslint": "^8.23.0",
|
2022-03-04 00:51:31 +00:00
|
|
|
"eslint-config-prettier": "^8.5.0",
|
2022-09-07 17:06:23 +00:00
|
|
|
"eslint-plugin-prettier": "^4.2.1",
|
2021-09-16 21:07:22 +00:00
|
|
|
"rimraf": "^3.0.2",
|
2022-09-07 17:06:23 +00:00
|
|
|
"typescript": "^4.8.2",
|
|
|
|
"unbuild": "^0.8.10",
|
|
|
|
"vitest": "^0.23.1"
|
2021-05-24 10:25:02 +00:00
|
|
|
}
|
|
|
|
}
|