diff --git a/README.md b/README.md new file mode 100644 index 0000000..aea048d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +A command parser for Discord bots. Should work with any JS library. + +You're expected to implement a string -> abstraction resolver yourself and pass it to the parser. \ No newline at end of file diff --git a/package.json b/package.json index ed26c19..dafd2ce 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "commandparser", - "version": "1.0.5", + "version": "1.0.9", "description": "Parser meant to parse commands and their options for discord bots", - "main": "index.ts", + "main": "build/index.js", "author": "Navy.gif", "license": "MIT", "private": false, @@ -12,5 +12,11 @@ "@typescript-eslint/parser": "^5.31.0", "eslint": "^8.20.0", "typescript": "^4.7.4" + }, + "files": [ + "build" + ], + "scripts": { + "release": "tsc && yarn publish" } } diff --git a/tsconfig.json b/tsconfig.json index e7a4720..f448ed2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -45,7 +45,7 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ - // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ // "declarationMap": true, /* Create sourcemaps for d.ts files. */ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */