diff --git a/.gitignore b/.gitignore index dddf6ca3d..e95940777 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,10 @@ # JetBrains .idea +### Monorepo + +.turbo + ### Node # Heaviest object in the universe diff --git a/package.json b/package.json index d2bca702d..2299de437 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,13 @@ { "private": true, "scripts": { + "build": "turbo build", "lint": "biome format . --write", "lint:check": "biome check ." }, "devDependencies": { "@biomejs/biome": "1.2.2", - "commitlint-config-gitmoji": "^2.3.1" + "commitlint-config-gitmoji": "^2.3.1", + "turbo": "^1.10.14" } } diff --git a/packages/greetings/package.json b/packages/greetings/package.json index 855624dfe..cf816261c 100644 --- a/packages/greetings/package.json +++ b/packages/greetings/package.json @@ -19,9 +19,9 @@ "scripts": { "clean": "rimraf dist types", "types:check": "tsc --noEmit", - "build": "tsup", + "build": "pnpm run clean && pnpm run build:dist && pnpm run build:types", + "build:dist": "tsup", "build:types": "tsc --emitDeclarationOnly", - "build:prod": "pnpm run clean && pnpm run build && pnpm run build:types", "run:greetings": "tsx src/run.ts" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4bf8f794c..131acf080 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: commitlint-config-gitmoji: specifier: ^2.3.1 version: 2.3.1 + turbo: + specifier: ^1.10.14 + version: 1.10.14 examples/greetings-esm: dependencies: @@ -1243,6 +1246,66 @@ packages: fsevents: 2.3.3 dev: true + /turbo-darwin-64@1.10.14: + resolution: {integrity: sha512-I8RtFk1b9UILAExPdG/XRgGQz95nmXPE7OiGb6ytjtNIR5/UZBS/xVX/7HYpCdmfriKdVwBKhalCoV4oDvAGEg==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-darwin-arm64@1.10.14: + resolution: {integrity: sha512-KAdUWryJi/XX7OD0alOuOa0aJ5TLyd4DNIYkHPHYcM6/d7YAovYvxRNwmx9iv6Vx6IkzTnLeTiUB8zy69QkG9Q==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-64@1.10.14: + resolution: {integrity: sha512-BOBzoREC2u4Vgpap/WDxM6wETVqVMRcM8OZw4hWzqCj2bqbQ6L0wxs1LCLWVrghQf93JBQtIGAdFFLyCSBXjWQ==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-linux-arm64@1.10.14: + resolution: {integrity: sha512-D8T6XxoTdN5D4V5qE2VZG+/lbZX/89BkAEHzXcsSUTRjrwfMepT3d2z8aT6hxv4yu8EDdooZq/2Bn/vjMI32xw==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-64@1.10.14: + resolution: {integrity: sha512-zKNS3c1w4i6432N0cexZ20r/aIhV62g69opUn82FLVs/zk3Ie0GVkSB6h0rqIvMalCp7enIR87LkPSDGz9K4UA==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo-windows-arm64@1.10.14: + resolution: {integrity: sha512-rkBwrTPTxNSOUF7of8eVvvM+BkfkhA2OvpHM94if8tVsU+khrjglilp8MTVPHlyS9byfemPAmFN90oRIPB05BA==} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /turbo@1.10.14: + resolution: {integrity: sha512-hr9wDNYcsee+vLkCDIm8qTtwhJ6+UAMJc3nIY6+PNgUTtXcQgHxCq8BGoL7gbABvNWv76CNbK5qL4Lp9G3ZYRA==} + hasBin: true + optionalDependencies: + turbo-darwin-64: 1.10.14 + turbo-darwin-arm64: 1.10.14 + turbo-linux-64: 1.10.14 + turbo-linux-arm64: 1.10.14 + turbo-windows-64: 1.10.14 + turbo-windows-arm64: 1.10.14 + dev: true + /typescript@5.2.2: resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} diff --git a/turbo.json b/turbo.json new file mode 100644 index 000000000..c1e633f83 --- /dev/null +++ b/turbo.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://turbo.build/schema.json", + "pipeline": { + "build": { + "outputs": ["dist/**", "types/**"] + } + } +}