Archived
switch dev environment to Linux + update dependencies
This commit is contained in:
1 parent
ca184233f2
commit
37ce7b0227
4 files changed
+23
-15
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
echo "Removing old packages..."
|
||||
rm -r ./dist
|
||||
echo "Compiling for ESM..."
|
||||
tsc -p ./tsconfig-mjs.json
|
||||
echo "Compiling for CommonJS..."
|
||||
tsc -p ./tsconfig-cjs.json
|
||||
echo "Creating package.json files..."
|
||||
echo '{"type": "commonjs"}' > ./dist/cjs/package.json
|
||||
echo '{"type": "module"}' > ./dist/mjs/package.json
|
||||
echo "Compilation completed!"
|
||||
@@ -1,3 +0,0 @@
|
||||
@echo off
|
||||
echo { "type": "commonjs" } > dist/cjs/package.json
|
||||
echo { "type": "module" } > dist/mjs/package.json
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "commandbot",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.1",
|
||||
"description": "A framework that helps you create your own Discord bot easier.",
|
||||
"main": "dist/cjs/index.js",
|
||||
"module": "dist/mjs/index.js",
|
||||
@@ -19,7 +19,7 @@
|
||||
"interactions"
|
||||
],
|
||||
"scripts": {
|
||||
"compile": "rd dist /S /Q && tsc -p tsconfig-mjs.json && tsc -p tsconfig-cjs.json && package-create.bat",
|
||||
"compile": "./compile.sh",
|
||||
"test": "node test/index.js"
|
||||
},
|
||||
"author": "GRZANA",
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/GRZ4NA/CommandBot#readme",
|
||||
"dependencies": {
|
||||
"axios": "^0.21.4",
|
||||
"axios": "^0.26.1",
|
||||
"discord.js": "^13.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -59,12 +59,12 @@ asynckit@^0.4.0:
|
||||
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
|
||||
integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=
|
||||
|
||||
axios@^0.21.4:
|
||||
version "0.21.4"
|
||||
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575"
|
||||
integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==
|
||||
axios@^0.26.1:
|
||||
version "0.26.1"
|
||||
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"
|
||||
integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==
|
||||
dependencies:
|
||||
follow-redirects "^1.14.0"
|
||||
follow-redirects "^1.14.8"
|
||||
|
||||
callsites@^3.1.0:
|
||||
version "3.1.0"
|
||||
@@ -109,10 +109,10 @@ dot-prop@^6.0.1:
|
||||
dependencies:
|
||||
is-obj "^2.0.0"
|
||||
|
||||
follow-redirects@^1.14.0:
|
||||
version "1.14.3"
|
||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.3.tgz#6ada78118d8d24caee595595accdc0ac6abd022e"
|
||||
integrity sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==
|
||||
follow-redirects@^1.14.8:
|
||||
version "1.14.9"
|
||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7"
|
||||
integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==
|
||||
|
||||
is-obj@^2.0.0:
|
||||
version "2.0.0"
|
||||
|
||||
Reference in new issue
Block a user