Skip to content

Conversation

@rickdgeerling
Copy link
Collaborator

@rickdgeerling rickdgeerling commented Jan 9, 2024

Todo:

  • Test package locally with yalc

Auto-loads the correct Node version for many different version managers
We use a dedicated tsconfig file that only selects the files we need for
the package.
@rickdgeerling rickdgeerling linked an issue Jan 9, 2024 that may be closed by this pull request
Copy link
Contributor

@thiagomini thiagomini left a comment

Choose a reason for hiding this comment

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

LGTM

@rickdgeerling rickdgeerling marked this pull request as ready for review January 12, 2024 09:10
@rickdgeerling rickdgeerling force-pushed the chore/build-scripts branch 2 times, most recently from 5be39d2 to 0cf2c80 Compare January 12, 2024 09:12
Tested package with yalc
package.json Outdated
},
"scripts": {
"tsc": "tsc",
"prepublish": "tsc",
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we should also make sure all tests are passing and style is correct, thoughts @tuxmachine ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree, but that can be enforced in CI right? This is just ensuring that whenever we publish a package, we build a fresh package, and don't accidentally upload an outdated libs folder.

Copy link
Contributor

Choose a reason for hiding this comment

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

As of npm@5, prepublish scripts are deprecated. Use prepare for build steps and prepublishOnly for upload-only.

prepublish is deprecated

Co-authored-by: Tolga Paksoy <[email protected]>
@thiagomini thiagomini merged commit f93ebc5 into main Jan 12, 2024
@rickdgeerling rickdgeerling deleted the chore/build-scripts branch January 15, 2024 08:51
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.

Define bundler tool

4 participants