zaileys 1.1.40-tx.4 → 1.1.40-tx.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +11 -2
  2. package/tsup.config.ts +0 -40
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "zaileys",
3
- "version": "1.1.40-tx.4",
3
+ "version": "1.1.40-tx.6",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
- "module": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "require": "./dist/index.js",
11
+ "import": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
8
16
  "author": "zaadevofc",
9
17
  "repository": {
10
18
  "url": "git+https://github.com/zeative/zaileys.git"
@@ -17,6 +25,7 @@
17
25
  "r:major": "npm run build && npm version major && npm publish"
18
26
  },
19
27
  "devDependencies": {
28
+ "@types/node": "^24.10.1",
20
29
  "@types/qrcode-terminal": "^0.12.2",
21
30
  "rolldown": "1.0.0-beta.52",
22
31
  "rolldown-plugin-dts": "^0.18.1",
package/tsup.config.ts DELETED
@@ -1,40 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
- import pkg from './package.json' assert { type: 'json' };
3
-
4
- const banner = `
5
- /*
6
- * Copyright (c) ${new Date().getFullYear()} Zeative Media.
7
- * All rights reserved.
8
- * Licensed under the MIT License.
9
- * See LICENSE file for details.
10
-
11
- * Author: zaadevofc
12
- * Last build time: ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}
13
- *
14
- * Repository: ${pkg.repository.url}
15
- */
16
- `;
17
-
18
- export default defineConfig({
19
- entry: ['src/index.ts'],
20
- format: ['cjs', 'esm'],
21
- dts: true,
22
- splitting: false,
23
- clean: true,
24
- minify: true,
25
- outDir: 'dist',
26
- sourcemap: false,
27
- treeshake: true,
28
- legacyOutput: false,
29
- shims: true,
30
- banner: {
31
- js: banner,
32
- },
33
- outExtension({ format }) {
34
- return {
35
- js: format === 'cjs' ? '.js' : '.mjs',
36
- };
37
- },
38
- tsconfig: './tsconfig.json',
39
- noExternal: [],
40
- });