Skip to content

Change typescript to depend on source instead of built files - #2686

Closed
mfedderly wants to merge 1 commit into
masterfrom
mf/inline-builds
Closed

Change typescript to depend on source instead of built files#2686
mfedderly wants to merge 1 commit into
masterfrom
mf/inline-builds

Conversation

@mfedderly

@mfedderly mfedderly commented Aug 7, 2024

Copy link
Copy Markdown
Collaborator

Minimal version of #2682

There's an issue where it doesn't leave the imports in the built code.

Comment thread packages/turf/test.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.

Comment thread .prettierignore

# 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

@mfedderly mfedderly closed this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant