Skip to content

Commit eaa97a6

Browse files
committed
feat: convert turbo/generators into workspace package
1 parent 27b98d5 commit eaa97a6

File tree

16 files changed

+86
-18
lines changed

16 files changed

+86
-18
lines changed

.changeset/icy-ideas-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@repo/turbo-generators': minor
3+
---
4+
5+
feat: convert turbo/generators into workspace package

.changeset/public-pugs-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@repo/workspace-dependencies': patch
3+
---
4+
5+
chore: remove unused dependencies

packages/workspace-dependencies/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,10 @@
2525
"require": "./dist/zod.cjs",
2626
"types": "./dist/zod.d.ts"
2727
}
28-
},
29-
"./slugify": {
30-
"import": "./src/slugify.ts",
31-
"require": {
32-
"require": "./dist/slugify.cjs",
33-
"types": "./dist/slugify.d.ts"
34-
}
3528
}
3629
},
3730
"scripts": {
38-
"build": "runx build lib zx.ts yaml.ts zod.ts slugify.ts -d src -f cjs --platform node",
31+
"build": "runx build lib yaml.ts zod.ts zx.ts -d src -f cjs --platform node",
3932
"check:lint": "run-eslint",
4033
"check:types": "run-tsc",
4134
"test": "run-vitest"

packages/workspace-dependencies/src/slugify.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
packages:
22
- 'apps/*'
33
- 'packages/*'
4+
- 'turbo/generators'
45

56
configDependencies:
67
'@pnpm/trusted-deps': 0.1.1+sha512-jI3PWNv2zCg9+KHI3qQTsa534c5nisZQrHFeWSyyHoUXcuzvjkXxQKPFLJ/qtNAF+PtKHDlRntO2aZKb3VDuHQ==

turbo/generators/answers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from '@repo/workspace-dependencies/zod'
1+
import { z } from 'zod'
22

33
export type Paths = z.infer<typeof Paths>
44
export const Paths = z.object({

turbo/generators/eslint.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig, getConfig } from '@repo/eslint-config'
2+
3+
import type { Config } from '@repo/eslint-config'
4+
5+
const config = getConfig(import.meta.url)
6+
7+
export default defineConfig([config]) as Config

turbo/generators/helpers/proc.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import type { ProcessOutput } from 'zx'
2+
13
export function onProcSuccess(
24
name: string,
35
resolve: (value: unknown) => void,
4-
reject: (reason?: any) => void
6+
reject: (reason?: unknown) => void
57
) {
68
return (proc: ProcessOutput) => {
79
if (proc.exitCode === 0) {
@@ -12,6 +14,6 @@ export function onProcSuccess(
1214
}
1315
}
1416

15-
export function catchError(reject: (reason?: any) => void) {
17+
export function catchError(reject: (reason?: unknown) => void) {
1618
return () => reject('unknown error')
1719
}

turbo/generators/helpers/slugify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { slugify } from '@repo/workspace-dependencies/slugify'
1+
import slugify from 'slugify'
22

33
export function slugifyText(text: string) {
44
const options = {

0 commit comments

Comments
 (0)