mirror of
https://github.com/Azure/setup-helm.git
synced 2025-10-20 17:46:30 +00:00
Add node modules and new code for release (#57)
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
da63a48ad7
commit
a517f2ff65
28
node_modules/jest-cli/build/init/modifyPackageJson.js
generated
vendored
Normal file
28
node_modules/jest-cli/build/init/modifyPackageJson.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
const modifyPackageJson = ({projectPackageJson, shouldModifyScripts}) => {
|
||||
if (shouldModifyScripts) {
|
||||
projectPackageJson.scripts
|
||||
? (projectPackageJson.scripts.test = 'jest')
|
||||
: (projectPackageJson.scripts = {
|
||||
test: 'jest'
|
||||
});
|
||||
}
|
||||
|
||||
delete projectPackageJson.jest;
|
||||
return JSON.stringify(projectPackageJson, null, 2) + '\n';
|
||||
};
|
||||
|
||||
var _default = modifyPackageJson;
|
||||
exports.default = _default;
|
Reference in New Issue
Block a user