UNPKG

@studiometa/webpack-config-preset-prototyping

Version:

[![NPM Version](https://img.shields.io/npm/v/@studiometa/webpack-config-preset-prototyping.svg?style=flat-square)](https://www.npmjs.com/package/@studiometa/webpack-config-preset-vue-2)

11 lines (7 loc) 367 B
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));