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-03-14 16:11:15 +00:00
|
|
|
"version": "1.0.24",
|
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": {
|
2021-09-20 20:53:49 +00:00
|
|
|
"clean": "rimraf lib tests-compiled tsconfig.tsbuildinfo",
|
2022-03-14 14:39:40 +00:00
|
|
|
"lint": "eslint --fix src/**/*.ts",
|
2021-09-16 21:07:22 +00:00
|
|
|
"prebuild": "npm run lint && npm run clean",
|
2022-03-14 15:17:29 +00:00
|
|
|
"build": "unbuild",
|
2021-09-20 20:53:49 +00:00
|
|
|
"test:jasmine": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jasmine",
|
2022-03-14 16:11:15 +00:00
|
|
|
"test:jest-cjs": "npm run build && jest --clearCache && jest --config=jest.config.cjs",
|
|
|
|
"test:jest-esm": "npm run build && jest --clearCache && cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --config=jest.config.mjs",
|
|
|
|
"test": "npm run test:jest-cjs && npm run test:jest-esm && npm run test:jasmine",
|
|
|
|
"vitest:cjs": "npm run build && vitest --config vitest.config.cjs",
|
|
|
|
"vitest:esm": "npm run build && vitest --config vitest.config.mjs",
|
2022-03-14 15:26:07 +00:00
|
|
|
"vitest": "npm run vitest:cjs && npm run vitest:esm"
|
2022-03-04 11:00:20 +00:00
|
|
|
},
|
2022-03-03 23:36:30 +00:00
|
|
|
"sideEffects": false,
|
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"
|
|
|
|
},
|
|
|
|
"./lib/customisations/compare": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/customisations/compare.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/customisations/compare.mjs"
|
|
|
|
},
|
2021-09-20 09:59:16 +00:00
|
|
|
"./lib/customisations": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/customisations/index.cjs",
|
2021-09-20 09:59:16 +00:00
|
|
|
"import": "./lib/customisations/index.mjs"
|
|
|
|
},
|
2021-09-16 21:07:22 +00:00
|
|
|
"./lib/customisations/index": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/customisations/index.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/customisations/index.mjs"
|
|
|
|
},
|
|
|
|
"./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"
|
|
|
|
},
|
|
|
|
"./lib/customisations/shorthand": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/customisations/shorthand.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/customisations/shorthand.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"
|
|
|
|
},
|
|
|
|
"./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"
|
|
|
|
},
|
2021-09-20 09:59:16 +00:00
|
|
|
"./lib/icon": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon/index.cjs",
|
2021-09-20 09:59:16 +00:00
|
|
|
"import": "./lib/icon/index.mjs"
|
|
|
|
},
|
2021-09-16 21:07:22 +00:00
|
|
|
"./lib/icon/index": {
|
2022-03-02 20:11:50 +00:00
|
|
|
"require": "./lib/icon/index.cjs",
|
2021-09-16 21:07:22 +00:00
|
|
|
"import": "./lib/icon/index.mjs"
|
|
|
|
},
|
|
|
|
"./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"
|
|
|
|
},
|
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"
|
|
|
|
},
|
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"
|
|
|
|
},
|
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-04 10:27:41 +00:00
|
|
|
}
|
2022-03-03 23:36:30 +00:00
|
|
|
},
|
|
|
|
"main": "lib/index.cjs",
|
|
|
|
"module": "lib/index.mjs",
|
|
|
|
"types": "lib/index.d.ts",
|
|
|
|
"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",
|
|
|
|
"@antfu/utils": "^0.3.0",
|
2021-12-09 21:12:00 +00:00
|
|
|
"@iconify/types": "^1.0.12",
|
2022-03-02 20:11:50 +00:00
|
|
|
"debug": "^4.3.3",
|
2022-03-03 23:36:30 +00:00
|
|
|
"kolorist": "^1.5.0",
|
|
|
|
"local-pkg": "^0.4.0"
|
2022-01-09 20:05:18 +00:00
|
|
|
},
|
2021-05-24 10:25:02 +00:00
|
|
|
"devDependencies": {
|
2022-02-26 15:28:20 +00:00
|
|
|
"@iconify-json/flat-color-icons": "^1.0.2",
|
2021-12-11 22:10:26 +00:00
|
|
|
"@types/debug": "^4.1.7",
|
2021-09-20 20:53:49 +00:00
|
|
|
"@types/jest": "^27.0.1",
|
2022-03-04 00:51:31 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
2021-09-20 20:53:49 +00:00
|
|
|
"cross-env": "^7.0.3",
|
2021-09-16 21:07:22 +00:00
|
|
|
"eslint": "^7.32.0",
|
2022-03-04 00:51:31 +00:00
|
|
|
"eslint-config-prettier": "^8.5.0",
|
2021-09-20 20:53:49 +00:00
|
|
|
"eslint-plugin-jasmine": "^4.1.2",
|
2022-03-04 00:51:31 +00:00
|
|
|
"eslint-plugin-prettier": "^4.0.0",
|
2021-09-20 20:53:49 +00:00
|
|
|
"jasmine": "^3.9.0",
|
|
|
|
"jest": "^27.2.1",
|
2021-09-16 21:07:22 +00:00
|
|
|
"rimraf": "^3.0.2",
|
2021-09-20 20:53:49 +00:00
|
|
|
"ts-jest": "^27.0.5",
|
2022-03-03 23:36:30 +00:00
|
|
|
"ts-node": "^10.6.0",
|
2022-03-02 20:11:50 +00:00
|
|
|
"typescript": "^4.4.3",
|
2022-03-04 11:00:20 +00:00
|
|
|
"unbuild": "^0.6.9",
|
|
|
|
"vitest": "^0.5.9"
|
2021-05-24 10:25:02 +00:00
|
|
|
}
|
|
|
|
}
|