From 3b68c2a594ded8a12eb867c076cca5e6563a68df Mon Sep 17 00:00:00 2001 From: YassinEldeeb Date: Tue, 16 Jul 2024 14:21:27 +0100 Subject: [PATCH] apply suggessions --- .github/workflows/ci.yml | 1 + package.json | 3 ++- .../matchstick/npm/darwin-arm64/package.json | 2 +- .../matchstick/npm/darwin-x64/package.json | 2 +- .../matchstick/npm/linux-x64-gnu/package.json | 2 +- .../matchstick/npm/win32-x64-msvc/README.md | 3 --- .../npm/win32-x64-msvc/package.json | 24 ------------------- 7 files changed, 6 insertions(+), 31 deletions(-) delete mode 100644 packages/matchstick/npm/win32-x64-msvc/README.md delete mode 100644 packages/matchstick/npm/win32-x64-msvc/package.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 097886a92..734f046a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: Tests env: NODE_NO_WARNINGS: true + SKIP_PREBUILD: true on: push: branches: diff --git a/package.json b/package.json index 01f58f487..d553b32df 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,14 @@ "pnpm": ">=9" }, "scripts": { - "build": "pnpm --filter=@graphprotocol/graph-* --filter=!@graphprotocol/graph-matchstick build", + "build": "if [ \"$SKIP_PREBUILD\" != \"true\" ]; then pnpm run prebuild; fi && pnpm --filter=@graphprotocol/graph-* --filter=!@graphprotocol/graph-matchstick build", "lint": "pnpm lint:prettier && pnpm lint:eslint", "lint:eslint": "eslint .", "lint:eslint:fix": "eslint . --fix", "lint:fix": "pnpm lint:prettier:fix && pnpm lint:eslint:fix", "lint:prettier": "prettier -c .", "lint:prettier:fix": "prettier . --write", + "prebuild": "pnpm --filter=@graphprotocol/graph-matchstick build", "release": "pnpm build && changeset publish", "test:cli": "pnpm --filter @graphprotocol/graph-cli test", "test:ts": "pnpm --filter @graphprotocol/graph-ts test", diff --git a/packages/matchstick/npm/darwin-arm64/package.json b/packages/matchstick/npm/darwin-arm64/package.json index 5a6ec5168..d9b24d154 100644 --- a/packages/matchstick/npm/darwin-arm64/package.json +++ b/packages/matchstick/npm/darwin-arm64/package.json @@ -1,5 +1,5 @@ { - "name": "the-graph-tooling-matchstick-darwin-arm64", + "name": "@graphprotocol/the-graph-matchstick-darwin-arm64", "version": "0.0.1", "repository": { "url": "https://github.com/graphprotocol/graph-tooling" diff --git a/packages/matchstick/npm/darwin-x64/package.json b/packages/matchstick/npm/darwin-x64/package.json index 6d8128492..9f6178dd1 100644 --- a/packages/matchstick/npm/darwin-x64/package.json +++ b/packages/matchstick/npm/darwin-x64/package.json @@ -1,5 +1,5 @@ { - "name": "the-graph-tooling-matchstick-darwin-x64", + "name": "@graphprotocol/the-graph-matchstick-darwin-x64", "version": "0.0.1", "repository": { "url": "https://github.com/graphprotocol/graph-tooling" diff --git a/packages/matchstick/npm/linux-x64-gnu/package.json b/packages/matchstick/npm/linux-x64-gnu/package.json index 1c8cafb34..99b83d72f 100644 --- a/packages/matchstick/npm/linux-x64-gnu/package.json +++ b/packages/matchstick/npm/linux-x64-gnu/package.json @@ -1,5 +1,5 @@ { - "name": "the-graph-tooling-matchstick-linux-x64-gnu", + "name": "@graphprotocol/the-graph-matchstick-linux-x64-gnu", "version": "0.0.1", "repository": { "url": "https://github.com/graphprotocol/graph-tooling" diff --git a/packages/matchstick/npm/win32-x64-msvc/README.md b/packages/matchstick/npm/win32-x64-msvc/README.md deleted file mode 100644 index d3c53656f..000000000 --- a/packages/matchstick/npm/win32-x64-msvc/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `the-graph-tooling-matchstick-win32-x64-msvc` - -This is the **x86_64-pc-windows-msvc** binary for `the-graph-tooling-matchstick` diff --git a/packages/matchstick/npm/win32-x64-msvc/package.json b/packages/matchstick/npm/win32-x64-msvc/package.json deleted file mode 100644 index 29b215e03..000000000 --- a/packages/matchstick/npm/win32-x64-msvc/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "the-graph-tooling-matchstick-win32-x64-msvc", - "version": "0.0.1", - "repository": { - "url": "https://github.com/graphprotocol/graph-tooling" - }, - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "cpu": [ - "x64" - ], - "os": [ - "win32" - ], - "main": "the-graph-tooling-matchstick.win32-x64-msvc.node", - "files": [ - "the-graph-tooling-matchstick.win32-x64-msvc.node" - ], - "publishConfig": { - "access": "public" - } -}