Skip to content

Commit

Permalink
inconsistent imports: some native imports doesn't use node protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
catplvsplus committed Apr 28, 2024
1 parent 88a05c4 commit 476f0df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/src/classes/managers/DataManager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ReadonlyCollection } from '@discordjs/collection';
import { RecipleClient } from '../structures/RecipleClient';
import { Collection } from 'discord.js';
import { randomBytes } from 'crypto';
import { randomBytes } from 'node:crypto';

export abstract class DataManager<T> {
protected _cache: Collection<string, T> = new Collection();
Expand Down
4 changes: 2 additions & 2 deletions packages/create-reciple/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { PackageManager, resolvePackageManager } from '@reciple/utils';
import { CliOptions } from './utils/types.js';
import { confirm, intro, isCancel, multiselect, outro, password, select, text } from '@clack/prompts';
import { Command } from 'commander';
import path from 'path';
import { existsSync, statSync } from 'fs';
import path from 'node:path';
import { existsSync, statSync } from 'node:fs';
import { kleur } from 'fallout-utility';
import availableAddons from './utils/addons.js';

Expand Down
4 changes: 2 additions & 2 deletions packages/create-reciple/src/utils/addons.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { writeFile } from 'fs/promises';
import { writeFile } from 'node:fs/promises';
import { runScript } from './helpers.js';
import path from 'path';
import path from 'node:path';

export type AddonModuleType = 'cjs'|'cts'|'mjs'|'mts';

Expand Down

0 comments on commit 476f0df

Please sign in to comment.