Skip to content

Commit a600c2e

Browse files
refactor(src): tidy imports
1 parent ed699f9 commit a600c2e

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
import os from 'node:os';
2+
13
import * as core from '@actions/core';
24
import * as exec from '@actions/exec';
35
import * as tc from '@actions/tool-cache';
4-
import os from 'os';
56

67
import { run } from '.';
78

89
jest.mock('@actions/core');
910
jest.mock('@actions/exec');
1011
jest.mock('@actions/tool-cache');
11-
jest.mock('os');
12+
jest.mock('node:os');
1213

1314
const mockedCore = jest.mocked(core);
1415
const mockedExec = jest.mocked(exec);

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import path from 'node:path';
2+
13
import { addPath, getInput, setFailed } from '@actions/core';
24
import { exec } from '@actions/exec';
35
import {
@@ -7,7 +9,6 @@ import {
79
extractZip,
810
find,
911
} from '@actions/tool-cache';
10-
import path from 'path';
1112

1213
import { getBinaryPath, getDownloadObject } from './utils';
1314

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import os from 'os';
2-
import path from 'path';
1+
import os from 'node:os';
2+
import path from 'node:path';
33

44
const ARCHITECTURE = {
55
arm: 'arm',

0 commit comments

Comments
 (0)