hybrid package (not tested)

This commit is contained in:
mmacierzanka committed 2021-07-06 21:14:36 +02:00
1 parent c71d3b0b97
commit cb9f27d2b3
7 files changed
+42 -23

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
node_modules
test
dist
dist
package-create.bat
+4 -1
View File
@@ -4,4 +4,7 @@ node_modules
test
.gitignore
index.ts
tsconfig.json
tsconfig.json
tsconfig-cjs.json
tsconfig-mjs.json
package-create.bat
+4 -11
View File
@@ -1,22 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile TypeScript (Watch)",
"type": "shell",
"command": "yarn watch",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Compile TypeScript",
"type": "shell",
"command": "yarn compile",
"problemMatcher": [],
"group": "build"
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
+8 -5
View File
@@ -2,9 +2,9 @@
"name": "commandbot",
"version": "2.0.0-beta4",
"description": "A framework that helps you create your own Discord bot easier.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
"types": "dist/mjs/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/GRZ4NA/DiscordCommands.git"
@@ -17,8 +17,7 @@
"framework"
],
"scripts": {
"watch": "npx tsc -w",
"compile": "npx tsc",
"compile": "rd dist /S /Q && tsc -p tsconfig-mjs.json && tsc -p tsconfig-cjs.json && package-create.bat",
"test": "node test/index.js"
},
"author": "GRZANA",
@@ -33,5 +32,9 @@
"devDependencies": {
"@types/node": "^15.12.4",
"@types/ws": "^7.4.5"
},
"exports": {
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"outDir": "dist/cjs",
"target": "es2015"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"target": "esnext",
"outDir": "dist/mjs"
}
}
+8 -5
View File
@@ -1,10 +1,13 @@
{
"compilerOptions": {
"target": "es2017",
"strict": true,
"moduleResolution": "node",
"declaration": true,
"outDir": "dist",
"alwaysStrict": true
}
}
"alwaysStrict": true,
"allowSyntheticDefaultImports": true,
"baseUrl": "src",
"pretty": true,
"lib": ["esnext"]
},
"exclude": ["node_modules", "dist"]
}