0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00
penpot-plugins/tools/scripts/build-types.mjs
2024-06-10 14:44:14 +02:00

14 lines
441 B
JavaScript

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);
copy(`LICENSE`, `${dist}/LICENSE`).catch(handleErr);