122 lines
4.5 KiB
JSON
122 lines
4.5 KiB
JSON
{
|
|
"name": "esprima-next",
|
|
"description": "ECMAScript parsing infrastructure for multipurpose analysis",
|
|
"homepage": "https://github.com/node-projects/esprima-next/",
|
|
"main": "./dist/esprima.js",
|
|
"module": "./dist/esm/esprima.js",
|
|
"types": "./dist/esm/esprima.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"require": "./dist/esprima.js",
|
|
"import": "./dist/esm/esprima.js",
|
|
"default": "./dist/esprima.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"esparse": "./bin/esparse.js",
|
|
"esvalidate": "./bin/esvalidate.js"
|
|
},
|
|
"version": "5.8.4",
|
|
"files": [
|
|
"bin",
|
|
"dist/esprima.js",
|
|
"dist/esm/esprima.js",
|
|
"dist/esm/esprima.d.ts"
|
|
],
|
|
"engines": {
|
|
"node": ">=12"
|
|
},
|
|
"author": {
|
|
"name": "Ariya Hidayat",
|
|
"email": "ariya.hidayat@gmail.com"
|
|
},
|
|
"maintainers": [
|
|
{
|
|
"name": "Ariya Hidayat",
|
|
"email": "ariya.hidayat@gmail.com",
|
|
"web": "http://ariya.ofilabs.com"
|
|
}
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/node-projects/esprima-next.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/node-projects/esprima-next/issues"
|
|
},
|
|
"license": "BSD-2-Clause",
|
|
"devDependencies": {
|
|
"@types/jest": "^28.1.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
"@typescript-eslint/parser": "^5.27.0",
|
|
"codecov.io": "~0.1.6",
|
|
"crlf": "^1.1.1",
|
|
"eslint": "^8.17.0",
|
|
"eslint-plugin-esprima-internal": "file:eslint",
|
|
"everything.js": "~1.0.3",
|
|
"glob": "~8.0.3",
|
|
"istanbul": "~0.4.0",
|
|
"jest": "^28.1.0",
|
|
"json-diff": "~0.9.0",
|
|
"mocha": "~10.0.0",
|
|
"node-tick-processor": "~0.0.2",
|
|
"regenerate": "~1.4.2",
|
|
"replace-in-files-cli": "^2.0.0",
|
|
"results-interpreter": "~1.0.0",
|
|
"rollup": "^2.75.5",
|
|
"rollup-plugin-dts": "^4.2.2",
|
|
"temp": "~0.9.4",
|
|
"test262-stream": "~1.4.0",
|
|
"ts-jest": "^28.0.4",
|
|
"ts-node": "^10.8.1",
|
|
"typescript": "~4.7.3",
|
|
"typescript-formatter": "~7.2.2",
|
|
"unicode-12.1.0": "^0.8.0",
|
|
"webpack": "~5.73.0",
|
|
"webpack-cli": "^4.9.2"
|
|
},
|
|
"keywords": [
|
|
"ast",
|
|
"ecmascript",
|
|
"esprima",
|
|
"javascript",
|
|
"parser",
|
|
"syntax"
|
|
],
|
|
"scripts": {
|
|
"prepare": "test -f esprima/dist/esprima.js || npm run test",
|
|
"check-version": "node test/check-version.js",
|
|
"lint-code": "eslint src/*.ts",
|
|
"code-style": "tsfmt --verify src/*.ts && tsfmt --verify test/*.js",
|
|
"format-code": "tsfmt -r src/*.ts && tsfmt -r test/*.js",
|
|
"static-analysis": "npm run check-version && npm run lint-code && npm run code-style",
|
|
"hostile-env-tests": "node test/hostile-environment-tests.js",
|
|
"unit-tests": "node test/unit-tests.js",
|
|
"api-tests": "mocha -R dot test/api-tests.js",
|
|
"grammar-tests": "node test/grammar-tests.js",
|
|
"regression-tests": "node test/regression-tests.js",
|
|
"test-262": "npm install git+https://git@github.com/tc39/test262.git#08a9fc2 && node test/test-262.js",
|
|
"esm-tests": "node test/test-sideEffects/test.js",
|
|
"all-tests": "npm run esm-tests && npm run verify-line-ending && npm run generate-fixtures && npm run unit-tests && npm run api-tests && npm run grammar-tests && npm run regression-tests && npm run hostile-env-tests",
|
|
"verify-line-ending": "node test/verify-line-ending.js",
|
|
"generate-fixtures": "node tools/generate-fixtures.js",
|
|
"analyze-coverage": "istanbul cover test/unit-tests.js",
|
|
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100",
|
|
"dynamic-analysis": "npm run analyze-coverage && npm run check-coverage",
|
|
"watch": "tsc --project src/es.tsconfig.json --watch",
|
|
"compile": "tsc --build src/es.tsconfig.json && rollup -c && tsc --build src/cjs.tsconfig.json && webpack && node tools/fixupbundle.js",
|
|
"test": "npm run compile && npm run all-tests && npm run jest",
|
|
"jest": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
"testOld": "npm run compile && npm run all-tests && npm run static-analysis && npm run dynamic-analysis",
|
|
"prepublish": "npm run compile",
|
|
"profile": "node --prof test/profile.js && mv isolate*.log v8.log && node-tick-processor",
|
|
"benchmark-parser": "node -expose_gc test/benchmark-parser.js",
|
|
"benchmark-tokenizer": "node --expose_gc test/benchmark-tokenizer.js",
|
|
"benchmark": "npm run benchmark-parser && npm run benchmark-tokenizer",
|
|
"codecov": "istanbul report cobertura && codecov < ./coverage/cobertura-coverage.xml",
|
|
"downstream": "node test/downstream.js",
|
|
"generate-regex": "node tools/generate-identifier-regex.js",
|
|
"generate-xhtml-entities": "node tools/generate-xhtml-entities.js"
|
|
}
|
|
}
|