-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
feat: export sapphire package version #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work because changing the rootDir
causes the output to have /dist/src
instead of just all the files from src
There are ways to inject the data at build time through Rollup, so if you want this feature then please look into such an option and validate the output bundle with the prepublishOnly
script as opposed to build
. Note that you'll have to run Rollup twice, once to replace the value, once to bundle the types as happens now.
@@ -43,3 +43,5 @@ export * from './lib/utils/preconditions/containers/PermissionsPrecondition'; | |||
export * from './lib/utils/preconditions/IPreconditionContainer'; | |||
export * from './lib/utils/preconditions/PreconditionContainerArray'; | |||
export * from './lib/utils/preconditions/PreconditionContainerSingle'; | |||
|
|||
export const version = '[VI]{version}[/VI]'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After prepublishOnly
script this is replaced with the following in dist/index.js
:
exports.version = '1.0.0-alpha.11';
No description provided.