@studiometa/webpack-config-preset-prototyping
Version:
[](https://www.npmjs.com/package/@studiometa/webpack-config-preset-vue-2)
11 lines (7 loc) • 367 B
JavaScript
import fs from 'node:fs';
import path from 'node:path';
const dirname = path.dirname(new URL(import.meta.url).pathname);
const pkgPath = path.resolve(dirname, '../package.json');
const pkg = JSON.parse(fs.readFileSync(pkgPath));
pkg.dependencies['@studiometa/webpack-config-preset-markdown'] = pkg.version;
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));