@douyinfe/semi-scss-compile 2.1.3 → 2.2.0-beta.0

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/README.md CHANGED
@@ -15,11 +15,11 @@ There are mainly the following two usage scenarios:
15
15
  ```shell
16
16
  npm i -g @douyinfe/semi-scss-compile
17
17
 
18
- semi-build-scss --foundation="path/to/foundation" --theme="path/to/theme" --icon="path/to/'@douyinfe/semi-icons'" --output="path/to/output.css" --min=true
18
+ semi-build-scss --foundation="path/to/foundation" --theme="path/to/theme" --icon="path/to/'@douyinfe/semi-icons'" --output="path/to/output.css" --min
19
19
 
20
20
  # or for short
21
21
 
22
- semi-build-scss -f "path/to/foundation" -t "path/to/theme" -i "path/to/'@douyinfe/semi-icons'" -o "path/to/output.css" -m true
22
+ semi-build-scss -f "path/to/foundation" -t "path/to/theme" -i "path/to/'@douyinfe/semi-icons'" -o "path/to/output.css" -m
23
23
 
24
24
  ```
25
25
 
package/lib/bin.js CHANGED
@@ -8,18 +8,18 @@ const arg_1 = __importDefault(require("arg"));
8
8
  const index_1 = require("./index");
9
9
  const main = () => {
10
10
  const userArgs = (0, arg_1.default)({
11
- "--foundation": String,
12
- "--theme": String,
13
- "--output": String,
14
- "--icon": String,
15
- "--min": Boolean,
16
- "-f": "--foundation",
17
- "-t": "--theme",
18
- "-i": "--icon",
19
- "-o": "--output",
20
- "-m": "--min"
11
+ '--foundation': String,
12
+ '--theme': String,
13
+ '--output': String,
14
+ '--icon': String,
15
+ '--min': Boolean,
16
+ '-f': '--foundation',
17
+ '-t': '--theme',
18
+ '-i': '--icon',
19
+ '-o': '--output',
20
+ '-m': '--min'
21
21
  }, { permissive: true });
22
- const { "--foundation": foundationPath, '--theme': themePath, '--output': outputPath, '--icon': iconPath, '--min': isMin } = userArgs;
22
+ const { '--foundation': foundationPath, '--theme': themePath, '--output': outputPath, '--icon': iconPath, '--min': isMin } = userArgs;
23
23
  console.log(`foundationPath: ${foundationPath},\nthemePath: ${themePath},\noutputPath: ${outputPath}\n`);
24
24
  if (foundationPath && themePath && iconPath && outputPath) {
25
25
  (0, index_1.compile)({
package/lib/bin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;;;;;AAEA,8CAAsB;AACtB,mCAAkC;AAElC,MAAM,IAAI,GAAG,GAAG,EAAE;IACd,MAAM,QAAQ,GAAG,IAAA,aAAG,EAAC;QACjB,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,MAAM;QACjB,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAC,MAAM;QACf,OAAO,EAAE,OAAO;QAEhB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAC,QAAQ;QACb,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KAChB,EAAE,EAAC,UAAU,EAAE,IAAI,EAAC,CAAC,CAAC;IACvB,MAAM,EAAC,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAC,QAAQ,EAAC,QAAQ,EAAC,OAAO,EAAE,KAAK,EAAC,GAAG,QAAQ,CAAC;IACjI,OAAO,CAAC,GAAG,CAAC,mBAAmB,cAAc,iBAAiB,SAAS,kBAAkB,UAAU,IAAI,CAAC,CAAC;IACzG,IAAI,cAAc,IAAI,SAAS,IAAI,QAAQ,IAAI,UAAU,EAAE;QACvD,IAAA,eAAO,EAAC;YACJ,cAAc,EAAC,SAAS,EAAC,QAAQ,EAAC,UAAU,EAAC,KAAK;SACrD,CAAC,CAAC;KACN;SAAM;QACH,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;AACL,CAAC,CAAC;AAEF,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;;;;;AAEA,8CAAsB;AACtB,mCAAkC;AAElC,MAAM,IAAI,GAAG,GAAG,EAAE;IACd,MAAM,QAAQ,GAAG,IAAA,aAAG,EAAC;QACjB,cAAc,EAAE,MAAM;QACtB,SAAS,EAAE,MAAM;QACjB,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,OAAO;QAEhB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KAChB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IACzB,MAAM,EACF,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,KAAK,EACjB,GAAG,QAAQ,CAAC;IACb,OAAO,CAAC,GAAG,CAAC,mBAAmB,cAAc,iBAAiB,SAAS,kBAAkB,UAAU,IAAI,CAAC,CAAC;IACzG,IAAI,cAAc,IAAI,SAAS,IAAI,QAAQ,IAAI,UAAU,EAAE;QACvD,IAAA,eAAO,EAAC;YACJ,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK;SACzD,CAAC,CAAC;KACN;SAAM;QACH,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;AACL,CAAC,CAAC;AAEF,IAAI,EAAE,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import generateScssMap from "./utils/generateSCSSMap";
2
- import writeFile from "./utils/writeFile";
3
- import compilerFromScssMap from "./utils/compiler";
1
+ import generateScssMap from './utils/generateSCSSMap';
2
+ import writeFile from './utils/writeFile';
3
+ import compilerFromScssMap from './utils/compiler';
4
4
  export interface Options {
5
5
  foundationPath: string;
6
6
  themePath: string;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8EAAsD;AAyBlD,0BAzBG,yBAAe,CAyBH;AAxBnB,kEAA0C;AA0BtC,oBA1BG,mBAAS,CA0BH;AAzBb,gEAAmD;AAwB/C,8BAxBG,kBAAmB,CAwBH;AAvBvB,gDAAwB;AACxB,wDAA0B;AAW1B,MAAM,OAAO,GAAG,CAAC,EAAC,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,GAAG,KAAK,EAAU,EAAE,EAAE;IAC1F,MAAM,OAAO,GAAG,IAAA,yBAAe,EAAC,cAAc,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACrE,MAAM,OAAO,GAAG,IAAA,mBAAS,EAAC,OAAO,CAAC,CAAA;IAClC,MAAM,MAAM,GAAG,IAAA,kBAAmB,EAAC,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC;IAC5E,kBAAE,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;AAC9C,CAAC,CAAC;AAIE,0BAAO"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8EAAsD;AAyBlD,0BAzBG,yBAAe,CAyBH;AAxBnB,kEAA0C;AA0BtC,oBA1BG,mBAAS,CA0BH;AAzBb,gEAAmD;AAwB/C,8BAxBG,kBAAmB,CAwBH;AAvBvB,gDAAwB;AACxB,wDAA0B;AAW1B,MAAM,OAAO,GAAG,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,GAAG,KAAK,EAAW,EAAE,EAAE;IAC5F,MAAM,OAAO,GAAG,IAAA,yBAAe,EAAC,cAAc,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACrE,MAAM,OAAO,GAAG,IAAA,mBAAS,EAAC,OAAO,CAAC,CAAC;IACnC,MAAM,MAAM,GAAG,IAAA,kBAAmB,EAAC,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC;IAC5E,kBAAE,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;AAC9C,CAAC,CAAC;AAIE,0BAAO"}
@@ -1,3 +1,3 @@
1
1
  import sass from 'sass';
2
- declare const compile: (entryScssPath: string, isMin?: boolean) => sass.Result;
2
+ declare const compile: (entryScssPath: string, isMin?: boolean) => sass.LegacyResult;
3
3
  export default compile;
@@ -5,7 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sass_1 = __importDefault(require("sass"));
7
7
  const compile = (entryScssPath, isMin = false) => {
8
- const result = sass_1.default.renderSync({ file: entryScssPath, outputStyle: isMin ? 'compressed' : 'expanded' });
8
+ const result = sass_1.default.renderSync({
9
+ file: entryScssPath,
10
+ outputStyle: isMin ? 'compressed' : 'expanded',
11
+ charset: false
12
+ });
9
13
  return result;
10
14
  };
11
15
  exports.default = compile;
@@ -1 +1 @@
1
- {"version":3,"file":"compiler.js","sourceRoot":"","sources":["../../src/utils/compiler.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AAGxB,MAAM,OAAO,GAAG,CAAC,aAAqB,EAAE,QAAiB,KAAK,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAG,cAAI,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC;IACxG,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"compiler.js","sourceRoot":"","sources":["../../src/utils/compiler.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AAGxB,MAAM,OAAO,GAAG,CAAC,aAAqB,EAAE,QAAiB,KAAK,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAG,cAAI,CAAC,UAAU,CAAC;QAC3B,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU;QAC9C,OAAO,EAAE,KAAK;KACjB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -42,7 +42,7 @@ const generateThemeScssMap = (themePath) => {
42
42
  const scssAbsolutePath = path_1.default.join(themePath, 'scss', fileName);
43
43
  if (fs_extra_1.default.existsSync(scssAbsolutePath)) {
44
44
  //in theme folder
45
- themeScssMap[fileName] = fs_extra_1.default.readFileSync(scssAbsolutePath, { encoding: "utf8" });
45
+ themeScssMap[fileName] = fs_extra_1.default.readFileSync(scssAbsolutePath, { encoding: 'utf8' });
46
46
  }
47
47
  }
48
48
  // console.log(themeScssMap)
@@ -1,3 +1,3 @@
1
- import generateScssMap from "./generateSCSSMap";
1
+ import generateScssMap from './generateSCSSMap';
2
2
  declare const writeFile: (scssMap: ReturnType<typeof generateScssMap>, tempDir?: string) => string;
3
3
  export default writeFile;
@@ -22,7 +22,7 @@ const writeThemeScss = (scssMap, tempDir) => {
22
22
  const themeDirPath = path_1.default.join(tempDir, 'theme');
23
23
  fs_extra_1.default.emptyDirSync(themeDirPath);
24
24
  for (const scssFileName of Object.keys(scssMap)) {
25
- fs_extra_1.default.writeFileSync(path_1.default.join(themeDirPath, scssFileName), scssMap[scssFileName], { encoding: "utf8" });
25
+ fs_extra_1.default.writeFileSync(path_1.default.join(themeDirPath, scssFileName), scssMap[scssFileName], { encoding: 'utf8' });
26
26
  }
27
27
  return;
28
28
  };
@@ -48,27 +48,27 @@ const preProcessScssMap = (scssMapOrigin) => {
48
48
  compilerEntryContent += `@import "./components/input/textarea.scss";\n`;
49
49
  //----- generate entry end -----
50
50
  //----- inject component token file local.scss to component's variables.scss -----
51
- const themeLocalRaw = scssMap.theme["local.scss"];
51
+ const themeLocalRaw = scssMap.theme['local.scss'];
52
52
  if (themeLocalRaw) {
53
53
  for (const componentName of Object.keys(scssMap['components'])) {
54
- if (scssMap["components"][componentName]['variables.scss']) {
55
- scssMap["components"][componentName]['variables.scss'] += `\n\n\n\n//inject custom theme variables\n${themeLocalRaw}`;
54
+ if (scssMap['components'][componentName]['variables.scss']) {
55
+ scssMap['components'][componentName]['variables.scss'] += `\n\n\n\n//inject custom theme variables\n${themeLocalRaw}`;
56
56
  }
57
57
  }
58
58
  }
59
59
  //----- inject end -----
60
60
  return Object.assign({
61
- components: scssMap["components"],
61
+ components: scssMap['components'],
62
62
  theme: lodash.omit(scssMap['theme'], 'local.scss')
63
63
  }, { index: compilerEntryContent });
64
64
  };
65
65
  const writeFile = (scssMap, tempDir = path_1.default.join(os_1.default.tmpdir(), `semi_scss_compile_${Date.now()}`)) => {
66
66
  fs_extra_1.default.emptyDirSync(tempDir);
67
67
  const finalScssMapWaitForCompiling = preProcessScssMap(scssMap);
68
- writeComponentScss(finalScssMapWaitForCompiling["components"], tempDir);
68
+ writeComponentScss(finalScssMapWaitForCompiling['components'], tempDir);
69
69
  writeThemeScss(finalScssMapWaitForCompiling['theme'], tempDir);
70
70
  //write compile entry
71
- fs_extra_1.default.writeFileSync(path_1.default.join(tempDir, 'index.scss'), finalScssMapWaitForCompiling['index'], { encoding: "utf8" });
71
+ fs_extra_1.default.writeFileSync(path_1.default.join(tempDir, 'index.scss'), finalScssMapWaitForCompiling['index'], { encoding: 'utf8' });
72
72
  return tempDir;
73
73
  };
74
74
  exports.default = writeFile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-scss-compile",
3
- "version": "2.1.3",
3
+ "version": "2.2.0-beta.0",
4
4
  "description": "compile semi scss to css",
5
5
  "author": "daiqiang@bytedance.com",
6
6
  "license": "MIT",
@@ -25,13 +25,12 @@
25
25
  "arg": "^5.0.1",
26
26
  "fs-extra": "^8.1.0",
27
27
  "lodash": "^4.17.21",
28
- "sass": "^1.43.4"
28
+ "sass": "^1.45.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/lodash": "^4.14.176",
32
- "@types/sass": "^1.43.0",
33
32
  "rimraf": "^3.0.2",
34
33
  "typescript": "^4.4.4"
35
34
  },
36
- "gitHead": "a11f15ed646efd74e254932f9ee63ad557bb1e80"
35
+ "gitHead": "e8ea6a96a5ddd73a178a797548497cd6a64eb14b"
37
36
  }
package/src/bin.ts CHANGED
@@ -1,27 +1,33 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import arg from "arg";
4
- import { compile } from "./index";
3
+ import arg from 'arg';
4
+ import { compile } from './index';
5
5
 
6
6
  const main = () => {
7
7
  const userArgs = arg({
8
- "--foundation": String,
9
- "--theme": String,
10
- "--output": String,
11
- "--icon":String,
12
- "--min": Boolean,
8
+ '--foundation': String,
9
+ '--theme': String,
10
+ '--output': String,
11
+ '--icon': String,
12
+ '--min': Boolean,
13
13
 
14
- "-f": "--foundation",
15
- "-t": "--theme",
16
- "-i":"--icon",
17
- "-o": "--output",
18
- "-m": "--min"
19
- }, {permissive: true});
20
- const {"--foundation": foundationPath, '--theme': themePath, '--output': outputPath,'--icon':iconPath,'--min': isMin} = userArgs;
14
+ '-f': '--foundation',
15
+ '-t': '--theme',
16
+ '-i': '--icon',
17
+ '-o': '--output',
18
+ '-m': '--min'
19
+ }, { permissive: true });
20
+ const {
21
+ '--foundation': foundationPath,
22
+ '--theme': themePath,
23
+ '--output': outputPath,
24
+ '--icon': iconPath,
25
+ '--min': isMin
26
+ } = userArgs;
21
27
  console.log(`foundationPath: ${foundationPath},\nthemePath: ${themePath},\noutputPath: ${outputPath}\n`);
22
28
  if (foundationPath && themePath && iconPath && outputPath) {
23
29
  compile({
24
- foundationPath,themePath,iconPath,outputPath,isMin
30
+ foundationPath, themePath, iconPath, outputPath, isMin
25
31
  });
26
32
  } else {
27
33
  console.error('Error: lack of args.');
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
- import generateScssMap from "./utils/generateSCSSMap";
2
- import writeFile from "./utils/writeFile";
3
- import compilerFromScssMap from "./utils/compiler";
4
- import path from "path";
1
+ import generateScssMap from './utils/generateSCSSMap';
2
+ import writeFile from './utils/writeFile';
3
+ import compilerFromScssMap from './utils/compiler';
4
+ import path from 'path';
5
5
  import fs from 'fs-extra';
6
6
 
7
7
 
@@ -13,9 +13,9 @@ export interface Options {
13
13
  isMin?: boolean,
14
14
  }
15
15
 
16
- const compile = ({foundationPath, themePath, iconPath, outputPath, isMin = false}: Options) => {
16
+ const compile = ({ foundationPath, themePath, iconPath, outputPath, isMin = false }: Options) => {
17
17
  const scssMap = generateScssMap(foundationPath, themePath, iconPath);
18
- const tempDir = writeFile(scssMap)
18
+ const tempDir = writeFile(scssMap);
19
19
  const result = compilerFromScssMap(path.join(tempDir, 'index.scss'), isMin);
20
20
  fs.outputFileSync(outputPath, result.css);
21
21
  };
@@ -2,7 +2,11 @@ import sass from 'sass';
2
2
 
3
3
 
4
4
  const compile = (entryScssPath: string, isMin: boolean = false) => {
5
- const result = sass.renderSync({ file: entryScssPath, outputStyle: isMin ? 'compressed' : 'expanded' });
5
+ const result = sass.renderSync({
6
+ file: entryScssPath,
7
+ outputStyle: isMin ? 'compressed' : 'expanded',
8
+ charset: false
9
+ });
6
10
  return result;
7
11
  };
8
12
 
@@ -1,5 +1,5 @@
1
1
  import path from 'path';
2
- import fs from "fs-extra";
2
+ import fs from 'fs-extra';
3
3
  import { set } from 'lodash';
4
4
 
5
5
  const lodash = { set };
@@ -44,7 +44,7 @@ const generateThemeScssMap = (themePath: string) => {
44
44
  const scssAbsolutePath = path.join(themePath, 'scss', fileName);
45
45
  if (fs.existsSync(scssAbsolutePath)) {
46
46
  //in theme folder
47
- themeScssMap[fileName] = fs.readFileSync(scssAbsolutePath, { encoding: "utf8" });
47
+ themeScssMap[fileName] = fs.readFileSync(scssAbsolutePath, { encoding: 'utf8' });
48
48
  }
49
49
  }
50
50
  // console.log(themeScssMap)
@@ -1,8 +1,8 @@
1
1
  import fs from 'fs-extra';
2
2
  import path from 'path';
3
3
  import os from 'os';
4
- import generateScssMap from "./generateSCSSMap";
5
- import { cloneDeep, omit } from "lodash";
4
+ import generateScssMap from './generateSCSSMap';
5
+ import { cloneDeep, omit } from 'lodash';
6
6
 
7
7
  const lodash = { cloneDeep, omit };
8
8
 
@@ -22,7 +22,7 @@ const writeThemeScss = (scssMap: (ReturnType<typeof generateScssMap>)['theme'],
22
22
  fs.emptyDirSync(themeDirPath);
23
23
 
24
24
  for (const scssFileName of Object.keys(scssMap)) {
25
- fs.writeFileSync(path.join(themeDirPath, scssFileName), scssMap[scssFileName as keyof typeof scssMap] as string, { encoding: "utf8" });
25
+ fs.writeFileSync(path.join(themeDirPath, scssFileName), scssMap[scssFileName as keyof typeof scssMap] as string, { encoding: 'utf8' });
26
26
  }
27
27
  return;
28
28
  };
@@ -52,11 +52,11 @@ const preProcessScssMap = (scssMapOrigin: ReturnType<typeof generateScssMap>) =>
52
52
 
53
53
 
54
54
  //----- inject component token file local.scss to component's variables.scss -----
55
- const themeLocalRaw = scssMap.theme["local.scss"];
55
+ const themeLocalRaw = scssMap.theme['local.scss'];
56
56
  if (themeLocalRaw) {
57
57
  for (const componentName of Object.keys(scssMap['components'])) {
58
- if (scssMap["components"][componentName]['variables.scss']) {
59
- scssMap["components"][componentName]['variables.scss'] += `\n\n\n\n//inject custom theme variables\n${themeLocalRaw}`;
58
+ if (scssMap['components'][componentName]['variables.scss']) {
59
+ scssMap['components'][componentName]['variables.scss'] += `\n\n\n\n//inject custom theme variables\n${themeLocalRaw}`;
60
60
  }
61
61
  }
62
62
  }
@@ -64,7 +64,7 @@ const preProcessScssMap = (scssMapOrigin: ReturnType<typeof generateScssMap>) =>
64
64
 
65
65
  return {
66
66
  ...{
67
- components: scssMap["components"],
67
+ components: scssMap['components'],
68
68
  theme: lodash.omit(scssMap['theme'], 'local.scss')
69
69
  },
70
70
  index: compilerEntryContent
@@ -76,10 +76,10 @@ const writeFile = (scssMap: ReturnType<typeof generateScssMap>, tempDir: string
76
76
  fs.emptyDirSync(tempDir);
77
77
 
78
78
  const finalScssMapWaitForCompiling = preProcessScssMap(scssMap);
79
- writeComponentScss(finalScssMapWaitForCompiling["components"], tempDir);
79
+ writeComponentScss(finalScssMapWaitForCompiling['components'], tempDir);
80
80
  writeThemeScss(finalScssMapWaitForCompiling['theme'], tempDir);
81
81
  //write compile entry
82
- fs.writeFileSync(path.join(tempDir, 'index.scss'), finalScssMapWaitForCompiling['index'], { encoding: "utf8" });
82
+ fs.writeFileSync(path.join(tempDir, 'index.scss'), finalScssMapWaitForCompiling['index'], { encoding: 'utf8' });
83
83
  return tempDir;
84
84
  };
85
85