Skip to content

Commit

Permalink
Same as last commit - simplifying tsconfig.json - except these are th…
Browse files Browse the repository at this point in the history
…e subset of packages that had multiple entry points e.g. 3rd party code hosted locally in lib/
  • Loading branch information
smallsaucepan committed Dec 13, 2023
1 parent afa6b2d commit effc083
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 50 deletions.
6 changes: 1 addition & 5 deletions packages/turf-bbox-clip/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js"
},
"files": ["index.ts", "lib/lineclip.ts"]
"extends": "../../tsconfig.shared.json"
}
6 changes: 1 addition & 5 deletions packages/turf-bezier-spline/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js"
},
"files": ["index.ts", "lib/spline.ts"]
"extends": "../../tsconfig.shared.json"
}
11 changes: 1 addition & 10 deletions packages/turf-concave/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js"
},
"files": [
"index.ts",
"lib/turf-dissolve.ts",
"lib/turf-line-dissolve.ts",
"lib/turf-polygon-dissolve.ts"
]
"extends": "../../tsconfig.shared.json"
}
6 changes: 1 addition & 5 deletions packages/turf-helpers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js"
},
"files": ["index.ts", "lib/geojson.ts"]
"extends": "../../tsconfig.shared.json"
}
1 change: 0 additions & 1 deletion packages/turf-isobands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
} from "geojson";

import { gridToMatrix } from "./lib/grid-to-matrix";
// @ts-expect-error Legacy JS library with no types defined
import { isoBands } from "marchingsquares";

type GroupRingProps = { [prop: string]: string };
Expand Down
6 changes: 6 additions & 0 deletions packages/turf-isobands/lib/grid-to-matrix.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module "grid-to-matrix";

declare function gridToMatrix(grid: any, options: any): any;

export { gridToMatrix };
export default gridToMatrix;
7 changes: 1 addition & 6 deletions packages/turf-isobands/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js",
"allowJs": true
},
"files": ["index.ts"]
"extends": "../../tsconfig.shared.json"
}
7 changes: 1 addition & 6 deletions packages/turf-isolines/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js",
"allowJs": true
},
"files": ["index.ts"]
"extends": "../../tsconfig.shared.json"
}
7 changes: 1 addition & 6 deletions packages/turf-shortest-path/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js",
"allowJs": true
},
"files": ["index.ts", "lib/javascript-astar.js"]
"extends": "../../tsconfig.shared.json"
}
7 changes: 1 addition & 6 deletions packages/turf-simplify/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"outDir": "dist/js",
"allowJs": true
},
"files": ["index.ts", "lib/simplify.js"]
"extends": "../../tsconfig.shared.json"
}

0 comments on commit effc083

Please sign in to comment.