Skip to content

Commit

Permalink
refactor: export Macroable as default
Browse files Browse the repository at this point in the history
Breaking change: Single values should always be exported as default export
  • Loading branch information
thetutlage committed Oct 30, 2022
1 parent 71b801d commit 69a9609
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The MIT License

Copyright 2021 Harminder Virk, contributors
Copyright 2022 Harminder Virk, contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ yarn add @poppinss/macroable
And import the `Macroable` class.

```ts
import { Macroable } from '@poppinss/macroable'
import Macroable from '@poppinss/macroable'
export class Route extends Macroable {}
```

Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Adds capabilities for extending the class from outside-in, in the form
* of macros and getters.
*/
export abstract class Macroable {
export default abstract class Macroable {
/**
*
* Macros are standard properties that gets added to the class prototype.
Expand Down
2 changes: 1 addition & 1 deletion tests/macroable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { test } from '@japa/runner'
import { Macroable } from '../index.js'
import Macroable from '../index.js'

test.group('Macroable | macro', () => {
test('add a property to the class prototype', ({ expectTypeOf, assert }) => {
Expand Down

0 comments on commit 69a9609

Please sign in to comment.