@lotte-innovate/ui-component-test 0.2.20 → 0.2.22

Sign up to get free protection for your applications and to get access to all the features.
package/post-tinymce.js DELETED
@@ -1,32 +0,0 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import { fileURLToPath } from 'url';
4
-
5
- const __filename = fileURLToPath(import.meta.url);
6
- const __dirname = path.dirname(__filename);
7
-
8
- const sourceFile = path.join(__dirname, 'public/tinymce/skins/ui/oxide/content.min.css');
9
- const destinationFile = path.join(
10
- __dirname,
11
- '../../../public/tinymce/skins/ui/oxide/content.min.css',
12
- );
13
-
14
- // sourceDir이 존재하지 않으면 로직 중단
15
- if (!fs.existsSync(sourceFile)) {
16
- console.error(`Error: Directory ${sourceFile} does not exist.`);
17
- process.exit(1);
18
- }
19
-
20
- function copyFile(src, dest) {
21
- const destDir = path.dirname(dest);
22
-
23
- if (!fs.existsSync(destDir)) {
24
- fs.mkdirSync(destDir, { recursive: true });
25
- }
26
-
27
- // 파일 복사
28
- fs.copyFileSync(src, dest);
29
- console.log(`파일이 성공적으로 복사되었습니다: ${dest}`);
30
- }
31
-
32
- copyFile(sourceFile, destinationFile);