Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ packages/turf-directional-mean/test/in/bus_route_utm.json

# is actually output
packages/turf/turf.min.js
packages/turf/test.example.js

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will help with rerunnability locally


# Ignore test fixture json in case intentional line breaks help with coord
# readability.
Expand Down
2 changes: 1 addition & 1 deletion packages/turf/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ const turfTypescriptPath = path.join(__dirname, "..", "turf-*", "index.d.ts");

// Test Strings
const requireString = `import test from 'tape';
import * as turf from './dist/esm/index.js';
import * as turf from './index.ts';

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jumping into the built output gets us away from the tsconfig paths settings, so we have to hit the index.ts instead.

`;

/**
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"strict": true,
"moduleResolution": "node16",
"importHelpers": true,
"skipLibCheck": true
"skipLibCheck": true,
"paths": {
"@turf/turf": ["./packages/turf"],
"@turf/*": ["./packages/turf-*"]
}
}
}