mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 01:07:01 +08:00
Since we have the major version jump, we needed to update quite
a few things to make this work:
1. rollup4 ships with native binaries. We can't check them into
our node_modules for all platforms. Luckily they also ship a
a wasm version. This requires us to adjust the 'binary' path
to `node_modules/@rollup/wasm-node/dist/bin/rollup` instead.
2. rollup4 is more strict when it comes to ES modules vs
CommonJS. We adjust this by renaming the rollup config files.
3. Some plugins got deprecated so we had to replace them with
the newer versions (source maps and terser).
Bug: None
Change-Id: If13d590c8185db6ad85b3992d0a869111909dc8c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5999255
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
99 lines
3.1 KiB
JSON
99 lines
3.1 KiB
JSON
{
|
|
"name": "astring",
|
|
"version": "1.9.0",
|
|
"description": "JavaScript code generator from an ESTree-compliant AST.",
|
|
"main": "./dist/astring.js",
|
|
"module": "./dist/astring.mjs",
|
|
"types": "./astring.d.ts",
|
|
"exports": {
|
|
"types": "./astring.d.ts",
|
|
"import": "./dist/astring.mjs",
|
|
"require": "./dist/astring.js",
|
|
"browser": "./dist/astring.min.js"
|
|
},
|
|
"bin": {
|
|
"astring": "bin/astring"
|
|
},
|
|
"scripts": {
|
|
"build": "babel src/astring.js --out-file dist/astring.js --source-maps --no-comments && cp src/astring.js dist/astring.mjs",
|
|
"build:watch": "babel src/astring.js --out-file dist/astring.js --source-maps --no-comments --watch",
|
|
"build:minified": "cross-env BABEL_MODE=minified babel src/astring.js --out-file dist/astring.min.js --source-maps --no-comments",
|
|
"build:demo": "npm run build:minified && cp dist/astring.min.* docs/demo/",
|
|
"prepare": "npm run build && npm run build:minified",
|
|
"test": "npm run eslint && npm run prettier:check && npm run build:minified && npm run test:coverage",
|
|
"dev": "ava --watch src/tests/astring.js",
|
|
"test:coverage": "c8 --reporter=html --reporter=text --reporter=lcov --include='src/*.js' --exclude='src/tests/**/*.js' ava src/tests/astring.js",
|
|
"test:scripts": "npm run test:scripts:build && ava src/tests/_scripts.js",
|
|
"test:performance": "ava src/tests/performance.js",
|
|
"benchmark": "node --require esm ./src/tests/benchmark.js",
|
|
"eslint": "eslint src",
|
|
"prettier": "prettier --write \"{src,scripts}/**/*.js\" \"bin/astring\"",
|
|
"prettier:check": "prettier --list-different \"{src,scripts}/**/*.js\" \"bin/astring\"",
|
|
"prepush": "npm test",
|
|
"release": "standard-version",
|
|
"deploy": "git push --follow-tags origin main && npm publish"
|
|
},
|
|
"keywords": [
|
|
"ast",
|
|
"codegen",
|
|
"code generator",
|
|
"estree",
|
|
"astravel"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/davidbonnet/astring.git"
|
|
},
|
|
"author": "David Bonnet <david@bonnet.cc>",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.14.3",
|
|
"@babel/core": "^7.14.3",
|
|
"@babel/generator": "^7.14.3",
|
|
"@babel/parser": "^7.16.4",
|
|
"@babel/preset-env": "^7.14.4",
|
|
"acorn": "^8.6.0",
|
|
"acorn-import-attributes": "^1.9.5",
|
|
"astravel": "^0.5.0",
|
|
"ava": "^3.15.0",
|
|
"babel-preset-minify": "^0.5.1",
|
|
"benchmark": "^2.1.4",
|
|
"buble": "^0.20.0",
|
|
"c8": "^7.10.0",
|
|
"cross-env": "^7.0.3",
|
|
"escodegen": "^2.0.0",
|
|
"eslint": "^8.3.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-import": "^2.25.3",
|
|
"esm": "^3.2.25",
|
|
"glob": "^7.1.7",
|
|
"husky": "^6.0.0",
|
|
"lodash": "^4.17.21",
|
|
"meriyah": "^4.1.5",
|
|
"normalize-newline": "^3.0.0",
|
|
"prettier": "^2.4.1",
|
|
"standard-version": "^9.3.0",
|
|
"sucrase": "^3.18.1",
|
|
"uglify-js": "^3.13.8"
|
|
},
|
|
"prettier": {
|
|
"printWidth": 80,
|
|
"tabWidth": 2,
|
|
"useTabs": false,
|
|
"semi": false,
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"bracketSpacing": true
|
|
},
|
|
"ava": {
|
|
"files": [
|
|
"src/**/tests/astring.js",
|
|
"src/**/tests/performance.js"
|
|
],
|
|
"require": [
|
|
"esm"
|
|
]
|
|
},
|
|
"esm": "auto"
|
|
}
|