Skip to content

Commit

Permalink
Fix broken windows (#105)
Browse files Browse the repository at this point in the history
Includes:

 - Remove Node 14 support
 - Update depedencies
 - Update build scripts
  • Loading branch information
wavded committed Jan 22, 2024
1 parent 729f321 commit d30ee8e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: osgeo/gdal:ubuntu-small-latest
image: ghcr.io/osgeo/gdal:ubuntu-small-latest
options: --user 1001
strategy:
matrix:
node: ["14", "16", "18"]
node: ["16", "18", "20"]
name: Node v${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Ogr2ogr implements PromiseLike<Result> {

then<TResult1 = Result, TResult2 = never>(
onfulfilled?: (value: Result) => TResult1 | PromiseLike<TResult1>,
onrejected?: (reason: string) => TResult2 | PromiseLike<TResult2>
onrejected?: (reason: string) => TResult2 | PromiseLike<TResult2>,
): PromiseLike<TResult1 | TResult2> {
return this.run().then(onfulfilled, onrejected)
}
Expand Down Expand Up @@ -164,7 +164,7 @@ class Ogr2ogr implements PromiseLike<Result> {
(err, stdout, stderr) => {
if (err) rej(err)
res({stdout, stderr})
}
},
)
if (this.inputStream && proc.stdin) this.inputStream.pipe(proc.stdin)
})
Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,26 @@
"fmt-check": "prettier --check ."
},
"dependencies": {
"archiver": "^5.3.1"
"archiver": "^6.0.1"
},
"devDependencies": {
"@types/archiver": "^5.3.1",
"@types/blue-tape": "^0.1.33",
"@types/geojson": "^7946.0.10",
"@types/node": "^18.14.6",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@types/archiver": "^6.0.2",
"@types/blue-tape": "^0.1.36",
"@types/geojson": "^7946.0.13",
"@types/node": "^20.11.5",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"blue-tape": "^1.0.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-prettier-config": "^1.0.1",
"nyc": "^15.1.0",
"prettier": "^2.8.4",
"prettier-plugin-organize-imports": "^3.2.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"prettier": "^3.2.4",
"prettier-plugin-organize-imports": "^3.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"engines": {
"node": ">=12"
"node": ">=16"
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"declaration": true,
"outDir": "./dist/cjs",
"esModuleInterop": true,
"resolveJsonModule": true
"resolveJsonModule": true,
},
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist"],
}

0 comments on commit d30ee8e

Please sign in to comment.