mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: fix file path (#8391)
* chore: fix file path * chore: emit only mjs
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
import { createUnbuildConfig } from '../../build.config';
|
import { createUnbuildConfig } from '../../build.config';
|
||||||
|
|
||||||
export default createUnbuildConfig({ minify: true });
|
export default createUnbuildConfig({ minify: true, emitCJS: false });
|
||||||
|
|||||||
@@ -10,14 +10,8 @@
|
|||||||
"format": "prettier --write . && eslint src __tests__ --ext mjs,js,ts --fix",
|
"format": "prettier --write . && eslint src __tests__ --ext mjs,js,ts --fix",
|
||||||
"fmt": "yarn format"
|
"fmt": "yarn format"
|
||||||
},
|
},
|
||||||
"main": "./dist/index.cjs",
|
"main": "./dist/index.mjs",
|
||||||
"module": "./dist/index.mjs",
|
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
|
||||||
"import": "./dist/index.mjs",
|
|
||||||
"require": "./dist/index.cjs",
|
|
||||||
"types": "./dist/index.d.ts"
|
|
||||||
},
|
|
||||||
"directories": {
|
"directories": {
|
||||||
"lib": "src",
|
"lib": "src",
|
||||||
"test": "__tests__"
|
"test": "__tests__"
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ outputs:
|
|||||||
description: 'The semver string that was extracted from this tag'
|
description: 'The semver string that was extracted from this tag'
|
||||||
runs:
|
runs:
|
||||||
using: node16
|
using: node16
|
||||||
main: ../../dist/formatTag/index.js
|
main: ../../dist/formatTag/index.mjs
|
||||||
|
|||||||
Reference in New Issue
Block a user