Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/bump-version.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"changelog": [
"@changesets/changelog-github",
{
"repo": "<PLACEHOLDER>"
"repo": "SpawnDock/cli"
}
],
"commit": false,
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: ProverCoderAI/action-release@v1.0.17
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_KEY }}
Expand All @@ -36,6 +38,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: ProverCoderAI/action-release@v1.0.17
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lint:tests": "PATH=../../scripts:$PATH vibecode-linter tests/",
"lint:effect": "PATH=../../scripts:$PATH eslint --config eslint.effect-ts-check.config.mjs .",
"prebuild:docker-git": "pnpm -C ../lib build",
"build:docker-git": "vite build --config vite.docker-git.config.ts",
"build:docker-git": "vite build --config vite.docker-git.config.ts && cp -r ../../scripts dist/",
"check": "pnpm run typecheck",
"clone": "pnpm -C ../.. run clone",
"open": "pnpm -C ../.. run open",
Expand Down
17 changes: 14 additions & 3 deletions packages/lib/src/shell/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import { FileExistsError } from "./errors.js"
import { resolveBaseDir } from "./paths.js"

import { fileURLToPath } from "node:url"

Check failure on line 13 in packages/lib/src/shell/files.ts

View workflow job for this annotation

GitHub Actions / Lint Effect-TS

'node:url' import is restricted from being used by a pattern. Do not import from node:* directly. Use @effect/platform-node or @effect/platform services

const ensureParentDir = (path: Path.Path, fs: FileSystem.FileSystem, filePath: string) =>
fs.makeDirectory(path.dirname(filePath), { recursive: true })

Expand Down Expand Up @@ -116,11 +118,20 @@
baseDir: string
): Effect.Effect<void, PlatformError> =>
Effect.gen(function*(_) {
const workspaceRoot = process.cwd()
const sourceScriptsDir = path.join(workspaceRoot, "scripts")
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const packageScriptsDir = path.join(__dirname, "..", "..", "scripts")
const workspaceScriptsDir = path.join(process.cwd(), "scripts")

let sourceScriptsDir = packageScriptsDir
let sourceExists = yield* _(fs.exists(sourceScriptsDir))

if (!sourceExists) {
sourceScriptsDir = workspaceScriptsDir
sourceExists = yield* _(fs.exists(sourceScriptsDir))
}

const targetScriptsDir = path.join(baseDir, "scripts")

const sourceExists = yield* _(fs.exists(sourceScriptsDir))
if (!sourceExists) {
return
}
Expand Down
Loading