Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
switch to build-utils prepare-v1 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Oct 3, 2023
1 parent c6a683c commit 51be9c8
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 187 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"clean": "node scripts/clean.mjs && rimraf tsconfig.tsbuildinfo",
"build": "pnpm gen && preconstruct fix && preconstruct build && pnpm gen",
"gen": "node scripts/gen.mjs",
"gen": "build-utils prepare-v1",
"circular": "madge --ts-config ./tsconfig.json --circular --no-color --no-spinner packages/*",
"test": "vitest",
"autofix": "ultra -r autofix",
Expand All @@ -28,7 +28,7 @@
"@babel/preset-typescript": "^7.23.0",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@effect/build-utils": "^0.1.4",
"@effect/build-utils": "^0.1.5",
"@effect/docgen": "^0.1.8",
"@effect/eslint-plugin": "^0.1.2",
"@effect/language-service": "0.0.21",
Expand Down
1 change: 0 additions & 1 deletion packages/platform-browser/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
coverage/
*.tsbuildinfo
node_modules/
yarn-error.log
.ultra.cache.json
.DS_Store
tmp/
Expand Down
3 changes: 3 additions & 0 deletions packages/platform-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"importConditionDefaultExport": "default"
}
},
"effect": {
"generateIndex": true
},
"publishConfig": {
"access": "public"
},
Expand Down
14 changes: 7 additions & 7 deletions packages/platform-browser/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
/**
* @since 1.0.0
*/
export * as Clipboard from "./Clipboard"
export * as Clipboard from "@effect/platform-browser/Clipboard"

/**
* @since 1.0.0
*/
export * as Effectify from "./Effectify"
export * as Effectify from "@effect/platform-browser/Effectify"

/**
* @since 1.0.0
*/
export * as Error from "./Error"
export * as Error from "@effect/platform-browser/Error"

/**
* @since 1.0.0
*/
export * as HttpClient from "./HttpClient"
export * as HttpClient from "@effect/platform-browser/HttpClient"

/**
* @since 1.0.0
*
* Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
*/
export * as KeyValueStore from "./KeyValueStore"
export * as KeyValueStore from "@effect/platform-browser/KeyValueStore"

/**
* @since 1.0.0
*
* Also includes exports from [`@effect/platform/Path`](https://effect-ts.github.io/platform/platform/Path.ts.html).
*/
export * as Path from "./Path"
export * as Path from "@effect/platform-browser/Path"

/**
* @since 1.0.0
*/
export * as Runtime from "./Runtime"
export * as Runtime from "@effect/platform-browser/Runtime"
1 change: 0 additions & 1 deletion packages/platform-bun/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
coverage/
*.tsbuildinfo
node_modules/
yarn-error.log
.ultra.cache.json
.DS_Store
tmp/
Expand Down
3 changes: 3 additions & 0 deletions packages/platform-bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"importConditionDefaultExport": "default"
}
},
"effect": {
"generateIndex": true
},
"publishConfig": {
"access": "public"
},
Expand Down
26 changes: 13 additions & 13 deletions packages/platform-bun/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
/**
* @since 1.0.0
*/
export * as BunContext from "./BunContext"
export * as BunContext from "@effect/platform-bun/BunContext"

/**
* @since 1.0.0
*/
export * as Command from "./Command"
export * as Command from "@effect/platform-bun/Command"

/**
* @since 1.0.0
*/
export * as CommandExecutor from "./CommandExecutor"
export * as CommandExecutor from "@effect/platform-bun/CommandExecutor"

/**
* @since 1.0.0
*/
export * as Effectify from "./Effectify"
export * as Effectify from "@effect/platform-bun/Effectify"

/**
* @since 1.0.0
*/
export * as Error from "./Error"
export * as Error from "@effect/platform-bun/Error"

/**
* @since 1.0.0
*/
export * as FileSystem from "./FileSystem"
export * as FileSystem from "@effect/platform-bun/FileSystem"

/**
* @since 1.0.0
*/
export * as HttpClient from "./HttpClient"
export * as HttpClient from "@effect/platform-bun/HttpClient"

/**
* @since 1.0.0
*/
export * as HttpServer from "./HttpServer"
export * as HttpServer from "@effect/platform-bun/HttpServer"

/**
* @since 1.0.0
*
* Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
*/
export * as KeyValueStore from "./KeyValueStore"
export * as KeyValueStore from "@effect/platform-bun/KeyValueStore"

/**
* @since 1.0.0
*/
export * as Path from "./Path"
export * as Path from "@effect/platform-bun/Path"

/**
* @since 1.0.0
*/
export * as Runtime from "./Runtime"
export * as Runtime from "@effect/platform-bun/Runtime"

