diff --git a/package.json b/package.json index 64975fa..611c26f 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,16 @@ "description": "A complete, customizable, typesafe, & reactive framework for discord bots.", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", - "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.mjs", - "require": "./dist/cjs/index.cjs" + "require": "./dist/cjs/index.cjs", + "types": "dist/index.d.ts" + }, + "./multiplatform": { + "import": "./dist/esm/multiplatform/index.mjs", + "require": "./dist/cjs/multiplatform/index.cjs", + "types": "./dist/multiplatform/index.d.ts" } }, "scripts": { @@ -36,9 +41,11 @@ "dependencies": { "iti": "^0.6.0", "rxjs": "^7.8.0", - "ts-results-es": "^3.6.0" + "ts-results-es": "^3.6.0", + "tweetnacl": "^1.0.3" }, "devDependencies": { + "@cloudflare/workers-types": "^4.20230419.0", "@types/node": "^18.15.11", "@typescript-eslint/eslint-plugin": "5.58.0", "@typescript-eslint/parser": "5.58.0", @@ -60,12 +67,27 @@ }, "eslintConfig": { "parser": "@typescript-eslint/parser", - "extends": ["plugin:@typescript-eslint/recommended"], - "parserOptions": { "ecmaVersion": "latest", "sourceType": "script" }, + "extends": [ + "plugin:@typescript-eslint/recommended" + ], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "script" + }, "rules": { "@typescript-eslint/no-non-null-assertion": "off", - "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }], - "semi": ["error", "always"], + "quotes": [ + 2, + "single", + { + "avoidEscape": true, + "allowTemplateLiterals": true + } + ], + "semi": [ + "error", + "always" + ], "@typescript-eslint/no-empty-interface": 0, "@typescript-eslint/ban-types": 0, "@typescript-eslint/no-explicit-any": "off" diff --git a/yarn.lock b/yarn.lock index 369910b..d972a95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,6 +5,13 @@ __metadata: version: 6 cacheKey: 8 +"@cloudflare/workers-types@npm:^4.20230419.0": + version: 4.20230419.0 + resolution: "@cloudflare/workers-types@npm:4.20230419.0" + checksum: db1eb1e74029da8ee3eaed8c8b83e1bc3a10801d328ccfddf39258e5eb679ffb34776fab441f6ac66aa304bc3715dedce77083aed3d79b4825639fb24970c164 + languageName: node + linkType: hard + "@discordjs/builders@npm:^1.5.0": version: 1.6.3 resolution: "@discordjs/builders@npm:1.6.3" @@ -448,6 +455,7 @@ __metadata: version: 0.0.0-use.local resolution: "@sern/handler@workspace:." dependencies: + "@cloudflare/workers-types": ^4.20230419.0 "@types/node": ^18.15.11 "@typescript-eslint/eslint-plugin": 5.58.0 "@typescript-eslint/parser": 5.58.0 @@ -460,6 +468,7 @@ __metadata: rxjs: ^7.8.0 ts-results-es: ^3.6.0 tsup: ^6.7.0 + tweetnacl: ^1.0.3 typescript: 5.0.2 languageName: unknown linkType: soft @@ -3019,6 +3028,13 @@ __metadata: languageName: node linkType: hard +"tweetnacl@npm:^1.0.3": + version: 1.0.3 + resolution: "tweetnacl@npm:1.0.3" + checksum: e4a57cac188f0c53f24c7a33279e223618a2bfb5fea426231991652a13247bea06b081fd745d71291fcae0f4428d29beba1b984b1f1ce6f66b06a6d1ab90645c + languageName: node + linkType: hard + "type-check@npm:^0.4.0, type-check@npm:~0.4.0": version: 0.4.0 resolution: "type-check@npm:0.4.0"