Skip to content
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

Implement "sourcemaps inject" command #26

Merged
merged 8 commits into from
Oct 30, 2024
Merged

Conversation

mvirgil
Copy link
Contributor

@mvirgil mvirgil commented Oct 28, 2024

"sourcemaps inject" is given a directory, then:

  • determines which js and js.map files belong with each other
  • generates a "sourceMapId" for each of these pairs
  • injects a code snippet to the js file to indicate its "sourceMapId"

--dry-run option is also added, to preview which files will be touched by the command

Will cleanup logging code in a future PR

"sourcemaps inject" is given a directory, then:
 - determines which js and js.map files belong with each other
 - generates a "sourceMapId" for each of these pairs
 - injects a code snippet to the js file to indicate its "sourceMapId"

--dry-run option is also added, to preview which files will be
touched by the command

Will cleanup logging code in a future PR
Will look into enabling eslint rule in future, because
node:test runner does not play well with it
@mvirgil mvirgil marked this pull request as ready for review October 29, 2024 22:21
@mvirgil mvirgil requested review from a team as code owners October 29, 2024 22:21
@mvirgil mvirgil assigned mvirgil and unassigned mvirgil Oct 29, 2024
Copy link

@Abinet18 Abinet18 left a comment

Choose a reason for hiding this comment

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

looks good to me

@mvirgil mvirgil merged commit b1a2a62 into main Oct 30, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2024
@mvirgil mvirgil deleted the sourcemaps-inject-fileio branch October 30, 2024 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants