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

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 +9 -3
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.12",
4
+ "version": "0.2.13",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "files": [
package/post-tinymce.js CHANGED
@@ -1,9 +1,15 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
+ import { fileURLToPath } from 'url';
3
4
 
4
- const sourceFile =
5
- 'node_modules/@lotte-innovate/ui-component-test/public/tinymce/skins/ui/oxide/content.min.css';
6
- const destinationFile = 'public/tinymce/skins/ui/oxide/content.min.css';
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ const sourceFile = path.join(
9
+ __dirname,
10
+ 'node_modules/@lotte-innovate/ui-component-test/public/tinymce/skins/ui/oxide/content.min.css',
11
+ );
12
+ const destinationFile = path.join(__dirname, 'public/tinymce/skins/ui/oxide/content.min.css');
7
13
 
8
14
  // sourceDir이 존재하지 않으면 로직 중단
9
15
  if (!fs.existsSync(sourceFile)) {