Skip to content

Commit 51e1c88

Browse files
committed
test: build before running the tests + add js file extension in the imports
1 parent ecc86b7 commit 51e1c88

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"main": "lib/index.js",
77
"scripts": {
8-
"test": "mocha --recursive test/ --timeout=0",
8+
"test": "npm run build && mocha --recursive test/ --timeout=0",
99
"report": "npx c8 npm test",
1010
"coverage": "npx c8 --reporter json npm test && npx codecov -f coverage/coverage-final.json",
1111
"install": "node installer.mjs",

src/createSfx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22

3-
import { createArchive } from './index';
3+
import { createArchive } from './index.js';
44
import when from 'when';
55
import { fileURLToPath } from 'url';
66
import { dirname, sep, join } from 'path';
77
import fs from 'fs-extra';
8-
import { Binary } from './utility';
8+
import { Binary } from './utility.js';
99
import { isWindows } from 'node-sys';
1010
const platformTitle = {
1111
win32: 'Windows OS',

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

33
import when from 'when';
4-
import { Files, ReplaceNativeSeparator, Run } from './utility';
5-
import { createSfx } from './createSfx';
4+
import { Files, ReplaceNativeSeparator, Run } from './utility.js';
5+
import { createSfx } from './createSfx.js';
66
import { isWindows } from 'node-sys';
77

88
function retry(

0 commit comments

Comments
 (0)