Skip to content

Commit 7b258f0

Browse files
fix: support for Windows (build script failures, runtime failures, updates) (original: #206) (#215)
See #206 for details. --------- Co-authored-by: Apoorv Verma [AP] <avdaredevil@gmail.com>
1 parent 0ffb6e2 commit 7b258f0

File tree

4 files changed

+76
-31
lines changed

4 files changed

+76
-31
lines changed

package-lock.json

Lines changed: 60 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clang-format-git-python/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,17 @@
4545
"node": ">=16"
4646
},
4747
"scripts": {
48-
"postinstall": "test -d src && npm run build || npm run chmod",
48+
"postinstall": "shx test -d src && npm run build || npm run chmod",
4949
"prepublishOnly": "npm run build",
50-
"build": "npx babel src -d build && npx tsc && cp -r src/script build && cp ../../LICENSE.md ../../README.md .",
50+
"build": "npx babel src -d build && npx tsc && shx cp -r src/script build && shx cp ../../LICENSE.md ../../README.md .",
5151
"postbuild": "npm run chmod",
5252
"test": "node --test",
53-
"chmod": "find ./src/script ./build/script -type f -exec chmod 755 {} + || exit 0",
53+
"chmod": "shx chmod 755 ./src/script/**/* ./build/script/**/* || exit 0",
5454
"dev": "node src/cli.js",
5555
"start": "node build/cli.js"
5656
},
5757
"dependencies": {
58-
"clang-format-node": "^1.3.0"
58+
"clang-format-node": "^1.3.0",
59+
"shx": "^0.3.4"
5960
}
6061
}

packages/clang-format-git/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@
4444
"node": ">=16"
4545
},
4646
"scripts": {
47-
"postinstall": "test -d src && npm run build || npm run chmod",
47+
"postinstall": "shx test -d src && npm run build || npm run chmod",
4848
"prepublishOnly": "npm run build",
49-
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md .",
49+
"build": "npx babel src -d build && npx tsc && shx cp -r src/bin build && shx cp ../../LICENSE.md ../../README.md .",
5050
"postbuild": "npm run chmod",
5151
"test": "node --test",
52-
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || exit 0",
52+
"chmod": "shx chmod 755 ./src/bin/**/* ./build/bin/**/* || exit 0",
5353
"dev": "node src/cli.js",
5454
"start": "node build/cli.js"
5555
},
5656
"dependencies": {
57-
"clang-format-node": "^1.3.0"
57+
"clang-format-node": "^1.3.0",
58+
"shx": "^0.3.4"
5859
}
5960
}

packages/clang-format-node/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@
4343
"node": ">=16"
4444
},
4545
"scripts": {
46-
"postinstall": "test -d src && npm run build || npm run chmod",
46+
"postinstall": "shx test -d src && npm run build || npm run chmod",
4747
"prepublishOnly": "npm run build",
48-
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md .",
48+
"build": "npx babel src -d build && npx tsc && shx cp -r src/bin build && shx cp ../../LICENSE.md ../../README.md .",
4949
"postbuild": "npm run chmod",
5050
"test": "node --test",
51-
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || exit 0",
51+
"chmod": "shx chmod 755 ./src/bin/**/* ./build/bin/**/* || exit 0",
5252
"dev": "node src/cli.js",
5353
"start": "node build/cli.js"
54+
},
55+
"dependencies": {
56+
"shx": "^0.3.4"
5457
}
5558
}

0 commit comments

Comments
 (0)