|
2 | 2 | "name": "@sapphire/framework",
|
3 | 3 | "version": "4.8.2",
|
4 | 4 | "description": "Discord bot framework built for advanced and amazing bots.",
|
5 |
| - "main": "dist/index.js", |
6 |
| - "module": "dist/index.mjs", |
7 |
| - "types": "dist/index.d.ts", |
| 5 | + "main": "dist/cjs/index.cjs", |
| 6 | + "module": "dist/esm/index.mjs", |
| 7 | + "types": "dist/cjs/index.d.ts", |
8 | 8 | "exports": {
|
9 |
| - "import": "./dist/index.mjs", |
10 |
| - "require": "./dist/index.js", |
11 |
| - "types": "./dist/index.d.ts" |
| 9 | + "import": { |
| 10 | + "types": "./dist/esm/index.d.mts", |
| 11 | + "default": "./dist/esm/index.mjs" |
| 12 | + }, |
| 13 | + "require": { |
| 14 | + "types": "./dist/cjs/index.d.ts", |
| 15 | + "default": "./dist/cjs/index.cjs" |
| 16 | + } |
12 | 17 | },
|
13 | 18 | "author": "@sapphire",
|
14 | 19 | "license": "MIT",
|
|
20 | 25 | "test:watch": "vitest",
|
21 | 26 | "update": "yarn upgrade-interactive",
|
22 | 27 | "typecheck": "tsc -p tsconfig.eslint.json",
|
23 |
| - "build": "tsup && yarn build:esm && yarn build:types", |
24 |
| - "build:esm": "gen-esm-wrapper dist/index.js dist/index.mjs", |
25 |
| - "build:types": "tsc -b src", |
| 28 | + "build": "tsup", |
26 | 29 | "bump": "cliff-jumper",
|
27 | 30 | "check-update": "cliff-jumper --dry-run",
|
28 |
| - "prepack": "rollup-type-bundler -v -e node:url node:events" |
| 31 | + "prepack": "yarn build && concurrently \"yarn:prepack:*\"", |
| 32 | + "prepack:cjs": "rollup-type-bundler -d dist/cjs", |
| 33 | + "prepack:esm": "rollup-type-bundler -d dist/esm -t .mts" |
29 | 34 | },
|
30 | 35 | "dependencies": {
|
31 | 36 | "@discordjs/builders": "^1.7.0",
|
|
43 | 48 | "@commitlint/config-conventional": "^18.4.3",
|
44 | 49 | "@favware/cliff-jumper": "^2.2.3",
|
45 | 50 | "@favware/npm-deprecate": "^1.0.7",
|
46 |
| - "@favware/rollup-type-bundler": "^2.0.0", |
| 51 | + "@favware/rollup-type-bundler": "^3.1.0", |
47 | 52 | "@sapphire/eslint-config": "^5.0.2",
|
48 | 53 | "@sapphire/prettier-config": "^2.0.0",
|
49 | 54 | "@sapphire/ts-config": "^5.0.0",
|
|
52 | 57 | "@typescript-eslint/eslint-plugin": "^6.13.1",
|
53 | 58 | "@typescript-eslint/parser": "^6.13.1",
|
54 | 59 | "@vitest/coverage-v8": "^0.34.6",
|
| 60 | + "concurrently": "^8.2.2", |
55 | 61 | "cz-conventional-changelog": "^3.3.0",
|
56 | 62 | "discord.js": "^14.14.1",
|
57 | 63 | "esbuild-plugin-file-path-extensions": "^1.0.0",
|
|
63 | 69 | "gen-esm-wrapper": "^1.1.3",
|
64 | 70 | "lint-staged": "^15.1.0",
|
65 | 71 | "prettier": "^3.1.0",
|
66 |
| - "tsup": "^7.3.0", |
| 72 | + "tsup": "^8.0.1", |
67 | 73 | "typedoc": "^0.25.4",
|
68 | 74 | "typedoc-json-parser": "^9.0.1",
|
69 | 75 | "typescript": "^5.3.2",
|
|
0 commit comments