-
Notifications
You must be signed in to change notification settings - Fork 255
[Main] Add npm-pack and npm-publish tasks #2033
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
Conversation
MSNev
commented
Apr 5, 2023
- Fix publishing content of npm packages
- Fix issues related to dependencies for tests
- Update Release Packaging location
- Update NPM publish scripts
0ea9802 to
65573f5
Compare
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import { getGlobal, objAssign, objCreate, objDefineProp, objHasOwnProperty, throwTypeError } from "@nevware21/ts-utils"; |
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.
Re-Using the ts-utils versions to avoid the repeated code -- provides smaller final code.
| } | ||
| }); | ||
|
|
||
| this.testCase({ |
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.
Just adding tests so that unexpected changes from ts-utils don't break this functionality
| funcNames: [ /[^\w\"\']Date\.(now)\(/g ], | ||
| errorMsg: "[%funcName%] is not supported Date method in a IE/ES5 environment, use a helper function or add explicit check for existence" | ||
| }, | ||
| { |
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.
We didn't need most of these previously because TypeScript with ES3 targeting stopped us, now that we are targeting ES5 and we still support IE then we needed to add these new restrictions.
50aa0af to
a161b44
Compare
a161b44 to
c340caa
Compare
- Fix publishing content of npm packages - Fix issues related to dependencies for tests - Update Release Packaging location - Update NPM publish scripts
c340caa to
9bb0889
Compare