@lotte-innovate/ui-component-test 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/post-tinymce.js +7 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lotte-innovate/ui-component-test",
3
3
  "description": "Lotte UI Library",
4
- "version": "0.2.11",
4
+ "version": "0.2.12",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "files": [
package/post-tinymce.js CHANGED
@@ -5,10 +5,17 @@ const sourceFile =
5
5
  'node_modules/@lotte-innovate/ui-component-test/public/tinymce/skins/ui/oxide/content.min.css';
6
6
  const destinationFile = 'public/tinymce/skins/ui/oxide/content.min.css';
7
7
 
8
+ // sourceDir이 존재하지 않으면 로직 중단
9
+ if (!fs.existsSync(sourceFile)) {
10
+ console.error(`Error: Directory ${sourceFile} does not exist.`);
11
+ process.exit(1);
12
+ }
13
+
8
14
  function copyFile(src, dest) {
9
15
  const destDir = path.dirname(dest);
10
16
 
11
17
  if (!fs.existsSync(destDir)) {
18
+ console.log(`${destDir} 존재하지 않음`);
12
19
  fs.mkdirSync(destDir, { recursive: true });
13
20
  }
14
21