Skip to content

Commit c573c11

Browse files
committed
fix: use extensions for all non-type imports
1 parent 8e639a8 commit c573c11

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/attr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {CustomElement} from './custom-element'
1+
import type {CustomElement} from './custom-element'
22

33
const attrs = new WeakMap<Record<PropertyKey, unknown>, string[]>()
44
type attrValue = string | number | boolean

src/controller.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {register} from './register'
2-
import {bind} from './bind'
3-
import {autoShadowRoot} from './auto-shadow-root'
4-
import {defineObservedAttributes, initializeAttrs} from './attr'
5-
import {CustomElement} from './custom-element'
1+
import {register} from './register.js'
2+
import {bind} from './bind.js'
3+
import {autoShadowRoot} from './auto-shadow-root.js'
4+
import {defineObservedAttributes, initializeAttrs} from './attr.js'
5+
import type {CustomElement} from './custom-element'
66

77
/**
88
* Controller is a decorator to be used over a class that extends HTMLElement.

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export {bind, listenForBind} from './bind'
2-
export {register} from './register'
3-
export {findTarget, findTargets} from './findtarget'
4-
export {target, targets} from './target'
5-
export {controller} from './controller'
6-
export {attr} from './attr'
1+
export {bind, listenForBind} from './bind.js'
2+
export {register} from './register.js'
3+
export {findTarget, findTargets} from './findtarget.js'
4+
export {target, targets} from './target.js'
5+
export {controller} from './controller.js'
6+
export {attr} from './attr.js'

src/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {CustomElement} from './custom-element'
1+
import type {CustomElement} from './custom-element'
22

33
/**
44
* Register the controller as a custom element.

src/target.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {findTarget, findTargets} from './findtarget'
1+
import {findTarget, findTargets} from './findtarget.js'
22

33
/**
44
* Target is a decorator which - when assigned to a property field on the

0 commit comments

Comments
 (0)