From 8ea378cb65a21b9dd057f8a740576a3e136eda64 Mon Sep 17 00:00:00 2001 From: Mayank Date: Sun, 30 Jun 2024 07:45:12 +0530 Subject: [PATCH] Clean up --- examples/express/.eslintrc.js | 8 --- examples/express/package.json | 40 ----------- examples/express/src/__tests__/server.test.ts | 22 ------ examples/express/src/index.ts | 9 --- examples/express/src/server.ts | 23 ------ examples/express/tsconfig.json | 9 --- examples/express/tsup.config.ts | 8 --- examples/express/turbo.json | 12 ---- examples/remix/.eslintrc.js | 8 --- examples/remix/.gitignore | 11 --- examples/remix/README.md | 34 --------- examples/remix/app/entry.client.tsx | 23 ------ examples/remix/app/entry.server.tsx | 14 ---- examples/remix/app/root.tsx | 42 ----------- examples/remix/app/routes/_index.tsx | 11 --- examples/remix/app/styles.css | 68 ------------------ examples/remix/package.json | 38 ---------- examples/remix/public/favicon.ico | Bin 16958 -> 0 bytes examples/remix/remix.config.js | 9 --- examples/remix/remix.env.d.ts | 2 - examples/remix/server.js | 4 -- examples/remix/tsconfig.json | 18 ----- examples/remix/turbo.json | 13 ---- packages/jest-presets/browser/jest-preset.js | 14 ---- packages/jest-presets/node/jest-preset.js | 13 ---- packages/jest-presets/package.json | 16 ----- packages/logger/.eslintrc.js | 11 --- packages/logger/package.json | 30 -------- packages/logger/src/__tests__/log.test.ts | 11 --- packages/logger/src/index.ts | 4 -- packages/logger/tsconfig.json | 10 --- packages/logger/tsup.config.ts | 9 --- packages/logger/turbo.json | 12 ---- 33 files changed, 556 deletions(-) delete mode 100644 examples/express/.eslintrc.js delete mode 100644 examples/express/package.json delete mode 100644 examples/express/src/__tests__/server.test.ts delete mode 100644 examples/express/src/index.ts delete mode 100644 examples/express/src/server.ts delete mode 100644 examples/express/tsconfig.json delete mode 100644 examples/express/tsup.config.ts delete mode 100644 examples/express/turbo.json delete mode 100644 examples/remix/.eslintrc.js delete mode 100644 examples/remix/.gitignore delete mode 100644 examples/remix/README.md delete mode 100644 examples/remix/app/entry.client.tsx delete mode 100644 examples/remix/app/entry.server.tsx delete mode 100644 examples/remix/app/root.tsx delete mode 100644 examples/remix/app/routes/_index.tsx delete mode 100644 examples/remix/app/styles.css delete mode 100644 examples/remix/package.json delete mode 100644 examples/remix/public/favicon.ico delete mode 100644 examples/remix/remix.config.js delete mode 100644 examples/remix/remix.env.d.ts delete mode 100644 examples/remix/server.js delete mode 100644 examples/remix/tsconfig.json delete mode 100644 examples/remix/turbo.json delete mode 100644 packages/jest-presets/browser/jest-preset.js delete mode 100644 packages/jest-presets/node/jest-preset.js delete mode 100644 packages/jest-presets/package.json delete mode 100644 packages/logger/.eslintrc.js delete mode 100644 packages/logger/package.json delete mode 100644 packages/logger/src/__tests__/log.test.ts delete mode 100644 packages/logger/src/index.ts delete mode 100644 packages/logger/tsconfig.json delete mode 100644 packages/logger/tsup.config.ts delete mode 100644 packages/logger/turbo.json diff --git a/examples/express/.eslintrc.js b/examples/express/.eslintrc.js deleted file mode 100644 index c25697c3..00000000 --- a/examples/express/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import("eslint").Linter.Config} */ -module.exports = { - extends: ["@repo/eslint-config/server.js"], - parser: "@typescript-eslint/parser", - parserOptions: { - project: true, - }, -}; diff --git a/examples/express/package.json b/examples/express/package.json deleted file mode 100644 index 310d2966..00000000 --- a/examples/express/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@example/express", - "version": "0.0.0", - "private": true, - "scripts": { - "start": "node dist/index.js", - "dev": "tsup --watch --onSuccess \"node dist/index.js\"", - "build": "tsup", - "clean": "rm -rf dist", - "typecheck": "tsc --noEmit", - "lint": "eslint src/", - "test": "jest --detectOpenHandles" - }, - "jest": { - "preset": "@repo/jest-presets/node" - }, - "dependencies": { - "@repo/logger": "workspace:*", - "body-parser": "^1.20.2", - "cors": "^2.8.5", - "express": "^4.19.2", - "morgan": "^1.10.0" - }, - "devDependencies": { - "@repo/eslint-config": "workspace:*", - "@repo/jest-presets": "workspace:*", - "@repo/typescript-config": "workspace:*", - "@types/body-parser": "^1.19.5", - "@types/cors": "^2.8.17", - "@types/express": "^4.17.21", - "@types/jest": "^29.5.12", - "@types/morgan": "^1.9.9", - "@types/node": "^20.14.9", - "@types/supertest": "^6.0.2", - "jest": "^29.7.0", - "supertest": "^7.0.0", - "tsup": "^8.1.0", - "typescript": "^5.5.2" - } -} \ No newline at end of file diff --git a/examples/express/src/__tests__/server.test.ts b/examples/express/src/__tests__/server.test.ts deleted file mode 100644 index dbc6a9dc..00000000 --- a/examples/express/src/__tests__/server.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import supertest from "supertest"; -import { createServer } from "../server"; - -describe("Server", () => { - it("health check returns 200", async () => { - await supertest(createServer()) - .get("/status") - .expect(200) - .then(res => { - expect(res.ok).toBe(true); - }); - }); - - it("message endpoint says hello", async () => { - await supertest(createServer()) - .get("/message/jared") - .expect(200) - .then(res => { - expect(res.body).toEqual({ message: "hello jared" }); - }); - }); -}); diff --git a/examples/express/src/index.ts b/examples/express/src/index.ts deleted file mode 100644 index e0393743..00000000 --- a/examples/express/src/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { log } from "@repo/logger"; -import { createServer } from "./server"; - -const port = process.env.PORT || 5001; -const server = createServer(); - -server.listen(port, () => { - log(`api running on ${port}`); -}); diff --git a/examples/express/src/server.ts b/examples/express/src/server.ts deleted file mode 100644 index a144d2a1..00000000 --- a/examples/express/src/server.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { json, urlencoded } from "body-parser"; -import express, { type Express } from "express"; -import morgan from "morgan"; -import cors from "cors"; - -/** Create express server. */ -export const createServer = (): Express => { - const app = express(); - app - .disable("x-powered-by") - .use(morgan("dev")) - .use(urlencoded({ extended: true })) - .use(json()) - .use(cors()) - .get("/message/:name", (req, res) => { - return res.json({ message: `hello ${req.params.name}` }); - }) - .get("/status", (_, res) => { - return res.json({ ok: true }); - }); - - return app; -}; diff --git a/examples/express/tsconfig.json b/examples/express/tsconfig.json deleted file mode 100644 index 6713bc99..00000000 --- a/examples/express/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@repo/typescript-config/base.json", - "compilerOptions": { - "lib": ["ES2015"], - "outDir": "./dist" - }, - "exclude": ["node_modules"], - "include": ["."] -} diff --git a/examples/express/tsup.config.ts b/examples/express/tsup.config.ts deleted file mode 100644 index 40c9e6eb..00000000 --- a/examples/express/tsup.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { defineConfig, type Options } from "tsup"; - -export default defineConfig((options: Options) => ({ - entryPoints: ["src/index.ts"], - clean: true, - format: ["cjs"], - ...options, -})); diff --git a/examples/express/turbo.json b/examples/express/turbo.json deleted file mode 100644 index 52e8c763..00000000 --- a/examples/express/turbo.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": [ - "//" - ], - "tasks": { - "build": { - "outputs": [ - "dist/**" - ] - } - } -} diff --git a/examples/remix/.eslintrc.js b/examples/remix/.eslintrc.js deleted file mode 100644 index b86550f3..00000000 --- a/examples/remix/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import("eslint").Linter.Config} */ -module.exports = { - extends: ["@repo/eslint-config/remix.js"], - parser: "@typescript-eslint/parser", - parserOptions: { - project: true, - }, -}; diff --git a/examples/remix/.gitignore b/examples/remix/.gitignore deleted file mode 100644 index 42ec5e40..00000000 --- a/examples/remix/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -node_modules - -.cache -.env -.vercel -.output - -build -public/build -api/index.js* -api/_assets* diff --git a/examples/remix/README.md b/examples/remix/README.md deleted file mode 100644 index 944936b3..00000000 --- a/examples/remix/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# Welcome to Remix! - -- [Remix Docs](https://remix.run/docs) - -## Deployment - -After having run the `create-remix` command and selected "Vercel" as a deployment target, you only need to [import your Git repository](https://vercel.com/new) into Vercel, and it will be deployed. - -If you'd like to avoid using a Git repository, you can also deploy the directory by running [Vercel CLI](https://vercel.com/cli): - -```sh -npm i -g vercel -vercel -``` - -It is generally recommended to use a Git repository, because future commits will then automatically be deployed by Vercel, through its [Git Integration](https://vercel.com/docs/concepts/git). - -## Development - -To run your Remix app locally, make sure your project's local dependencies are installed: - -```sh -npm install -``` - -Afterwards, start the Remix development server like so: - -```sh -npm run dev -``` - -Open up [http://localhost:3000](http://localhost:3000) and you should be ready to go! - -If you're used to using the `vercel dev` command provided by [Vercel CLI](https://vercel.com/cli) instead, you can also use that, but it's not needed. diff --git a/examples/remix/app/entry.client.tsx b/examples/remix/app/entry.client.tsx deleted file mode 100644 index 4a0775b2..00000000 --- a/examples/remix/app/entry.client.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { RemixBrowser } from "@remix-run/react"; -import { startTransition, StrictMode } from "react"; -import { hydrateRoot } from "react-dom/client"; - -/** Hydration */ -function hydrate(): void { - startTransition(() => { - hydrateRoot( - document, - - - , - ); - }); -} - -if (typeof requestIdleCallback === "function") { - requestIdleCallback(hydrate); -} else { - // Safari doesn't support requestIdleCallback - // https://caniuse.com/requestidlecallback - setTimeout(hydrate, 1); -} diff --git a/examples/remix/app/entry.server.tsx b/examples/remix/app/entry.server.tsx deleted file mode 100644 index a66506f8..00000000 --- a/examples/remix/app/entry.server.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import handleRequest from "@vercel/remix-entry-server"; -import { RemixServer } from "@remix-run/react"; -import type { EntryContext } from "@remix-run/server-runtime"; - -/** Server entry */ -export default function entry( - request: Request, - responseStatusCode: number, - responseHeaders: Headers, - remixContext: EntryContext, -): Promise { - const remixServer = ; - return handleRequest(request, responseStatusCode, responseHeaders, remixServer); -} diff --git a/examples/remix/app/root.tsx b/examples/remix/app/root.tsx deleted file mode 100644 index 26f880a9..00000000 --- a/examples/remix/app/root.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import type { MetaFunction, LinksFunction } from "@remix-run/node"; -import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react"; -import { Analytics } from "@vercel/analytics/react"; -import styles from "./styles.css"; -import { Layout } from "@repo/shared/dist/server"; -import { Core } from "nextjs-darkmode"; -import { Header } from "@repo/shared"; - -/** Page metadata */ -export const meta: MetaFunction = () => [ - { - charset: "utf-8", - title: `Blog | React18 Loaders`, - viewport: "width=device-width,initial-scale=1", - }, -]; - -/** Add links to head */ -export const links: LinksFunction = () => [{ rel: "stylesheet", href: styles }]; - -/** Remix app root */ -export default function App(): JSX.Element { - return ( - - - - - - - - -
- - - - - - - - - ); -} diff --git a/examples/remix/app/routes/_index.tsx b/examples/remix/app/routes/_index.tsx deleted file mode 100644 index 55f230e6..00000000 --- a/examples/remix/app/routes/_index.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { Demo } from "@repo/shared"; -import { LandingPage } from "@repo/shared/dist/server"; - -/** Remix App */ -export default function Index(): JSX.Element { - return ( - - - - ); -} diff --git a/examples/remix/app/styles.css b/examples/remix/app/styles.css deleted file mode 100644 index cb687b23..00000000 --- a/examples/remix/app/styles.css +++ /dev/null @@ -1,68 +0,0 @@ -@import "nextjs-darkmode/css"; -@import "@repo/shared/dist/global.css"; -@import "@repo/shared/dist"; -@import "react18-loaders/dist"; - -html { - font-family: - ui-sans-serif, - system-ui, - -apple-system, - BlinkMacSystemFont, - Segoe UI, - Roboto, - Helvetica Neue, - Arial, - sans-serif; - -webkit-text-size-adjust: 100%; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-tap-highlight-color: transparent; - line-height: 1.5; - tab-size: 4; -} - -body { - margin: 0; -} - -.container { - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - gap: 1.5rem; - max-width: 100%; - margin: 0 auto; - padding: 0 16px; - text-align: center; -} - -.title { - font-size: 3rem; - font-weight: 700; - margin: 0; -} - -.title span { - display: inline-block; - background-image: linear-gradient(to right, #3b82f6, #ef4444); - -webkit-background-clip: text; - background-clip: text; - color: transparent; -} - -.description { - color: #9ca3af; - font-weight: 500; -} - -.description a { - color: #3b82f6; - text-decoration: none; -} - -.description a:hover { - text-decoration: underline; -} diff --git a/examples/remix/package.json b/examples/remix/package.json deleted file mode 100644 index bbcb73f3..00000000 --- a/examples/remix/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@example/remix", - "version": "0.0.0", - "private": true, - "sideEffects": false, - "scripts": { - "build": "remix build", - "dev": "remix dev", - "typecheck": "tsc --noEmit", - "lint": "eslint app/" - }, - "dependencies": { - "@remix-run/node": "^2.10.0", - "@remix-run/react": "^2.10.0", - "@remix-run/serve": "^2.10.0", - "@remix-run/server-runtime": "^2.10.0", - "@repo/shared": "workspace:*", - "@vercel/analytics": "^1.3.1", - "@vercel/remix-entry-server": "^0.1.1", - "nextjs-darkmode": "^1.0.4", - "react": "^18.3.1", - "react-dom": "^18.3.1", - "react18-loaders": "latest", - "react18-themes": "^3.2.0", - "esbuild-plugin-webgl": "workspace:*" - }, - "devDependencies": { - "@remix-run/dev": "^2.10.0", - "@repo/eslint-config": "workspace:*", - "@repo/typescript-config": "workspace:*", - "@types/react": "^18.3.3", - "@types/react-dom": "^18.3.0", - "typescript": "^5.5.2" - }, - "engines": { - "node": ">=18" - } -} \ No newline at end of file diff --git a/examples/remix/public/favicon.ico b/examples/remix/public/favicon.ico deleted file mode 100644 index 8830cf6821b354114848e6354889b8ecf6d2bc61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16958 zcmeI3+jCXb9mnJN2h^uNlXH@jlam{_a8F3W{T}Wih>9YJpaf7TUbu)A5fv|h7OMfR zR;q$lr&D!wv|c)`wcw1?>4QT1(&|jdsrI2h`Rn)dTW5t$8pz=s3_5L?#oBxAowe8R z_WfPfN?F+@`q$D@rvC?(W!uWieppskmQ~YG*>*L?{img@tWpnYXZslxeh#TSUS3{q z1Ju6JcfQSbQuORq69@YK(X-3c9vC2c2a2z~zw=F=50@pm0PUiCAm!bAT?2jpM`(^b zC|2&Ngngt^<>oCv#?P(AZ`5_84x#QBPulix)TpkIAUp=(KgGo4CVS~S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zEr)Bn9x)I(wx`;JVwvRcc^io2XX(Nn3vr3dgbrr@YJ?K3w18P*52^ieBCQP z=Up1V$N2~5ppJHRTeY8QfM(7Yv&RG7oWJAyv?c3g(29)P)u;_o&w|&)HGDIinXT~p z3;S|e$=&Tek9Wn!`cdY+d-w@o`37}x{(hl>ykB|%9yB$CGdIcl7Z?d&lJ%}QHck77 zJPR%C+s2w1_Dl_pxu6$Zi!`HmoD-%7OD@7%lKLL^Ixd9VlRSW*o&$^iQ2z+}hTgH) z#91TO#+jH<`w4L}XWOt(`gqM*uTUcky`O(mEyU|4dJoy6*UZJ7%*}ajuos%~>&P2j zk23f5<@GeV?(?`l=ih+D8t`d72xrUjv0wsg;%s1@*2p?TQ;n2$pV7h?_T%sL>iL@w zZ{lmc<|B7!e&o!zs6RW+u8+aDyUdG>ZS(v&rT$QVymB7sEC@VsK1dg^3F@K90-wYB zX!we79qx`(6LA>F$~{{xE8-3Wzyfe`+Lsce(?uj{k@lb97YTJt#>l*Z&LyKX@zjmu?UJC9w~;|NsB{%7G}y*uNDBxirfC EKbET!0{{R3 diff --git a/examples/remix/remix.config.js b/examples/remix/remix.config.js deleted file mode 100644 index 5bdbfd78..00000000 --- a/examples/remix/remix.config.js +++ /dev/null @@ -1,9 +0,0 @@ -/** @type {import('@remix-run/dev').AppConfig} */ -module.exports = { - ignoredRouteFiles: ["**/.*"], - serverModuleFormat: "cjs", - // appDirectory: "app", - // assetsBuildDirectory: "public/build", - // serverBuildPath: "build/index.js", - // publicPath: "/build/", -}; diff --git a/examples/remix/remix.env.d.ts b/examples/remix/remix.env.d.ts deleted file mode 100644 index 5c938f10..00000000 --- a/examples/remix/remix.env.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -/// diff --git a/examples/remix/server.js b/examples/remix/server.js deleted file mode 100644 index 3b02013a..00000000 --- a/examples/remix/server.js +++ /dev/null @@ -1,4 +0,0 @@ -import { createRequestHandler } from "@remix-run/server-runtime"; -import * as build from "@remix-run/dev/server-build"; - -export default createRequestHandler({ build, mode: process.env.NODE_ENV }); diff --git a/examples/remix/tsconfig.json b/examples/remix/tsconfig.json deleted file mode 100644 index 2770e9c0..00000000 --- a/examples/remix/tsconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@repo/typescript-config/remix.json", - "compilerOptions": { - "rootDir": ".", - "outDir": "dist", - "paths": { - "~/*": ["./app/*"] - } - }, - "include": [ - "remix.env.d.ts", - "**/*.ts", - "**/*.tsx", - "server.js", - "remix.config.js" - ], - "exclude": ["node_modules", "build"] -} diff --git a/examples/remix/turbo.json b/examples/remix/turbo.json deleted file mode 100644 index e96fb0bb..00000000 --- a/examples/remix/turbo.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": [ - "//" - ], - "tasks": { - "build": { - "outputs": [ - "build/**", - "public/build/**" - ] - } - } -} diff --git a/packages/jest-presets/browser/jest-preset.js b/packages/jest-presets/browser/jest-preset.js deleted file mode 100644 index 3173ffd6..00000000 --- a/packages/jest-presets/browser/jest-preset.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - roots: [""], - testEnvironment: "jsdom", - transform: { - "^.+\\.tsx?$": "ts-jest", - }, - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - modulePathIgnorePatterns: [ - "/test/__fixtures__", - "/node_modules", - "/dist", - ], - preset: "ts-jest", -}; diff --git a/packages/jest-presets/node/jest-preset.js b/packages/jest-presets/node/jest-preset.js deleted file mode 100644 index b6c25930..00000000 --- a/packages/jest-presets/node/jest-preset.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = { - roots: [""], - transform: { - "^.+\\.tsx?$": "ts-jest", - }, - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], - modulePathIgnorePatterns: [ - "/test/__fixtures__", - "/node_modules", - "/dist", - ], - preset: "ts-jest", -}; diff --git a/packages/jest-presets/package.json b/packages/jest-presets/package.json deleted file mode 100644 index 2e41bb45..00000000 --- a/packages/jest-presets/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@repo/jest-presets", - "version": "0.0.0", - "private": true, - "license": "MIT", - "files": [ - "browser/jest-preset.js", - "node/jest-preset.js" - ], - "dependencies": { - "ts-jest": "^29.1.5" - }, - "devDependencies": { - "jest-environment-jsdom": "^29.7.0" - } -} \ No newline at end of file diff --git a/packages/logger/.eslintrc.js b/packages/logger/.eslintrc.js deleted file mode 100644 index 49f67f37..00000000 --- a/packages/logger/.eslintrc.js +++ /dev/null @@ -1,11 +0,0 @@ -/** @type {import("eslint").Linter.Config} */ -module.exports = { - extends: ["@repo/eslint-config/index.js"], - parser: "@typescript-eslint/parser", - parserOptions: { - project: true, - }, - env: { - jest: true, - }, -}; diff --git a/packages/logger/package.json b/packages/logger/package.json deleted file mode 100644 index 449a05c7..00000000 --- a/packages/logger/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@repo/logger", - "version": "0.0.0", - "private": true, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "files": [ - "dist/**" - ], - "scripts": { - "build": "tsup", - "dev": "tsup --watch", - "lint": "eslint src/", - "typecheck": "tsc --noEmit", - "test": "jest" - }, - "jest": { - "preset": "@repo/jest-presets/node" - }, - "devDependencies": { - "@repo/eslint-config": "workspace:*", - "@repo/jest-presets": "workspace:*", - "@repo/typescript-config": "workspace:*", - "@types/jest": "^29.5.12", - "@types/node": "^20.14.9", - "jest": "^29.7.0", - "tsup": "^8.1.0", - "typescript": "^5.5.2" - } -} \ No newline at end of file diff --git a/packages/logger/src/__tests__/log.test.ts b/packages/logger/src/__tests__/log.test.ts deleted file mode 100644 index e196fcc9..00000000 --- a/packages/logger/src/__tests__/log.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { log } from ".."; - -jest.spyOn(global.console, "log"); - -describe("@repo/logger", () => { - it("prints a message", () => { - log("hello"); - // eslint-disable-next-line no-console -- testing console - expect(console.log).toBeCalledWith("LOGGER: ", "hello"); - }); -}); diff --git a/packages/logger/src/index.ts b/packages/logger/src/index.ts deleted file mode 100644 index d573ddf4..00000000 --- a/packages/logger/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const log = (...args: unknown[]): void => { - // eslint-disable-next-line no-console -- logger - console.log("LOGGER: ", ...args); -}; diff --git a/packages/logger/tsconfig.json b/packages/logger/tsconfig.json deleted file mode 100644 index a7f4e490..00000000 --- a/packages/logger/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@repo/typescript-config/base.json", - "compilerOptions": { - "lib": ["ES2015"], - "outDir": "./dist", - "types": ["jest", "node"] - }, - "include": ["."], - "exclude": ["node_modules", "dist"], -} diff --git a/packages/logger/tsup.config.ts b/packages/logger/tsup.config.ts deleted file mode 100644 index be508ff5..00000000 --- a/packages/logger/tsup.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defineConfig, type Options } from "tsup"; - -export default defineConfig((options: Options) => ({ - entryPoints: ["src/index.ts"], - clean: true, - dts: true, - format: ["cjs"], - ...options, -})); diff --git a/packages/logger/turbo.json b/packages/logger/turbo.json deleted file mode 100644 index 52e8c763..00000000 --- a/packages/logger/turbo.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": [ - "//" - ], - "tasks": { - "build": { - "outputs": [ - "dist/**" - ] - } - } -}