UNPKG

react-declarative

Version:

A React form builder which interacts with a JSON endpoint to generate nested 12-column grids with input fields and automatic state management in a declarative style. Endpoint is typed by TypeScript guards (IntelliSense available). This tool is based on ma

14 lines (12 loc) 455 B
const rimraf = require('rimraf'); const path = require('path'); const fs = require('fs'); if (!fs.existsSync(path.join(__dirname, '../src'))) { try { const package = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')).toString()) Object.keys(package.peerDependencies).forEach((name) => { rimraf(path.join(__dirname, `../node_modules/${name}`), () => null) }) } catch { } }