|
@@ -24,13 +24,15 @@
|
|
|
"build:compile": "babel index.js --out-dir dist",
|
|
"build:compile": "babel index.js --out-dir dist",
|
|
|
"declaration:build": "rm -f dist/index.d.ts && tsc --allowJs --declaration --emitDeclarationOnly --outDir dist --moduleResolution node --target ES6 index.js",
|
|
"declaration:build": "rm -f dist/index.d.ts && tsc --allowJs --declaration --emitDeclarationOnly --outDir dist --moduleResolution node --target ES6 index.js",
|
|
|
"declaration:check": "git diff --exit-code -- dist/index.d.ts",
|
|
"declaration:check": "git diff --exit-code -- dist/index.d.ts",
|
|
|
- "lint": "eslint .",
|
|
|
|
|
|
|
+ "lint": "eslint --max-warnings 0 --format unix .",
|
|
|
|
|
+ "lint:fix": "eslint --fix .",
|
|
|
"prepublishOnly": "npm run --silent declaration:build && npm run --silent declaration:check",
|
|
"prepublishOnly": "npm run --silent declaration:build && npm run --silent declaration:check",
|
|
|
"test": "mocha",
|
|
"test": "mocha",
|
|
|
"test:coverage": "nyc --reporter=lcov --reporter=text-summary npm run test",
|
|
"test:coverage": "nyc --reporter=lcov --reporter=text-summary npm run test",
|
|
|
"typecheck": "tsc --allowJs --checkJs --noEmit --moduleResolution node --strict --target ES6 *.js test/**/*.js",
|
|
"typecheck": "tsc --allowJs --checkJs --noEmit --moduleResolution node --strict --target ES6 *.js test/**/*.js",
|
|
|
"update-readme": "doc/update-readme.js",
|
|
"update-readme": "doc/update-readme.js",
|
|
|
- "format": "echo noop",
|
|
|
|
|
|
|
+ "format": "prettier $PWD'/**/*.js' --list-different",
|
|
|
|
|
+ "format:fix": "prettier $PWD'/**/*.js' --write",
|
|
|
"test:ci": "npm run typecheck && npm run test"
|
|
"test:ci": "npm run typecheck && npm run test"
|
|
|
},
|
|
},
|
|
|
"author": "Overleaf (https://www.overleaf.com)",
|
|
"author": "Overleaf (https://www.overleaf.com)",
|