Skip to content

Commit df765de

Browse files
authored
Merge pull request #44 from hthetiot/node-22
Node 22
2 parents 5c069b6 + 1bce581 commit df765de

File tree

5 files changed

+134
-245
lines changed

5 files changed

+134
-245
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
node-version: [18.x]
23+
node-version: [18.x, 20.x, 22.x]
2424

2525
# Steps represent a sequence of tasks that will be executed as part of the job
2626
steps:

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,22 @@ snowball.stemword(
100100

101101
## To compile, run
102102

103-
Supported NodeJS versions: 14.x, 16.x, 18.x
103+
Supported NodeJS versions: 18.x, 20.x, 22.x
104104

105-
```
105+
106+
```bash
106107
npm run clean
107108
npm run configure
108109
npm run build
109110
npm test
110111
```
111112

113+
With Custom Pyhton PATH for node-gyp:
114+
115+
```bash
116+
NODE_GYP_FORCE_PYTHON=/opt/homebrew/bin/python3.11 npm rebuild
117+
```
118+
112119
## License
113120

114121
(MIT License)

binding.gyp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"targets": [
3-
{
4-
"target_name": "snowball",
5-
"include_dirs" : [
6-
"<!(node -e \"require('nan')\")"
7-
],
8-
"sources": [
2+
"targets": [
3+
{
4+
"target_name": "snowball",
5+
"sources": [
96
"src/snowball.cpp",
107
"src/NativeExtension.cpp",
118
"src/libstemmer/libstemmer/libstemmer.c",
@@ -59,7 +56,10 @@
5956
"src/libstemmer/src_c/stem_UTF_8_tamil.c",
6057
"src/libstemmer/src_c/stem_UTF_8_turkish.c",
6158
"src/libstemmer/src_c/stem_UTF_8_yiddish.c",
62-
]
63-
}
64-
]
59+
],
60+
"include_dirs": [
61+
"<!(node -e \"require('nan')\")"
62+
],
63+
}
64+
]
6565
}

0 commit comments

Comments
 (0)