@codenameryuu/adonis-lucid-auto-preload 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import type Configure from '@adonisjs/core/commands/configure';
2
+ export declare function configure(command: Configure): Promise<void>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configure = configure;
4
+ async function configure(command) {
5
+ const codemods = await command.createCodemods();
6
+ /**
7
+ * Register the provider inside `adonisrc.ts`
8
+ */
9
+ await codemods.updateRcFile((rcFile) => {
10
+ rcFile.addProvider('@codenameryuu/adonis-lucid-auto-preload/provider');
11
+ });
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codenameryuu/adonis-lucid-auto-preload",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Auto-preload multiple relationships when retrieving Lucid models on Adonis JS 7",
5
5
  "author": "codenameryuu",
6
6
  "license": "MIT",
@@ -79,10 +79,26 @@
79
79
  "build/adonis-typings",
80
80
  "build/providers",
81
81
  "build/src",
82
+ "build/configure.js",
83
+ "build/configure.d.ts",
82
84
  "build/instructions.md"
83
85
  ],
84
86
  "exports": {
85
- ".": "./build/providers/AutoPreloadProvider.js",
86
- "./mixins": "./build/src/Mixins/AutoPreload.js"
87
+ ".": {
88
+ "types": "./build/adonis-typings/index.d.ts",
89
+ "default": "./build/providers/AutoPreloadProvider.js"
90
+ },
91
+ "./mixins": {
92
+ "types": "./build/src/Mixins/AutoPreload.d.ts",
93
+ "default": "./build/src/Mixins/AutoPreload.js"
94
+ },
95
+ "./provider": {
96
+ "types": "./build/providers/AutoPreloadProvider.d.ts",
97
+ "default": "./build/providers/AutoPreloadProvider.js"
98
+ },
99
+ "./configure": {
100
+ "types": "./build/configure.d.ts",
101
+ "default": "./build/configure.js"
102
+ }
87
103
  }
88
104
  }