80 lines
1.8 KiB
JSON
80 lines
1.8 KiB
JSON
{
|
|
"name": "python-ast",
|
|
"version": "0.1.0",
|
|
"description": "Python Parser for JavaScript/TypeScript, based on antlr4ts",
|
|
"main": "dist/index.js",
|
|
"typings": "dist/index.d.ts",
|
|
"license": "MIT",
|
|
"repository": "https://github.com/lexanth/python-ast",
|
|
"author": "Alex Anthony <alex.anthony2@gmail.com>",
|
|
"keywords": [
|
|
"ast",
|
|
"python",
|
|
"parser",
|
|
"antlr",
|
|
"antlr4ts",
|
|
"abstract syntax tree",
|
|
"parse python",
|
|
"python parser"
|
|
],
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "ts-node build.ts",
|
|
"update": "ts-node update.ts",
|
|
"format": "prettier --write build.ts update.ts src/**.ts **/*.json",
|
|
"prepublish": "yarn build",
|
|
"precommit": "lint-staged",
|
|
"postcommit": "git update-index --again",
|
|
"test": "jest"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^26.0.4",
|
|
"@types/node": "^14.0.22",
|
|
"@types/node-fetch": "^2.5.7",
|
|
"@types/rimraf": "^3.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^3.8.0",
|
|
"@typescript-eslint/parser": "^3.8.0",
|
|
"antlr4ts-cli": "^0.5.0-alpha.3",
|
|
"eslint": "^7.6.0",
|
|
"husky": "^4.2.5",
|
|
"jest": "^26.1.0",
|
|
"lint-staged": "^10.2.11",
|
|
"node-fetch": "^2.6.0",
|
|
"prettier": "^2.0.5",
|
|
"rimraf": "^3.0.2",
|
|
"ts-jest": "^26.1.1",
|
|
"ts-node": "^8.10.2",
|
|
"typescript": "^3.9.6"
|
|
},
|
|
"dependencies": {
|
|
"antlr4ts": "^0.5.0-alpha.3"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,json}": [
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"*.ts": [
|
|
"prettier --write",
|
|
"eslint --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"jest": {
|
|
"transform": {
|
|
"^.+\\.tsx?$": "ts-jest"
|
|
},
|
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json",
|
|
"node"
|
|
]
|
|
}
|
|
}
|