Skip to content

Commit

Permalink
chore(sandbox): create sandbox package (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
treyturner authored Oct 6, 2024
1 parent 82ee529 commit 61e351f
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"clean": "bun run --silent clean:build && bun run --silent clean:deps",
"clean:build": "bun run --silent --filter \"*\" clean:build",
"clean:deps": "rm -rf node_modules bun.lockb && bun run --silent --filter \"*\" clean:deps",
"prepare": "husky"
"prepare": "husky",
"watch": "bun run --filter \"*\" watch"
},
"devDependencies": {
"@biomejs/biome": "1.9.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"trustedDependencies": ["@biomejs/biome"]
}
}
39 changes: 39 additions & 0 deletions packages/sandbox/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "@trey.turner/artifacts-sandbox",
"private": true,
"version": "0.0.1",
"module": "index.ts",
"main": "dist/index.js",
"types": "dist/types.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/treyturner/ts-artifacts.git"
},
"scripts": {
"build": "tsc -p src/tsconfig.json",
"check": "bun run --silent lint && bun run --silent format && bun run --silent typecheck",
"check:fix": "bun run --silent lint:fix && bun run --silent format:fix && bun run --silent typecheck",
"clean": "bun run --silent clean:build && bun run --silent clean:deps",
"clean:build": "rm -rf dist",
"clean:deps": "rm -rf node_modules bun.lockb",
"format": "biome format src/ test/",
"format:fix": "biome format --write src/ test/",
"lint": "biome lint --error-on-warnings src/ test/",
"lint:fix": "biome lint --error-on-warnings --fix src/ test/",
"start": "bun run src/index.ts",
"typecheck": "tsc -p src/tsconfig.json && tsc --noEmit -p test/tsconfig.json",
"watch": "tsc -w -p src/tsconfig.json"
},
"dependencies": {
"node-inspect-extracted": "3.0.2",
"@trey.turner/artifacts-api-client": "workspace:*"
},
"devDependencies": {
"@types/bun": "latest",
"typescript": "5.6.2"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}
4 changes: 4 additions & 0 deletions packages/sandbox/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { ArtifactsApi } from "@trey.turner/artifacts-api-client";

const api = new ArtifactsApi();
await api.info.meta.getServerStatus();
7 changes: 7 additions & 0 deletions packages/sandbox/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig-base.json",
"compilerOptions": {
"composite": true,
"outDir": "../dist"
}
}
8 changes: 8 additions & 0 deletions packages/sandbox/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../../tsconfig-base.json",
"references": [{ "path": "../src" }],
"compilerOptions": {
"noEmit": true,
"declarationMap": false
}
}

0 comments on commit 61e351f

Please sign in to comment.