Skip to content

Conversation

@MSNev
Copy link
Collaborator

@MSNev 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

@MSNev MSNev force-pushed the MSNev/ReleaseFixes branch from 0ea9802 to 65573f5 Compare April 5, 2023 20:06
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import { getGlobal, objAssign, objCreate, objDefineProp, objHasOwnProperty, throwTypeError } from "@nevware21/ts-utils";
Copy link
Collaborator Author

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({
Copy link
Collaborator Author

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"
},
{
Copy link
Collaborator Author

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.

@MSNev MSNev force-pushed the MSNev/ReleaseFixes branch 2 times, most recently from 50aa0af to a161b44 Compare April 5, 2023 23:22
@MSNev MSNev force-pushed the MSNev/ReleaseFixes branch from a161b44 to c340caa Compare April 6, 2023 18:16
- Fix publishing content of npm packages
- Fix issues related to dependencies for tests
- Update Release Packaging location
- Update NPM publish scripts
@MSNev MSNev force-pushed the MSNev/ReleaseFixes branch from c340caa to 9bb0889 Compare April 6, 2023 19:32
@MSNev MSNev merged commit 2fd5118 into main Apr 6, 2023
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.

3 participants