Skip to content

Commit c1a83f0

Browse files
branchseerclaude
andcommitted
chore(playground): drop @playground/ prefix on package names
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1e3c1b6 commit c1a83f0

7 files changed

Lines changed: 11 additions & 15 deletions

File tree

playground/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ A workspace for manually testing `cargo run --bin vt run ...`.
77
```
88
playground/
99
├── packages/
10-
│ ├── app/ → depends on @playground/lib
11-
│ ├── lib/ → depends on @playground/utils
10+
│ ├── app/ → depends on lib
11+
│ ├── lib/ → depends on utils
1212
│ └── utils/ → no dependencies
1313
└── vite-task.json → workspace-level task config
1414
```
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "@playground/app",
2+
"name": "app",
33
"version": "0.0.0",
44
"private": true,
55
"type": "module",
66
"scripts": {
77
"dev": "node dev.mjs"
88
},
99
"dependencies": {
10-
"@playground/lib": "workspace:*",
10+
"lib": "workspace:*",
1111
"vite": "catalog:"
1212
}
1313
}

playground/packages/app/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import { sum } from '@playground/lib';
1+
import { sum } from 'lib';
22

3-
// Vite's `define` plugin substitutes `process.env.NODE_ENV` at build time, so
4-
// only the branch matching the current NODE_ENV survives dead-code elimination.
5-
// After `vt run --cache build`, inspect `dist/assets/index-<hash>.js` to see
6-
// which literal (`PROD build` or `DEV build`) made it into the bundle.
73
if (process.env.NODE_ENV === 'production') {
84
console.log('PROD build:', sum(1, 2, 3));
95
} else {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "@playground/lib",
2+
"name": "lib",
33
"version": "0.0.0",
44
"private": true,
55
"main": "./src/index.ts",
66
"scripts": {
77
"dev": "node dev.mjs"
88
},
99
"dependencies": {
10-
"@playground/utils": "workspace:*"
10+
"utils": "workspace:*"
1111
}
1212
}

playground/packages/lib/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { add } from '@playground/utils';
1+
import { add } from 'utils';
22

33
export function sum(...nums: number[]): number {
44
return nums.reduce((acc, n) => add(acc, n), 0);

playground/packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@playground/utils",
2+
"name": "utils",
33
"version": "0.0.0",
44
"private": true,
55
"main": "./src/index.ts"

playground/pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)