Skip to content

Commit 959a05a

Browse files
committed
Specify node packages internally
1 parent 1e7fc84 commit 959a05a

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

node-src/lib/turbosnap/findChangedDependencies.ts

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

55
import { checkoutFile, findFilesFromRepositoryRoot, getRepositoryRoot } from '../../git/git';
66
import { Context } from '../../types';

node-src/lib/turbosnap/getDependencies.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import fs, { statSync as unmockedStatSync } from 'fs';
2-
import os from 'os';
3-
import path from 'path';
1+
import fs, { statSync as unmockedStatSync } from 'node:fs';
2+
import os from 'node:os';
3+
import path from 'node:path';
4+
45
import { inspect as unmockedInspect } from 'snyk-nodejs-plugin';
56
import { fileURLToPath } from 'url';
67
import { describe, expect, it, Mock, vi } from 'vitest';

node-src/ui/components/icons.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import process from 'node:process';
2-
31
import chalk from 'chalk';
2+
import process from 'process';
43

54
const isSupported =
65
process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color';

node-src/ui/messages/errors/fatalError.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import chalk from 'chalk';
22
import pluralize from 'pluralize';
3+
import process from 'process';
34
import stripAnsi from 'strip-ansi';
45
import { dedent } from 'ts-dedent';
56

node-src/ui/messages/info/storybookPublished.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const baseContext = createBaseContext({
3737
...createBaseBuild(),
3838
id: 'test-id',
3939
status: 'PASSED',
40-
storybookUrl: 'https://5d67dc0374b2e300209c41e7-pfkaemtlit.chromatic.com/',
4140
},
41+
storybookUrl: 'https://5d67dc0374b2e300209c41e7-pfkaemtlit.chromatic.com/',
4242
});
4343

4444
export default {

scripts/run-via-node.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env node
22

3-
import process from 'process';
3+
import process from 'node:process';
4+
45
import { run } from '../dist/node.js';
56

67
run({

0 commit comments

Comments
 (0)