@sentryware/s2-node 0.0.8 → 0.0.10

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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(gsutil ls:*)"
5
+ ]
6
+ }
7
+ }
package/.dockerignore CHANGED
@@ -1 +1,3 @@
1
1
  build/
2
+ node_modules/
3
+ lib/binding/
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@sentryware/s2-node",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
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
7
  "exports": {
8
8
  ".": {
9
+ "types": "./index.d.ts",
9
10
  "import": "./index.mjs",
10
11
  "require": "./index.js"
11
12
  }
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
- # run image
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 build package unpublish publish'
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 build package unpublish publish
16
+ JOBS=max npx node-pre-gyp rebuild package unpublish publish
17
17
  done