-
Notifications
You must be signed in to change notification settings - Fork 1k
Speed up development builds and drop tsup #2988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
4bc86a0
6da37b9
cfc3c7d
8b9b2a4
26162d8
9892d32
636eaf0
5caa61d
b3f2903
02a8b4d
2f579b3
7c4b76f
7847682
1ae24d0
c1e9d9f
7ed0c48
c289319
5acee45
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,18 +2,24 @@ | |
| "private": true, | ||
| "funding": "https://opencollective.com/turf", | ||
| "scripts": { | ||
| "build": "pnpx lerna run build", | ||
| "docs": "tsx ./scripts/generate-readmes.ts", | ||
| "escheck": "pnpm run /escheck:.*/", | ||
| "escheck:cjs": "es-check es8 packages/*/dist/cjs/index.cjs packages/turf/turf.min.js", | ||
| "escheck:esm": "es-check --module es8 packages/*/dist/esm/index.js", | ||
| "escheck:web": "es-check es5 packages/turf/turf.min.js", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lmao we're still shipping es5 turf.min.js. That should definitely get bumped way forward. |
||
| "lint": "pnpm run /lint:.*/", | ||
| "lint:docs": "documentation lint packages/turf-*/index.js", | ||
| "lint:escheck-cjs": "es-check es8 packages/*/dist/cjs/index.cjs packages/turf/turf.min.js", | ||
| "lint:escheck-esm": "es-check --module es8 packages/*/dist/esm/index.js", | ||
| "lint:escheck-web": "es-check es5 packages/turf/turf.min.js", | ||
| "lint:eslint": "eslint packages", | ||
| "lint:mrl": "mrl check", | ||
| "lint:prettier": "prettier --check .", | ||
| "preinstall": "npx only-allow pnpm", | ||
| "prepare": "husky && lerna run build", | ||
| "test": "pnpm run lint && lerna run test && lerna run --scope @turf/turf last-checks" | ||
| "prepare": "husky", | ||
| "prerelease": "pnpm run build && pnpm run rollup", | ||
| "release": "pnpm run test:release && pnpm publish -r", | ||
| "rollup": "lerna run --scope @turf/turf rollup", | ||
| "test": "pnpx lerna run test", | ||
| "test:release": "pnpm run lint && pnpm run escheck && lerna run --scope @turf/turf last-checks" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would be in favor of just keeping this all one |
||
| }, | ||
| "lint-staged": { | ||
| "package.json": [ | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ import { | |
| Polygon, | ||
| } from "geojson"; | ||
| import type { Intersection } from "sweepline-intersections"; | ||
| import { sweeplineIntersections as findIntersections } from "./lib/sweepline-intersections-export.js"; | ||
| import findIntersections from "sweepline-intersections"; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't realize this shim stuff was still around. 🧹 |
||
|
|
||
| /** | ||
| * Takes any LineString or Polygon GeoJSON and returns the intersecting point(s). | ||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "extends": "./tsconfig.json", | ||
| "compilerOptions": { | ||
| "composite": false, | ||
| "noEmit": true, | ||
| }, | ||
| "include": ["types.ts"], | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { defineConfig, type Options } from "tsup"; | ||
| import { type Options } from "tsup"; | ||
|
|
||
| const baseOptions: Options = { | ||
| tsconfig: "./tsconfig.build.json", | ||
|
|
@@ -7,22 +7,11 @@ const baseOptions: Options = { | |
| sourcemap: true, | ||
| // treeshake: true, causes "chunk.default" warning, breaks CJS exports? | ||
| minify: false, | ||
| skipNodeModulesBundle: true, | ||
| cjsInterop: true, | ||
| splitting: true, | ||
| external: [ | ||
| /^@turf\//, // Externalize all @turf workspace packages | ||
| ], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this required to basically reverse the |
||
| }; | ||
|
|
||
| export default [ | ||
| defineConfig({ | ||
| ...baseOptions, | ||
| outDir: "dist/cjs", | ||
| format: "cjs", | ||
| }), | ||
| defineConfig({ | ||
| ...baseOptions, | ||
| outDir: "dist/esm", | ||
| format: "esm", | ||
| }), | ||
| ]; | ||
|
|
||
| export { baseOptions }; | ||
Uh oh!
There was an error while loading. Please reload this page.