Merge pull request #10100 from ddevault/main

codemirror-promql: use npm to run lezer-generator
pull/8818/head
Drew DeVault 3 years ago committed by GitHub
parent b277571b24
commit 8b0e1efd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@
"module": "dist/esm/index.js", "module": "dist/esm/index.js",
"scripts": { "scripts": {
"build": "npm run build:grammar && npm run build:lib", "build": "npm run build:grammar && npm run build:lib",
"build:grammar": "lezer-generator src/grammar/promql.grammar -o src/grammar/parser", "build:grammar": "npx lezer-generator src/grammar/promql.grammar -o src/grammar/parser",
"build:lib": "bash ./build.sh", "build:lib": "bash ./build.sh",
"test": "npm run build:grammar && ts-mocha -p tsconfig.json ./**/*.test.ts", "test": "npm run build:grammar && ts-mocha -p tsconfig.json ./**/*.test.ts",
"test:coverage": "npm run build:grammar && nyc ts-mocha -p ./tsconfig.json ./**/*.test.ts", "test:coverage": "npm run build:grammar && nyc ts-mocha -p ./tsconfig.json ./**/*.test.ts",

Loading…
Cancel
Save