Skip to content

Commit c04508f

Browse files
committed
refactor: migrate to ES modules
1 parent 32f6a41 commit c04508f

File tree

158 files changed

+11322
-9962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+11322
-9962
lines changed
File renamed without changes.
File renamed without changes.

Herebyfile.mjs renamed to Herebyfile.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16-
import { LicenseChecker } from 'js-green-licenses';
16+
import path from 'node:path';
17+
1718
import { execa } from 'execa';
18-
import path from 'path';
1919
import { task } from 'hereby';
20+
import { LicenseChecker } from 'js-green-licenses';
2021

2122
const BIN_DIR = 'node_modules/.bin';
2223
const JSDOC_BIN = 'packages/jsdoc/jsdoc.js';
2324
const NODE_BIN = process.execPath;
2425

25-
const sourceGlob = ['*.js', '*.mjs', 'packages/**/*.js'];
26+
const sourceGlob = ['*.cjs', '*.js', 'packages/**/*/*.cjs', 'packages/**/*.js'];
2627

2728
function bin(name) {
2829
return path.join(BIN_DIR, name);
@@ -32,7 +33,7 @@ export const coverage = task({
3233
name: 'coverage',
3334
run: async () => {
3435
await execa(bin('c8'), [
35-
'--exclude=Herebyfile.mjs',
36+
'--exclude=Herebyfile.js',
3637
"--exclude='**/test{,s}/**'",
3738
'--reporter=html',
3839
bin('hereby'),
@@ -99,7 +100,7 @@ export const licenseCheck = task({
99100
export const lint = task({
100101
name: 'lint',
101102
run: async () => {
102-
await execa(bin('eslint'), [...sourceGlob]);
103+
await execa(bin('eslint'), [...sourceGlob], { stdout: 'inherit', stderr: 'inherit' });
103104
},
104105
});
105106

0 commit comments

Comments
 (0)