From de31d5d2fd78a1b8e85f396bd806c1178925289d Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 7 May 2024 21:00:01 +0800 Subject: [PATCH] chore: remove npm dirs (#48) --- .github/workflows/CI.yml | 2 ++ npm/android-arm-eabi/README.md | 3 --- npm/android-arm-eabi/package.json | 21 --------------------- npm/android-arm64/README.md | 3 --- npm/android-arm64/package.json | 21 --------------------- npm/darwin-arm64/README.md | 3 --- npm/darwin-arm64/package.json | 21 --------------------- npm/darwin-x64/README.md | 3 --- npm/darwin-x64/package.json | 21 --------------------- npm/linux-arm-gnueabihf/README.md | 3 --- npm/linux-arm-gnueabihf/package.json | 21 --------------------- npm/linux-arm64-gnu/README.md | 3 --- npm/linux-arm64-gnu/install.js | 11 ----------- npm/linux-arm64-gnu/package.json | 25 ------------------------- npm/linux-arm64-musl/README.md | 3 --- npm/linux-arm64-musl/install.js | 11 ----------- npm/linux-arm64-musl/package.json | 25 ------------------------- npm/linux-x64-gnu/README.md | 3 --- npm/linux-x64-gnu/install.js | 11 ----------- npm/linux-x64-gnu/package.json | 25 ------------------------- npm/linux-x64-musl/README.md | 3 --- npm/linux-x64-musl/install.js | 11 ----------- npm/linux-x64-musl/package.json | 25 ------------------------- npm/win32-arm64-msvc/README.md | 3 --- npm/win32-arm64-msvc/package.json | 21 --------------------- npm/win32-x64-msvc/README.md | 3 --- npm/win32-x64-msvc/package.json | 21 --------------------- 27 files changed, 2 insertions(+), 324 deletions(-) delete mode 100644 npm/android-arm-eabi/README.md delete mode 100644 npm/android-arm-eabi/package.json delete mode 100644 npm/android-arm64/README.md delete mode 100644 npm/android-arm64/package.json delete mode 100644 npm/darwin-arm64/README.md delete mode 100644 npm/darwin-arm64/package.json delete mode 100644 npm/darwin-x64/README.md delete mode 100644 npm/darwin-x64/package.json delete mode 100644 npm/linux-arm-gnueabihf/README.md delete mode 100644 npm/linux-arm-gnueabihf/package.json delete mode 100644 npm/linux-arm64-gnu/README.md delete mode 100644 npm/linux-arm64-gnu/install.js delete mode 100644 npm/linux-arm64-gnu/package.json delete mode 100644 npm/linux-arm64-musl/README.md delete mode 100644 npm/linux-arm64-musl/install.js delete mode 100644 npm/linux-arm64-musl/package.json delete mode 100644 npm/linux-x64-gnu/README.md delete mode 100644 npm/linux-x64-gnu/install.js delete mode 100644 npm/linux-x64-gnu/package.json delete mode 100644 npm/linux-x64-musl/README.md delete mode 100644 npm/linux-x64-musl/install.js delete mode 100644 npm/linux-x64-musl/package.json delete mode 100644 npm/win32-arm64-msvc/README.md delete mode 100644 npm/win32-arm64-msvc/package.json delete mode 100644 npm/win32-x64-msvc/README.md delete mode 100644 npm/win32-x64-msvc/package.json diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 22ce1d0..cac132c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -232,6 +232,8 @@ jobs: uses: actions/download-artifact@v4 with: path: artifacts + - name: create npm dirs + run: yarn napi create-npm-dir -t . - name: Move artifacts run: yarn artifacts - name: List packages diff --git a/npm/android-arm-eabi/README.md b/npm/android-arm-eabi/README.md deleted file mode 100644 index 586d37e..0000000 --- a/npm/android-arm-eabi/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-android-arm-eabi` - -This is the **armv7-linux-androideabi** binary for `@napi-rs/simple-git` diff --git a/npm/android-arm-eabi/package.json b/npm/android-arm-eabi/package.json deleted file mode 100644 index 120e4c8..0000000 --- a/npm/android-arm-eabi/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@napi-rs/simple-git-android-arm-eabi", - "version": "0.1.16", - "os": [ - "android" - ], - "cpu": [ - "arm" - ], - "main": "simple-git.android-arm-eabi.node", - "files": [ - "simple-git.android-arm-eabi.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - } -} \ No newline at end of file diff --git a/npm/android-arm64/README.md b/npm/android-arm64/README.md deleted file mode 100644 index cb3bdab..0000000 --- a/npm/android-arm64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-android-arm64` - -This is the **aarch64-linux-android** binary for `@napi-rs/simple-git` diff --git a/npm/android-arm64/package.json b/npm/android-arm64/package.json deleted file mode 100644 index 140fd55..0000000 --- a/npm/android-arm64/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@napi-rs/simple-git-android-arm64", - "version": "0.1.16", - "os": [ - "android" - ], - "cpu": [ - "arm64" - ], - "main": "simple-git.android-arm64.node", - "files": [ - "simple-git.android-arm64.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - } -} \ No newline at end of file diff --git a/npm/darwin-arm64/README.md b/npm/darwin-arm64/README.md deleted file mode 100644 index ccdcf2e..0000000 --- a/npm/darwin-arm64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-darwin-arm64` - -This is the **aarch64-apple-darwin** binary for `@napi-rs/simple-git` diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json deleted file mode 100644 index 343f7e6..0000000 --- a/npm/darwin-arm64/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@napi-rs/simple-git-darwin-arm64", - "version": "0.1.16", - "os": [ - "darwin" - ], - "cpu": [ - "arm64" - ], - "main": "simple-git.darwin-arm64.node", - "files": [ - "simple-git.darwin-arm64.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - } -} \ No newline at end of file diff --git a/npm/darwin-x64/README.md b/npm/darwin-x64/README.md deleted file mode 100644 index b4ae407..0000000 --- a/npm/darwin-x64/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-darwin-x64` - -This is the **x86_64-apple-darwin** binary for `@napi-rs/simple-git` diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json deleted file mode 100644 index 328425b..0000000 --- a/npm/darwin-x64/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@napi-rs/simple-git-darwin-x64", - "version": "0.1.16", - "os": [ - "darwin" - ], - "cpu": [ - "x64" - ], - "main": "simple-git.darwin-x64.node", - "files": [ - "simple-git.darwin-x64.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - } -} \ No newline at end of file diff --git a/npm/linux-arm-gnueabihf/README.md b/npm/linux-arm-gnueabihf/README.md deleted file mode 100644 index 09f1d01..0000000 --- a/npm/linux-arm-gnueabihf/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-linux-arm-gnueabihf` - -This is the **armv7-unknown-linux-gnueabihf** binary for `@napi-rs/simple-git` diff --git a/npm/linux-arm-gnueabihf/package.json b/npm/linux-arm-gnueabihf/package.json deleted file mode 100644 index 08a8354..0000000 --- a/npm/linux-arm-gnueabihf/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@napi-rs/simple-git-linux-arm-gnueabihf", - "version": "0.1.16", - "os": [ - "linux" - ], - "cpu": [ - "arm" - ], - "main": "simple-git.linux-arm-gnueabihf.node", - "files": [ - "simple-git.linux-arm-gnueabihf.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - } -} \ No newline at end of file diff --git a/npm/linux-arm64-gnu/README.md b/npm/linux-arm64-gnu/README.md deleted file mode 100644 index 4f63b98..0000000 --- a/npm/linux-arm64-gnu/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-linux-arm64-gnu` - -This is the **aarch64-unknown-linux-gnu** binary for `@napi-rs/simple-git` diff --git a/npm/linux-arm64-gnu/install.js b/npm/linux-arm64-gnu/install.js deleted file mode 100644 index e58da52..0000000 --- a/npm/linux-arm64-gnu/install.js +++ /dev/null @@ -1,11 +0,0 @@ -// Node.js 10.x, ignore -if (!process.report || typeof process.report.getReport !== 'function') { - process.exit(0) -} - -// Only GNU system has this field -const { glibcVersionRuntime } = process.report.getReport().header - -if (!glibcVersionRuntime) { - process.exit(1) -} diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json deleted file mode 100644 index 9d31f49..0000000 --- a/npm/linux-arm64-gnu/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@napi-rs/simple-git-linux-arm64-gnu", - "version": "0.1.16", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "simple-git.linux-arm64-gnu.node", - "files": [ - "simple-git.linux-arm64-gnu.node", - "install.js" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - }, - "libc": [ - "glibc" - ] -} \ No newline at end of file diff --git a/npm/linux-arm64-musl/README.md b/npm/linux-arm64-musl/README.md deleted file mode 100644 index f54378e..0000000 --- a/npm/linux-arm64-musl/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-linux-arm64-musl` - -This is the **aarch64-unknown-linux-musl** binary for `@napi-rs/simple-git` diff --git a/npm/linux-arm64-musl/install.js b/npm/linux-arm64-musl/install.js deleted file mode 100644 index 41b62bb..0000000 --- a/npm/linux-arm64-musl/install.js +++ /dev/null @@ -1,11 +0,0 @@ -// Node.js 10.x, ignore -if (!process.report || typeof process.report.getReport !== 'function') { - process.exit(0) -} - -// Only GNU system has this field -const { glibcVersionRuntime } = process.report.getReport().header - -if (glibcVersionRuntime) { - process.exit(1) -} diff --git a/npm/linux-arm64-musl/package.json b/npm/linux-arm64-musl/package.json deleted file mode 100644 index 622ad75..0000000 --- a/npm/linux-arm64-musl/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@napi-rs/simple-git-linux-arm64-musl", - "version": "0.1.16", - "os": [ - "linux" - ], - "cpu": [ - "arm64" - ], - "main": "simple-git.linux-arm64-musl.node", - "files": [ - "simple-git.linux-arm64-musl.node", - "install.js" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - }, - "libc": [ - "musl" - ] -} \ No newline at end of file diff --git a/npm/linux-x64-gnu/README.md b/npm/linux-x64-gnu/README.md deleted file mode 100644 index 0e39b2c..0000000 --- a/npm/linux-x64-gnu/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-linux-x64-gnu` - -This is the **x86_64-unknown-linux-gnu** binary for `@napi-rs/simple-git` diff --git a/npm/linux-x64-gnu/install.js b/npm/linux-x64-gnu/install.js deleted file mode 100644 index e58da52..0000000 --- a/npm/linux-x64-gnu/install.js +++ /dev/null @@ -1,11 +0,0 @@ -// Node.js 10.x, ignore -if (!process.report || typeof process.report.getReport !== 'function') { - process.exit(0) -} - -// Only GNU system has this field -const { glibcVersionRuntime } = process.report.getReport().header - -if (!glibcVersionRuntime) { - process.exit(1) -} diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json deleted file mode 100644 index ab9bb7c..0000000 --- a/npm/linux-x64-gnu/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@napi-rs/simple-git-linux-x64-gnu", - "version": "0.1.16", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "simple-git.linux-x64-gnu.node", - "files": [ - "simple-git.linux-x64-gnu.node", - "install.js" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - }, - "libc": [ - "glibc" - ] -} \ No newline at end of file diff --git a/npm/linux-x64-musl/README.md b/npm/linux-x64-musl/README.md deleted file mode 100644 index a65a1cc..0000000 --- a/npm/linux-x64-musl/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-linux-x64-musl` - -This is the **x86_64-unknown-linux-musl** binary for `@napi-rs/simple-git` diff --git a/npm/linux-x64-musl/install.js b/npm/linux-x64-musl/install.js deleted file mode 100644 index 41b62bb..0000000 --- a/npm/linux-x64-musl/install.js +++ /dev/null @@ -1,11 +0,0 @@ -// Node.js 10.x, ignore -if (!process.report || typeof process.report.getReport !== 'function') { - process.exit(0) -} - -// Only GNU system has this field -const { glibcVersionRuntime } = process.report.getReport().header - -if (glibcVersionRuntime) { - process.exit(1) -} diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json deleted file mode 100644 index d7d504d..0000000 --- a/npm/linux-x64-musl/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@napi-rs/simple-git-linux-x64-musl", - "version": "0.1.16", - "os": [ - "linux" - ], - "cpu": [ - "x64" - ], - "main": "simple-git.linux-x64-musl.node", - "files": [ - "simple-git.linux-x64-musl.node", - "install.js" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - }, - "libc": [ - "musl" - ] -} \ No newline at end of file diff --git a/npm/win32-arm64-msvc/README.md b/npm/win32-arm64-msvc/README.md deleted file mode 100644 index c5624d9..0000000 --- a/npm/win32-arm64-msvc/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-win32-arm64-msvc` - -This is the **aarch64-pc-windows-msvc** binary for `@napi-rs/simple-git` diff --git a/npm/win32-arm64-msvc/package.json b/npm/win32-arm64-msvc/package.json deleted file mode 100644 index f429c78..0000000 --- a/npm/win32-arm64-msvc/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@napi-rs/simple-git-win32-arm64-msvc", - "version": "0.1.16", - "os": [ - "win32" - ], - "cpu": [ - "arm64" - ], - "main": "simple-git.win32-arm64-msvc.node", - "files": [ - "simple-git.win32-arm64-msvc.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - } -} \ No newline at end of file diff --git a/npm/win32-x64-msvc/README.md b/npm/win32-x64-msvc/README.md deleted file mode 100644 index 10eed14..0000000 --- a/npm/win32-x64-msvc/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@napi-rs/simple-git-win32-x64-msvc` - -This is the **x86_64-pc-windows-msvc** binary for `@napi-rs/simple-git` diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json deleted file mode 100644 index f3e5bb4..0000000 --- a/npm/win32-x64-msvc/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@napi-rs/simple-git-win32-x64-msvc", - "version": "0.1.16", - "os": [ - "win32" - ], - "cpu": [ - "x64" - ], - "main": "simple-git.win32-x64-msvc.node", - "files": [ - "simple-git.win32-x64-msvc.node" - ], - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "repository": { - "url": "https://github.com/Brooooooklyn/simple-git" - } -} \ No newline at end of file