Skip to content

Commit 699fc56

Browse files
committed
chore: use adonis-kit to index commands
1 parent c748e9d commit 699fc56

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

commands/main.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"exports": {
1414
".": "./build/index.js",
1515
"./queue_provider": "./build/providers/queue_provider.js",
16+
"./commands/*": "./build/commands/*.js",
1617
"./commands": "./build/commands/main.js",
1718
"./services/main": "./build/services/queue.js",
1819
"./types": "./build/src/types/main.js"
@@ -22,9 +23,10 @@
2223
"clean": "del-cli build",
2324
"compile": "npm run clean && tsc",
2425
"copy:templates": "copyfiles \"stubs/**/*.stub\" build",
26+
"index:commands": "adonis-kit index build/commands",
2527
"format": "prettier --write .",
2628
"lint": "eslint .",
27-
"postcompile": "npm run copy:templates",
29+
"postcompile": "npm run copy:templates && npm run index:commands",
2830
"prepublishOnly": "npm run build",
2931
"quick:test": "node --enable-source-maps --import=@poppinss/ts-exec bin/test.ts",
3032
"test": "c8 npm run quick:test",

0 commit comments

Comments
 (0)