Skip to content

Commit fdb509f

Browse files
committed
feat: remove hooks helpers as they will be added to the application package
Since assembler does not exist in all environments, we cannot rely on its exported helpers
1 parent d8bcb29 commit fdb509f

File tree

4 files changed

+34
-287
lines changed

4 files changed

+34
-287
lines changed

index.ts

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

10-
export { hooks } from './src/hooks.ts'
1110
export { Bundler } from './src/bundler.ts'
1211
export { DevServer } from './src/dev_server.ts'
1312
export { TestRunner } from './src/test_runner.ts'

src/hooks.ts

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

tests/bundler.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import ts from 'typescript'
1111
import { test } from '@japa/runner'
1212

13-
import { Bundler, hooks } from '../index.ts'
13+
import { Bundler } from '../index.ts'
1414

1515
test.group('Bundler', () => {
1616
test('should copy metafiles to the build directory', async ({ assert, fs }) => {
@@ -354,15 +354,15 @@ test.group('Bundler', () => {
354354
hooks: {
355355
init: [
356356
async () => ({
357-
default: hooks.init((_, indexGenerator) => {
357+
default: (_, indexGenerator) => {
358358
indexGenerator.add('controllers', {
359359
as: 'barrelFile',
360360
output: '.adonisjs/server/controllers.ts',
361361
exportName: 'controllers',
362362
source: 'app/controllers',
363363
importAlias: '#controllers',
364364
})
365-
}),
365+
},
366366
}),
367367
],
368368
},

0 commit comments

Comments
 (0)