Skip to content

Commit eb92dcf

Browse files
committed
fix: update stubs system
1 parent 53c71ba commit eb92dcf

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

configure.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
* file that was distributed with this source code.
88
*/
99

10+
import { stubsRoot } from './stubs/main.js'
1011
import type Configure from '@adonisjs/core/commands/configure'
1112

1213
export async function configure(command: Configure) {
1314
const codemods = await command.createCodemods()
1415

1516
// Publish config file
16-
await command.publishStub('config.stub')
17+
await codemods.makeUsingStub(stubsRoot, 'config/transmit.stub', {})
1718

1819
// Add provider to rc file
1920
await codemods.updateRcFile((rcFile) => {

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export { configure } from './configure.js'
1111
export { Transmit } from './src/transmit.js'
1212
export { RedisTransport } from './src/transports/redis_transport.js'
1313
export { defineConfig } from './src/define_config.js'
14-
export { stubsRoot } from './stubs/index.js'
14+
export { stubsRoot } from './stubs/main.js'
File renamed without changes.

0 commit comments

Comments
 (0)