Skip to content

Commit

Permalink
fix: ensure ESM builds have .js extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS committed Nov 28, 2023
1 parent 46d30f2 commit bd591ce
Show file tree
Hide file tree
Showing 115 changed files with 476 additions and 445 deletions.
18 changes: 18 additions & 0 deletions .changeset/friendly-eyes-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@typed/async-data": patch
"@typed/context": patch
"@typed/dom": patch
"@typed/environment": patch
"@typed/fx": patch
"@typed/id": patch
"@typed/navigation": patch
"@typed/path": patch
"@typed/route": patch
"@typed/router": patch
"@typed/template": patch
"@typed/tsconfig": patch
"@typed/ui": patch
"@typed/wire": patch
---

Fix ESM builds
6 changes: 3 additions & 3 deletions packages/async-data/src/AsyncData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import type { Effect } from "effect"
import { Cause, Data, Equal, Equivalence, Exit, Option, Unify } from "effect"
import { dual } from "effect/Function"
import * as internal from "./internal/async-data"
import { FAILURE_TAG, LOADING_TAG, NO_DATA_TAG, SUCCESS_TAG } from "./internal/tag"
import * as Progress from "./Progress"
import * as internal from "./internal/async-data.js"
import { FAILURE_TAG, LOADING_TAG, NO_DATA_TAG, SUCCESS_TAG } from "./internal/tag.js"
import * as Progress from "./Progress.js"

