Skip to content

Commit

Permalink
chore(build): refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jfactory-es committed Nov 2, 2024
1 parent 79df7c3 commit cf0553c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/build/build.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { loadConfigFile } = require('rollup/loadConfigFile');
const { envCheck } = require('../lib/env');
const { formatBytes } = require('../lib/utils');
const { envCheck } = require('../lib/env.cjs');
const { formatBytes } = require('../lib/utils.cjs');
const path = require('node:path');
const rollup = require('rollup').rollup;
const colors = require('ansi-colors');
Expand Down
4 changes: 2 additions & 2 deletions scripts/build/rollup.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const packageJson = require('../../package.json');
const replace = require('../lib/utils').replace;
const stringify = require('../lib/utils').stringify;
const replace = require('../lib/utils.cjs').replace;
const stringify = require('../lib/utils.cjs').stringify;
const replacePlugin = require('@rollup/plugin-replace');
const path = require('path');
const fs = require('fs');
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/env.js → scripts/lib/env.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ function warnIfStr(test, val, msg) {

module.exports = {
envCheck
}
};
2 changes: 1 addition & 1 deletion scripts/lib/utils.js → scripts/lib/utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ module.exports = {
replace,
stringify,
formatBytes
}
};

0 comments on commit cf0553c

Please sign in to comment.