@sentryware/s2-node 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +2 -0
- package/index.mjs +14 -0
- package/package.json +8 -2
- package/publish-linux.sh +3 -4
- package/publish-osx.sh +2 -2
package/.dockerignore
CHANGED
package/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentryware/s2-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Node.js JavaScript and TypeScript bindings for the Google S2 geolocation library.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./index.mjs",
|
|
10
|
+
"require": "./index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
7
13
|
"repository": {
|
|
8
14
|
"type": "git",
|
|
9
15
|
"url": "https://github.com/sentryware/s2-node.git"
|
|
@@ -39,4 +45,4 @@
|
|
|
39
45
|
"node-addon-api": "^8.6.0",
|
|
40
46
|
"node-gyp": "^11.5.0"
|
|
41
47
|
}
|
|
42
|
-
}
|
|
48
|
+
}
|
package/publish-linux.sh
CHANGED
|
@@ -6,13 +6,12 @@ export DOCKER_DEFAULT_PLATFORM="${DOCKER_DEFAULT_PLATFORM:-linux/amd64}"
|
|
|
6
6
|
|
|
7
7
|
for node in 24 22 20
|
|
8
8
|
do
|
|
9
|
-
|
|
10
|
-
docker run -it \
|
|
11
|
-
-v "$PWD":/app \
|
|
9
|
+
docker run -i --rm \
|
|
12
10
|
-e AWS_DEFAULT_REGION \
|
|
13
11
|
-e AWS_ACCESS_KEY_ID \
|
|
14
12
|
-e AWS_SECRET_ACCESS_KEY \
|
|
15
13
|
-e AWS_SESSION_TOKEN \
|
|
16
14
|
node:$node \
|
|
17
|
-
bash -c 'cd /app && npm install && JOBS=max npx node-pre-gyp
|
|
15
|
+
bash -c 'mkdir /app && cd /app && tar xf - && npm install && JOBS=max npx node-pre-gyp rebuild package unpublish publish' \
|
|
16
|
+
< <(tar cf - --exclude-from=.dockerignore .)
|
|
18
17
|
done
|
package/publish-osx.sh
CHANGED
|
@@ -11,7 +11,7 @@ for node in v20 v22 v24
|
|
|
11
11
|
do
|
|
12
12
|
nvm install $node
|
|
13
13
|
nvm use $node
|
|
14
|
-
rm -rf node_modules
|
|
14
|
+
rm -rf node_modules build
|
|
15
15
|
npm install
|
|
16
|
-
JOBS=max npx node-pre-gyp
|
|
16
|
+
JOBS=max npx node-pre-gyp rebuild package unpublish publish
|
|
17
17
|
done
|