simple-icons/package.json

135 lines
3.6 KiB
JSON
Raw Normal View History

2017-05-10 15:08:35 +00:00
{
"name": "simple-icons",
2024-04-21 00:25:27 +00:00
"version": "11.13.0",
2017-05-10 15:08:35 +00:00
"description": "SVG icons for popular brands https://simpleicons.org",
"homepage": "https://simpleicons.org",
2017-05-10 15:08:35 +00:00
"keywords": [
"svg",
"icons"
],
export bundled icons from one entry point and add types (#6767) * export all icons from a single file (#6189) * fix: revert formatting, add exports to package.json * feat: generate icons.js and add relevant exports field * add minifyAndWrite Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix: minifyAndWrite build * add type: commonjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * simplify exports Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add "require" in exports * place objects directly in barrel file * write exports minified Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix formatting Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * refactor slugToVariableName code into a function * fix slugToVariableName * change prefix to "si" * move slugToVariableName to local helper functions * unignore icons.js and icons.mjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * feat: add types (#6580) * feat: add types * fix linting error * export default from types/index.d.ts * minify * revert formatting changes * revert formatting change * change paths from types/index.d.ts to index.d.ts * mark icons.get as deprecated * move type alias to another file * update readme * update readme.md Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * update typescript usage section Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix conflicts * Apply suggestions from code review Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add writeTs function Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-10-28 23:16:34 +00:00
"type": "commonjs",
"main": "index.js",
export bundled icons from one entry point and add types (#6767) * export all icons from a single file (#6189) * fix: revert formatting, add exports to package.json * feat: generate icons.js and add relevant exports field * add minifyAndWrite Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix: minifyAndWrite build * add type: commonjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * simplify exports Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add "require" in exports * place objects directly in barrel file * write exports minified Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix formatting Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * refactor slugToVariableName code into a function * fix slugToVariableName * change prefix to "si" * move slugToVariableName to local helper functions * unignore icons.js and icons.mjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * feat: add types (#6580) * feat: add types * fix linting error * export default from types/index.d.ts * minify * revert formatting changes * revert formatting change * change paths from types/index.d.ts to index.d.ts * mark icons.get as deprecated * move type alias to another file * update readme * update readme.md Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * update typescript usage section Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix conflicts * Apply suggestions from code review Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add writeTs function Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-10-28 23:16:34 +00:00
"types": "index.d.ts",
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"module": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"require": {
"types": "./index.d.ts",
"default": "./index.js"
},
"default": {
"types": "./index.d.ts",
"default": "./index.js"
}
},
export bundled icons from one entry point and add types (#6767) * export all icons from a single file (#6189) * fix: revert formatting, add exports to package.json * feat: generate icons.js and add relevant exports field * add minifyAndWrite Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix: minifyAndWrite build * add type: commonjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * simplify exports Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add "require" in exports * place objects directly in barrel file * write exports minified Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix formatting Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * refactor slugToVariableName code into a function * fix slugToVariableName * change prefix to "si" * move slugToVariableName to local helper functions * unignore icons.js and icons.mjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * feat: add types (#6580) * feat: add types * fix linting error * export default from types/index.d.ts * minify * revert formatting changes * revert formatting change * change paths from types/index.d.ts to index.d.ts * mark icons.get as deprecated * move type alias to another file * update readme * update readme.md Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * update typescript usage section Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix conflicts * Apply suggestions from code review Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add writeTs function Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-10-28 23:16:34 +00:00
"./icons": {
"import": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"module": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"require": {
"types": "./index.d.ts",
"default": "./index.js"
},
"default": {
"types": "./index.d.ts",
"default": "./index.js"
}
export bundled icons from one entry point and add types (#6767) * export all icons from a single file (#6189) * fix: revert formatting, add exports to package.json * feat: generate icons.js and add relevant exports field * add minifyAndWrite Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix: minifyAndWrite build * add type: commonjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * simplify exports Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add "require" in exports * place objects directly in barrel file * write exports minified Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix formatting Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * refactor slugToVariableName code into a function * fix slugToVariableName * change prefix to "si" * move slugToVariableName to local helper functions * unignore icons.js and icons.mjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * feat: add types (#6580) * feat: add types * fix linting error * export default from types/index.d.ts * minify * revert formatting changes * revert formatting change * change paths from types/index.d.ts to index.d.ts * mark icons.get as deprecated * move type alias to another file * update readme * update readme.md Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * update typescript usage section Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix conflicts * Apply suggestions from code review Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add writeTs function Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-10-28 23:16:34 +00:00
},
"./icons/*": [
"./icons/*"
2023-04-19 13:23:13 +00:00
],
"./sdk": {
"import": {
"types": "./sdk.d.ts",
"default": "./sdk.mjs"
},
"module": {
"types": "./sdk.d.ts",
"default": "./sdk.mjs"
},
"require": {
"types": "./sdk.d.ts",
"default": "./sdk.js"
},
"default": {
"types": "./sdk.d.ts",
"default": "./sdk.js"
}
}
export bundled icons from one entry point and add types (#6767) * export all icons from a single file (#6189) * fix: revert formatting, add exports to package.json * feat: generate icons.js and add relevant exports field * add minifyAndWrite Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix: minifyAndWrite build * add type: commonjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * simplify exports Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add "require" in exports * place objects directly in barrel file * write exports minified Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix formatting Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * refactor slugToVariableName code into a function * fix slugToVariableName * change prefix to "si" * move slugToVariableName to local helper functions * unignore icons.js and icons.mjs Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * feat: add types (#6580) * feat: add types * fix linting error * export default from types/index.d.ts * minify * revert formatting changes * revert formatting change * change paths from types/index.d.ts to index.d.ts * mark icons.get as deprecated * move type alias to another file * update readme * update readme.md Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * update typescript usage section Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * fix conflicts * Apply suggestions from code review Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com> * add writeTs function Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-10-28 23:16:34 +00:00
},
"sideEffects": false,
2017-09-17 02:17:42 +00:00
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/simple-icons/simple-icons.git"
},
"bugs": {
"url": "https://github.com/simple-icons/simple-icons/issues"
},
"author": "Simple Icons Collaborators",
"license": "CC0-1.0",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/simple-icons"
},
2017-09-11 19:53:21 +00:00
"devDependencies": {
"@inquirer/prompts": "4.3.0",
"chalk": "5.3.0",
2024-03-14 02:01:06 +00:00
"editorconfig-checker": "5.1.5",
"esbuild": "0.19.4",
2024-03-24 17:38:18 +00:00
"eslint-plugin-import": "2.29.1",
"fake-diff": "1.0.0",
"fast-fuzzy": "1.12.0",
"get-relative-luminance": "1.0.0",
2024-03-14 02:01:06 +00:00
"husky": "9.0.11",
"inquirer-autocomplete-standalone": "0.8.1",
"jsonschema": "1.4.1",
"markdown-link-check": "3.11.2",
"mocha": "10.2.0",
"named-html-entities-json": "1.0.0",
2024-03-14 02:01:06 +00:00
"svg-path-bbox": "1.2.5",
"svg-path-segments": "1.0.0",
"svglint": "2.4.0",
"svgo": "3.0.2",
2023-08-06 01:07:07 +00:00
"svgpath": "2.6.0",
2024-03-24 17:38:18 +00:00
"typescript": "5.2.2",
"xo": "0.58.0"
},
"scripts": {
"build": "node scripts/build/package.js",
"clean": "node scripts/build/clean.js",
"format": "npm run prettier -- --write && npm run xo:fix",
"xo:fix": "xo --fix",
"prettier": "prettier --cache --ignore-unknown \"**/*.!(js|jsx|mjs|cjs|ts|tsx|mts|cts|svg)\"",
2024-03-24 17:38:18 +00:00
"lint": "npm run ourlint && npm run prettierlint && npm run jslint && npm run jsonlint && npm run svglint && npm run wslint",
"ourlint": "node scripts/lint/ourlint.js",
"prettierlint": "npm run prettier -- --check",
2024-03-24 17:38:18 +00:00
"jslint": "xo",
"jsonlint": "node scripts/lint/jsonlint.js",
"svglint": "svglint --ci --config svglint.config.mjs icons/*.svg",
2021-11-25 08:08:34 +00:00
"wslint": "editorconfig-checker",
"prepare": "husky",
"prepublishOnly": "npm run build",
"postpublish": "npm run clean",
"test": "mocha tests --reporter tests/min-reporter.cjs --inline-diffs",
2018-09-11 10:32:16 +00:00
"pretest": "npm run prepublishOnly",
"posttest": "npm run postpublish",
"get-filename": "node scripts/get-filename.js",
"add-icon-data": "node scripts/add-icon-data.js"
},
"engines": {
"node": ">=0.12.18"
2017-09-11 19:53:21 +00:00
}
}