Skip to content

chore: define build & package scripts #15

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

Merged
merged 5 commits into from
Jan 12, 2024
Merged

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
"engines": {
"node": ">=20.9.0",
"yarn": ">=4.0.2"
},
"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
3 participants