From 62525c51fc7c0c6f962a9359efbd756f5c58691b Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Thu, 7 Dec 2023 10:21:08 -0500 Subject: [PATCH] fix: change package.json keys (#222) --- .github/workflows/ci.yml | 3 +-- package.json | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de2483e6..8f501cf9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,10 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - run: npm ci - - run: npm run lint - run: | git config clangFormat.binary node_modules/.bin/clang-format git config clangFormat.style file - npm run format:clang:check + npm run lint build-test-matrix: strategy: diff --git a/package.json b/package.json index 15460f30..29c95f53 100644 --- a/package.json +++ b/package.json @@ -30,12 +30,12 @@ "scripts": { "install": "node scripts/check-build.mjs", "clean": "rm -rf ./lib && rm -rf build", - "lint": "eslint ./src --ext .ts", - "format": "npm run format:eslint && npm run format:clang", - "format:eslint": "eslint --fix .", - "format:clang": "./node_modules/.bin/clang-format --style=file -i ./**/*.cc ", - "format:clang:export": "./node_modules/.bin/clang-format --style=google -dump-config > .clang-format", - "format:clang:check": "./node_modules/.bin/check-clang-format --style=file", + "lint": "npm run lint:eslint && npm run lint:clang", + "lint:eslint": "eslint . --format stylish", + "lint:clang": "./node_modules/.bin/check-clang-format --style=file", + "fix": "npm run fix:eslint && npm run fix:clang", + "fix:eslint": "eslint . --format stylish --fix", + "fix:clang": "./node_modules/.bin/clang-format --style=file -i ./**/*.cc ", "build": "npm run build:bindings && npm run build:lib", "build:lib:esm": "node ./esbuild.esm.mjs", "build:lib:cjs": "node ./esbuild.cjs.mjs",