/**
* @since 1.0.0
*/
export * as Sink from "./Sink"
export * as Sink from "@effect/platform-bun/Sink"

/**
* @since 1.0.0
*/
export * as Stream from "./Stream"
export * as Stream from "@effect/platform-bun/Stream"
1 change: 0 additions & 1 deletion packages/platform-node/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
coverage/
*.tsbuildinfo
node_modules/
yarn-error.log
.ultra.cache.json
.DS_Store
tmp/
Expand Down
3 changes: 3 additions & 0 deletions packages/platform-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"importConditionDefaultExport": "default"
}
},
"effect": {
"generateIndex": true
},
"publishConfig": {
"access": "public"
},
Expand Down
26 changes: 13 additions & 13 deletions packages/platform-node/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
/**
* @since 1.0.0
*/
export * as Command from "./Command"
export * as Command from "@effect/platform-node/Command"

/**
* @since 1.0.0
*/
export * as CommandExecutor from "./CommandExecutor"
export * as CommandExecutor from "@effect/platform-node/CommandExecutor"

/**
* @since 1.0.0
*/
export * as Effectify from "./Effectify"
export * as Effectify from "@effect/platform-node/Effectify"

/**
* @since 1.0.0
*/
export * as Error from "./Error"
export * as Error from "@effect/platform-node/Error"

/**
* @since 1.0.0
*/
export * as FileSystem from "./FileSystem"
export * as FileSystem from "@effect/platform-node/FileSystem"

/**
* @since 1.0.0
*/
export * as HttpClient from "./HttpClient"
export * as HttpClient from "@effect/platform-node/HttpClient"

/**
* @since 1.0.0
*/
export * as HttpServer from "./HttpServer"
export * as HttpServer from "@effect/platform-node/HttpServer"

/**
* @since 1.0.0
*
* Also includes exports from [`@effect/platform/KeyValueStore`](https://effect-ts.github.io/platform/platform/KeyValueStore.ts.html).
*/
export * as KeyValueStore from "./KeyValueStore"
export * as KeyValueStore from "@effect/platform-node/KeyValueStore"

/**
* @since 1.0.0
*/
export * as NodeContext from "./NodeContext"
export * as NodeContext from "@effect/platform-node/NodeContext"

/**
* @since 1.0.0
*/
export * as Path from "./Path"
export * as Path from "@effect/platform-node/Path"

/**
* @since 1.0.0
*/
export * as Runtime from "./Runtime"
export * as Runtime from "@effect/platform-node/Runtime"

/**
* @since 1.0.0
*/
export * as Sink from "./Sink"
export * as Sink from "@effect/platform-node/Sink"

/**
* @since 1.0.0
*/
export * as Stream from "./Stream"
export * as Stream from "@effect/platform-node/Stream"
1 change: 0 additions & 1 deletion packages/platform/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
coverage/
*.tsbuildinfo
node_modules/
yarn-error.log
.ultra.cache.json
.DS_Store
tmp/
Expand Down
3 changes: 3 additions & 0 deletions packages/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"importConditionDefaultExport": "default"
}
},
"effect": {
"generateIndex": true
},
"publishConfig": {
"access": "public"
},
Expand Down
20 changes: 10 additions & 10 deletions packages/platform/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
/**
* @since 1.0.0
*/
export * as Command from "./Command"
export * as Command from "@effect/platform/Command"

/**
* @since 1.0.0
*/
export * as CommandExecutor from "./CommandExecutor"
export * as CommandExecutor from "@effect/platform/CommandExecutor"

/**
* @since 1.0.0
*/
export * as Effectify from "./Effectify"
export * as Effectify from "@effect/platform/Effectify"

/**
* @since 1.0.0
*/
export * as Error from "./Error"
export * as Error from "@effect/platform/Error"

/**
* @since 1.0.0
*/
export * as FileSystem from "./FileSystem"
export * as FileSystem from "@effect/platform/FileSystem"

/**
* @since 1.0.0
*/
export * as HttpClient from "./HttpClient"
export * as HttpClient from "@effect/platform/HttpClient"

/**
* @since 1.0.0
*/
export * as HttpServer from "./HttpServer"
export * as HttpServer from "@effect/platform/HttpServer"

/**
* @since 1.0.0
*/
export * as KeyValueStore from "./KeyValueStore"
export * as KeyValueStore from "@effect/platform/KeyValueStore"

/**
* @since 1.0.0
*/
export * as Path from "./Path"
export * as Path from "@effect/platform/Path"

/**
* @since 1.0.0
*/
export * as Runtime from "./Runtime"
export * as Runtime from "@effect/platform/Runtime"
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 51be9c8

Please sign in to comment.