mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
07db08cf43
This brings it all in line. It seems to work fine for me. I am doing this because I can't seem to cross-build with node.js v12 on macOS+arm64. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8713 GitOrigin-RevId: 06d7daa4176e99584ab88146a3d17200721ae8bf
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"name": "scaffolder",
|
|
"version": "1.0.0",
|
|
"description": "A service to generate Hasura action scaffolds",
|
|
"main": "src/server.js",
|
|
"scripts": {
|
|
"transpile": "rm -rf build/* && babel --extensions '.ts,.js' ./src ./tests --out-dir build",
|
|
"prebuild": "npm run transpile",
|
|
"build": "./build.sh",
|
|
"pretest": "npm run transpile && babel ./tests --out-dir _tmptests",
|
|
"posttest": "rm -rf _tmptests",
|
|
"test": "node ./_tmptests/index.js",
|
|
"lint": "eslint 'src/**/*.{js,ts}' --fix",
|
|
"format": "prettier-eslint $PWD'src/**/*.{js,ts,json}' --write && npm run lint"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.js": [
|
|
"eslint --fix",
|
|
"prettier-eslint --write",
|
|
"git add"
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"author": "wawhal",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@graphql-codegen/core": "^1.9.0",
|
|
"@graphql-codegen/typescript": "^1.9.0",
|
|
"graphql": "^14.5.8",
|
|
"inflection": "^1.12.0",
|
|
"node-fetch": "^2.6.0",
|
|
"regenerator-runtime": "^0.13.3"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.0.0",
|
|
"@babel/core": "^7.0.0",
|
|
"@babel/plugin-transform-async-to-generator": "^7.7.4",
|
|
"@babel/preset-env": "^7.7.6",
|
|
"@babel/preset-typescript": "^7.9.0",
|
|
"@types/graphql": "^14.5.0",
|
|
"@types/inflection": "^1.5.28",
|
|
"@types/node-fetch": "^2.5.7",
|
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
"@typescript-eslint/parser": "^2.34.0",
|
|
"eslint": "^6.8.0",
|
|
"eslint-config-airbnb-base": "^14.1.0",
|
|
"eslint-plugin-import": "^2.20.2",
|
|
"eslint-plugin-promise": "^4.2.1",
|
|
"husky": "^4.2.5",
|
|
"lint-staged": "^10.1.5",
|
|
"pkg": "^5.2.1",
|
|
"prettier-eslint-cli": "^5.0.0",
|
|
"typescript": "^3.9.2"
|
|
}
|
|
}
|