@lotte-innovate/ui-component-test 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/post-tinymce.js +7 -0
package/package.json
CHANGED
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
|
|