-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.mjs
More file actions
26 lines (23 loc) · 837 Bytes
/
index.mjs
File metadata and controls
26 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* ES Module uyumlu giriş noktası.
*
* CommonJS olarak yazılmış `index.js` modülünü `createRequire` aracılığıyla
* yükler ve hem adlandırılmış (`export { TopluyoBOT }`) hem de varsayılan
* (`export default TopluyoBOT`) olarak dışa aktarır.
*
* Bu dosya doğrudan import edilmemeli; `package.json` içindeki
* `exports["."}.import` alanı üzerinden otomatik olarak seçilir.
*
* @module topluyo-bot/esm
*/
import { createRequire } from 'module';
/** Node.js ESM ortamında CommonJS `require` fonksiyonunu kullanılabilir kılar. */
const require = createRequire(import.meta.url);
/**
* `TopluyoBOT` fonksiyonu — bkz. {@link ./index.js} ve `index.d.mts`.
*
* @type {import('./index.d.mts').default}
*/
const TopluyoBOT = require('./index.js');
export { TopluyoBOT };
export default TopluyoBOT;