aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-01 15:40:31 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-01 15:40:31 -0400
commit13894f2beffc776a56ac03868613b4313dfb57bf (patch)
tree028c229b42c2a74a3c511386f594385d3ed77dd5 /package.json
parent914c4d3cb7f02a0c74b677e67a47fb66a65fb724 (diff)
downloadtanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.tar.gz
tanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.tar.bz2
tanzanite-13894f2beffc776a56ac03868613b4313dfb57bf.zip
convert to esm
Diffstat (limited to 'package.json')
-rw-r--r--package.json24
1 files changed, 13 insertions, 11 deletions
diff --git a/package.json b/package.json
index 65f2051..dea44ed 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "3.0.0",
"description": "A multipurpose moderation bot developed for Moulberry's Bush.",
"main": "dist/src/bot.js",
- "type": "commonjs",
+ "type": "module",
"repository": "https://github.com/NotEnoughUpdates/bush-bot-3.0",
"author": "IRONM00N#0001 (@IRONM00N)",
"contributors": [
@@ -15,17 +15,21 @@
"Zordlan#3560 (@Zordlan)"
],
"license": "CC-BY-NC-SA-4.0",
- "_moduleAliases": {
- "@root": ".",
- "@lib": "dist/src/lib"
+ "imports": {
+ "#root": {
+ "default/*": "./*"
+ },
+ "#lib": {
+ "default": "./src/lib/index.js"
+ }
},
"scripts": {
- "build:esbuild": "yarn rimraf dist && yarn esbuild --sourcemap=inline --outdir=dist --platform=node --target=es2020 --format=cjs --log-level=warning src/**/*.ts",
+ "build:esbuild": "yarn rimraf dist && yarn esbuild --sourcemap=inline --outdir=dist --platform=node --target=es2020 --format=esm --log-level=warning src/**/*.ts",
"build:tsc": "yarn rimraf dist && yarn tsc",
"build:tsc:no-emit": "yarn rimraf dist && yarn tsc --noEmit",
- "_start": "yarn build:esbuild && node --trace-warnings dist/src/bot.js",
- "start": "yarn build:tsc && node --trace-warnings dist/src/bot.js",
- "dev": "yarn build:tsc && node --trace-warnings dist/src/bot.js",
+ "_start": "yarn build:esbuild && node --experimental-json-modules --no-warnings dist/src/bot.js",
+ "start": "yarn build:tsc && node --experimental-json-modules --no-warnings dist/src/bot.js",
+ "dev": "yarn build:tsc && node --experimental-json-modules --no-warnings dist/src/bot.js",
"test": "yarn lint && yarn tsc --noEmit",
"format": "yarn prettier . --write",
"lint": "yarn eslint --ext js,jsx,ts,tsx src",
@@ -50,7 +54,6 @@
"humanize-duration": "^3.27.0",
"lodash": "^4.17.21",
"mathjs": "^9.5.0",
- "module-alias": "^2.2.2",
"moment": "^2.29.1",
"nanoid": "^3.1.28",
"node-os-utils": "^1.3.5",
@@ -72,7 +75,6 @@
"@types/express": "^4.17.13",
"@types/humanize-duration": "^3.25.1",
"@types/lodash": "^4.14.176",
- "@types/module-alias": "^2.0.1",
"@types/node": "^16.11.6",
"@types/node-os-utils": "^1.2.0",
"@types/numeral": "^2.0.2",
@@ -184,4 +186,4 @@
]
},
"packageManager": "yarn@3.1.0"
-} \ No newline at end of file
+}