/**
* AsyncData represents a piece of data which is acquired asynchronously with loading, failure, and progress states
Expand Down
2 changes: 1 addition & 1 deletion packages/async-data/src/internal/async-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Cause, Effect, Effectable, Equal, Hash, Option, pipe, Unify } from "effect"
import { constant } from "effect/Function"
import { type AsyncData, type Failure, type Loading, type Success } from "../AsyncData"
import { FAILURE_TAG, LOADING_TAG, NO_DATA_TAG, SUCCESS_TAG } from "./tag"
import { FAILURE_TAG, LOADING_TAG, NO_DATA_TAG, SUCCESS_TAG } from "./tag.js"

export class FailureImpl<E> extends Effectable.Class<never, E, never> implements Failure<E> {
readonly _tag = "Failure"
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/Cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import type { Effect } from "effect/Effect"
import type { Either } from "effect/Either"
import type { Exit } from "effect/Exit"
import * as Layer from "effect/Layer"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* A Contextual wrapper around @effect/io/Cache
Expand Down
10 changes: 5 additions & 5 deletions packages/context/src/Dequeue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import type * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import type { Option } from "effect/Option"
import * as Q from "effect/Queue"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import type { PubSub } from "./PubSub"
import type { Queue } from "./Queue"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import type { PubSub } from "./PubSub.js"
import type { Queue } from "./Queue.js"
import { Tag } from "./Tag.js"

/**
* A Contextual wrapper around @effect/io/Queue.Dequeue
Expand Down
10 changes: 5 additions & 5 deletions packages/context/src/Enqueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import type * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import * as Q from "effect/Queue"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import type { PubSub } from "./PubSub"
import type { Queue } from "./Queue"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import type { PubSub } from "./PubSub.js"
import type { Queue } from "./Queue.js"
import { Tag } from "./Tag.js"

/**
* A Contextual wrapper around @effect/io/Queue.Enqueue
Expand Down
4 changes: 2 additions & 2 deletions packages/context/src/Extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import * as Layer from "effect/Layer"

import { Tag } from "effect/Context"
import type { Scope } from "effect/Scope"
import { ContextBuilder } from "./Builder"
import type { IdentifierFactory, IdentifierOf } from "./Identifier"
import { ContextBuilder } from "./Builder.js"
import type { IdentifierFactory, IdentifierOf } from "./Identifier.js"

/**
* A Tagged service is a @effect/data/Context.Tag with additional methods for
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/Fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import * as Effect from "effect/Effect"
import { dual } from "effect/Function"
import type * as Layer from "effect/Layer"

import type { EffectFn } from "./EffectFn"
import { Tagged } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import type { EffectFn } from "./EffectFn.js"
import { Tagged } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"

/**
* @category symbols
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/KeyedPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import type * as Effect from "effect/Effect"
import * as KP from "effect/KeyedPool"
import * as Layer from "effect/Layer"
import type { Scope } from "effect/Scope"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/KeyedPool
Expand Down
4 changes: 2 additions & 2 deletions packages/context/src/Many.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type * as C from "effect/Context"
import * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"

import { ContextBuilder } from "./Builder"
import type { Actions, Provision } from "./Extensions"
import { ContextBuilder } from "./Builder.js"
import type { Actions, Provision } from "./Extensions.js"

type TupleOfTags = ReadonlyArray<C.Tag<any, any>>

Expand Down
8 changes: 4 additions & 4 deletions packages/context/src/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import type { Scope } from "effect/Scope"
import { ScopedRefTypeId } from "effect/ScopedRef"
import { ContextBuilder } from "./Builder"
import type { Ref } from "./Ref"
import type { ScopedRef } from "./ScopedRef"
import type { SynchronizedRef } from "./SynchronizedRef"
import { ContextBuilder } from "./Builder.js"
import type { Ref } from "./Ref.js"
import type { ScopedRef } from "./ScopedRef.js"
import type { SynchronizedRef } from "./SynchronizedRef.js"

/**
* A ModelRef<I, A> is a Ref/ScopedRef/SynchronizedRef that is part of a Model.
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/Pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import type * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import * as P from "effect/Pool"
import type { Scope } from "effect/Scope"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrapper for @effect/io/Pool
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/PubSub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import * as Layer from "effect/Layer"
import * as PS from "effect/PubSub"
import type * as Q from "effect/Queue"
import type { Scope } from "effect/Scope"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/PubSub
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/Queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import type * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import type { Option } from "effect/Option"
import * as Q from "effect/Queue"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/data/Queue
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/Ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import type { Option } from "effect/Option"
import * as R from "effect/Ref"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/Ref
Expand Down
8 changes: 4 additions & 4 deletions packages/context/src/Repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import type { Scope } from "effect/Scope"
import { ContextBuilder } from "./Builder"
import { ContextBuilder } from "./Builder.js"

import type { EffectFn } from "./EffectFn"
import type { Fn } from "./Fn"
import { struct, type TaggedStruct } from "./Many"
import type { EffectFn } from "./EffectFn.js"
import type { Fn } from "./Fn.js"
import { struct, type TaggedStruct } from "./Many.js"

type AnyFns = Readonly<Record<string, Fn.Any>>

Expand Down
4 changes: 2 additions & 2 deletions packages/context/src/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import type * as Data from "effect/Data"
import type { Effect } from "effect/Effect"
import * as R from "effect/Request"

import { Fn } from "./Fn"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Fn } from "./Fn.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"

/**
* Contextual wrappers around @effect/io/Request
Expand Down
10 changes: 5 additions & 5 deletions packages/context/src/RequestResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import * as Layer from "effect/Layer"
import type * as Req from "effect/Request"
import * as RR from "effect/RequestResolver"

import type { Context } from "./Context"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierOf } from "./Identifier"
import type { Request } from "./Request"
import { Tag } from "./Tag"
import type { Context } from "./Context.js"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierOf } from "./Identifier.js"
import type { Request } from "./Request.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/RequestResolver
Expand Down
4 changes: 2 additions & 2 deletions packages/context/src/Resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import * as R from "effect/Resource"
import type * as Schedule from "effect/Schedule"
import type { IdentifierFactory, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import type { IdentifierFactory, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/Resource
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/ScopedCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import * as Layer from "effect/Layer"
import type { Option } from "effect/Option"
import type { Scope } from "effect/Scope"
import * as SC from "effect/ScopedCache"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/ScopedCache
Expand Down
4 changes: 2 additions & 2 deletions packages/context/src/ScopedRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import type { Scope } from "effect/Scope"
import * as S from "effect/ScopedRef"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/ScopedRef
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/SynchronizedRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import * as Effect from "effect/Effect"
import * as Layer from "effect/Layer"
import type { Option } from "effect/Option"
import * as SyncRef from "effect/SynchronizedRef"
import { withActions } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { Tag } from "./Tag"
import { withActions } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { Tag } from "./Tag.js"

/**
* Contextual wrappers around @effect/io/SynchronizedRef
Expand Down
6 changes: 3 additions & 3 deletions packages/context/src/Tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/

import * as C from "effect/Context"
import type { Tagged } from "./Extensions"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier"
import { makeIdentifier } from "./Identifier"
import type { Tagged } from "./Extensions.js"
import type { IdentifierFactory, IdentifierInput, IdentifierOf } from "./Identifier.js"
import { makeIdentifier } from "./Identifier.js"

/**
* Provides extensions to the `Context` module's Tag implementation to
Expand Down
Loading

0 comments on commit bd591ce

Please sign in to comment.