Skip to content

Commit 1290bdd

Browse files
style: Node Packages (#1394)
Add the `node:` prefix to imports of node internal packages, making it easier to differentiate
1 parent 951ef79 commit 1290bdd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as fs from 'fs';
2-
import * as https from 'https';
3-
import * as path from 'path';
1+
import * as fs from 'node:fs';
2+
import * as https from 'node:https';
3+
import * as path from 'node:path';
44

55
import * as exec from '@actions/exec';
66

src/validate.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as crypto from 'crypto';
2-
import * as fs from 'fs';
1+
import * as crypto from 'node:crypto';
2+
import * as fs from 'node:fs';
3+
import * as path from 'node:path';
34
import * as gpg from 'gpg';
4-
import * as path from 'path';
55

66
import * as core from '@actions/core';
77
import {request} from 'undici';

0 commit comments

Comments
 (0)