Skip to content

Commit e759bde

Browse files
author
Bernie Zang
committed
fix(tooling): Fix transpile and postcss script
1 parent 8da1869 commit e759bde

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

scripts/build/commands/transpile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ module.exports = {
99
if (packagePath) {
1010
transpile(packageName, packagePath);
1111
}
12-
transpile(packageName, `./packages/node_modules/@ciscospark/${packageName}`, `es`);
12+
else {
13+
transpile(packageName, `./packages/node_modules/@ciscospark/${packageName}`);
14+
}
1315
}
1416
}
1517
};

scripts/utils/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ function buildFile(filename, destination, babelOptions = {}) {
108108
return outputFileSync(outputPath, result.code, {encoding: `utf8`});
109109
}
110110
// process with postcss if it's a css file
111-
// else if (ext === `.css`) {
112-
// return execSync(`postcss ${filename} -o ${outputPath}`);
113-
// }
111+
else if (ext === `.css`) {
112+
return execSync(`postcss ${filename} -o ${outputPath}`);
113+
}
114114
// Copy if it's any other type of file
115115
return outputFileSync(outputPath, content);
116116
}

0 commit comments

Comments
 (0)