0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-08 07:50:44 -05:00
penpot-plugins/tools/scripts/build-types.mjs

14 lines
388 B
JavaScript
Raw Normal View History

2024-03-27 07:57:02 -05:00
import { copy } from 'fs-extra';
const source = 'libs/plugin-types';
const dist = 'dist/plugin-types';
const handleErr = (err) => {
console.error(err);
process.exit(1);
};
copy(`${source}/package.json`, `${dist}/package.json`).catch(handleErr);
copy(`${source}/README.md`, `${dist}/README.md`).catch(handleErr);
copy(`${source}/index.d.ts`, `${dist}/index.d.ts`).catch(handleErr);