initial
This commit is contained in:
32
ts/plugins.ts
Normal file
32
ts/plugins.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Plugin dependencies for the mailer package
|
||||
* Imports both Deno standard library and Node.js compatibility
|
||||
*/
|
||||
|
||||
// Deno standard library
|
||||
export * as path from '@std/path';
|
||||
export * as colors from '@std/fmt/colors';
|
||||
export * as cli from '@std/cli';
|
||||
export { serveDir } from '@std/http/file-server';
|
||||
export * as crypto from '@std/crypto';
|
||||
|
||||
// Cloudflare API client
|
||||
import * as cloudflareImport from '@apiclient.xyz/cloudflare';
|
||||
export const cloudflare = cloudflareImport;
|
||||
|
||||
// Node.js compatibility - needed for SMTP and email processing
|
||||
// We import these as npm: specifiers for Node.js modules that don't have Deno equivalents
|
||||
import { EventEmitter } from 'node:events';
|
||||
import * as net from 'node:net';
|
||||
import * as tls from 'node:tls';
|
||||
import * as dns from 'node:dns';
|
||||
import * as fs from 'node:fs';
|
||||
import * as os from 'node:os';
|
||||
import * as process from 'node:process';
|
||||
import * as buffer from 'node:buffer';
|
||||
|
||||
export { EventEmitter };
|
||||
export { net, tls, dns, fs, os, process, buffer };
|
||||
|
||||
// Re-export Buffer for convenience
|
||||
export const Buffer = buffer.Buffer;
|
||||
Reference in New Issue
Block a user