Skip to content

Commit

Permalink
chore(ci): update copy.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Mar 14, 2024
1 parent 9844cfe commit a98c022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/copyh5.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const replaceFile = (file) => {
const target = path.resolve('src/packages/__VUE/', left, 'demo', `${right}.vue`);
let code = '';
try {
code = fs.readFileSync(target, 'utf-8');
code = fs.readFileSync(target, 'utf-8').trim();
} catch (err) {
code =
'[script] copy:h5 File not found: ' + target;
Expand Down
2 changes: 1 addition & 1 deletion scripts/copytaro.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const replaceFile = (file) => {
const target = path.resolve('packages/nutui-taro-demo/src', type, 'pages', left, `${right}.vue`);
let code = '';
try {
code = fs.readFileSync(target, 'utf-8');
code = fs.readFileSync(target, 'utf-8').trim();
} catch (err) {
code =
'[script] copy:h5 File not found: ' + target;
Expand Down

0 comments on commit a98c022

Please sign in to comment.