@edbzn/nuxt
Version:
<img src="https://github.com/edbzn/nx-nuxt/blob/master/logo.png" alt="@edbzn/nuxt logo" width="500" />
33 lines • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateBabel = exports.updateNxJson = void 0;
const workspace_1 = require("@nrwl/workspace");
function updateNxJson(options) {
return workspace_1.updateJsonInTree('nx.json', (json) => {
json.projects[options.projectName] = { tags: options.parsedTags };
return json;
});
}
exports.updateNxJson = updateNxJson;
function updateBabel(options) {
return workspace_1.updateJsonInTree('.babelrc', (json) => {
return {
env: {
test: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
},
},
};
});
}
exports.updateBabel = updateBabel;
//# sourceMappingURL=update-nx-json.js.map