mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-05 19:41:12 +08:00
This also adds Python-2.0 to the list of accepted licenses. Lastly, it fixes a bug where the package.json files were incorrectly reordered. For the `exports` of a particular package, the order that the entrypoints are defined in is crucial. Therefore, we should not alter the order of entrypoints and instead maintain the originally defined ordering. We can use an `OrderedDict` to ensure that Python always loads the JSON files in the same order. DISABLE_THIRD_PARTY_CHECK=NPM update R=jacktfranklin@chromium.org Bug: none Change-Id: I5a309782de6015edea6ba3b502aa0db1f008d973 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2692909 Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
150 lines
3.0 KiB
JSON
150 lines
3.0 KiB
JSON
{
|
|
"name": "terser",
|
|
"description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",
|
|
"homepage": "https://terser.org",
|
|
"author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
|
|
"license": "BSD-2-Clause",
|
|
"version": "5.3.8",
|
|
"engines": {
|
|
"node": ">=10"
|
|
},
|
|
"maintainers": [
|
|
"F\u00e1bio Santos <fabiosantosart@gmail.com>"
|
|
],
|
|
"repository": "https://github.com/terser/terser",
|
|
"main": "dist/bundle.min.js",
|
|
"type": "module",
|
|
"module": "./main.js",
|
|
"exports": {
|
|
".": [
|
|
{
|
|
"import": "./main.js",
|
|
"require": "./dist/bundle.min.js"
|
|
},
|
|
"./dist/bundle.min.js"
|
|
],
|
|
"./package": "./package.json",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"types": "tools/terser.d.ts",
|
|
"bin": {
|
|
"terser": "bin/terser"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"lib",
|
|
"tools",
|
|
"LICENSE",
|
|
"README.md",
|
|
"CHANGELOG.md",
|
|
"PATRONS.md",
|
|
"main.js"
|
|
],
|
|
"dependencies": {
|
|
"commander": "^2.20.0",
|
|
"source-map": "~0.7.2",
|
|
"source-map-support": "~0.5.19"
|
|
},
|
|
"devDependencies": {
|
|
"@ls-lint/ls-lint": "^1.9.2",
|
|
"acorn": "^7.4.0",
|
|
"astring": "^1.4.1",
|
|
"eslint": "^7.0.0",
|
|
"eslump": "^2.0.0",
|
|
"esm": "^3.2.25",
|
|
"mocha": "^8.0.0",
|
|
"pre-commit": "^1.2.2",
|
|
"rimraf": "^3.0.0",
|
|
"rollup": "2.0.6",
|
|
"semver": "^7.1.3"
|
|
},
|
|
"scripts": {
|
|
"test": "node test/compress.js && mocha test/mocha",
|
|
"test:compress": "node test/compress.js",
|
|
"test:mocha": "mocha test/mocha",
|
|
"lint": "eslint lib",
|
|
"lint-fix": "eslint --fix lib",
|
|
"ls-lint": "ls-lint",
|
|
"build": "rimraf dist/bundle* && rollup --config --silent",
|
|
"prepare": "npm run build",
|
|
"postversion": "echo 'Remember to update the changelog!'"
|
|
},
|
|
"keywords": [
|
|
"uglify",
|
|
"terser",
|
|
"uglify-es",
|
|
"uglify-js",
|
|
"minify",
|
|
"minifier",
|
|
"javascript",
|
|
"ecmascript",
|
|
"es5",
|
|
"es6",
|
|
"es7",
|
|
"es8",
|
|
"es2015",
|
|
"es2016",
|
|
"es2017",
|
|
"async",
|
|
"await"
|
|
],
|
|
"eslintConfig": {
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": "2020"
|
|
},
|
|
"env": {
|
|
"node": true,
|
|
"browser": true,
|
|
"es2020": true
|
|
},
|
|
"globals": {
|
|
"describe": false,
|
|
"it": false,
|
|
"require": false,
|
|
"global": false,
|
|
"process": false
|
|
},
|
|
"rules": {
|
|
"brace-style": [
|
|
"error",
|
|
"1tbs",
|
|
{
|
|
"allowSingleLine": true
|
|
}
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double",
|
|
"avoid-escape"
|
|
],
|
|
"no-debugger": "error",
|
|
"no-undef": "error",
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
"varsIgnorePattern": "^_$"
|
|
}
|
|
],
|
|
"no-tabs": "error",
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"no-extra-semi": "error",
|
|
"no-irregular-whitespace": "error",
|
|
"space-before-blocks": [
|
|
"error",
|
|
"always"
|
|
]
|
|
}
|
|
},
|
|
"pre-commit": [
|
|
"build",
|
|
"lint-fix",
|
|
"ls-lint",
|
|
"test"
|
|
]
|
|
}
|