Skip to content

Commit

Permalink
style: Node Packages (#1394)
Browse files Browse the repository at this point in the history
Add the `node:` prefix to imports of node internal packages, making it easier to differentiate
  • Loading branch information
marcobiedermann committed Apr 29, 2024
1 parent 951ef79 commit 1290bdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'fs';
import * as https from 'https';
import * as path from 'path';
import * as fs from 'node:fs';
import * as https from 'node:https';
import * as path from 'node:path';

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

Expand Down
6 changes: 3 additions & 3 deletions src/validate.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as crypto from 'crypto';
import * as fs from 'fs';
import * as crypto from 'node:crypto';
import * as fs from 'node:fs';
import * as path from 'node:path';
import * as gpg from 'gpg';
import * as path from 'path';

import * as core from '@actions/core';
import {request} from 'undici';
Expand Down

0 comments on commit 1290bdd

Please sign in to comment.