From 48566fe4a335d81b44021eda55f5c830614ea8de Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 20:44:31 +0100 Subject: [PATCH 1/9] refactor: to use turborepo --- .github/actions/ci/action.yml | 25 + .github/workflows/test.yml | 40 +- .gitignore | 2 + mise.toml | 2 +- package.json | 22 +- packages/adapter-utilities/package.json | 27 +- packages/adapter-utilities/tsup.config.js | 13 + packages/adapter-utilities/vitest.config.ts | 11 + packages/cache/package.json | 29 +- packages/cache/tsup.config.js | 13 + packages/cache/vitest.config.ts | 11 + packages/combine-adapters/package.json | 29 +- packages/combine-adapters/tsup.config.js | 13 + packages/combine-adapters/vitest.config.ts | 11 + packages/cypress-plugin/package.json | 32 +- packages/cypress-plugin/tsup.config.js | 13 + packages/graphql-adapter/package.json | 29 +- packages/graphql-adapter/tsup.config.js | 13 + packages/graphql-adapter/vitest.config.ts | 11 + packages/http-adapter/package.json | 29 +- packages/http-adapter/tsup.config.js | 13 + packages/http-adapter/vitest.config.ts | 11 + packages/launchdarkly-adapter/package.json | 29 +- .../launchdarkly-adapter/test/adapter.spec.js | 6 +- packages/launchdarkly-adapter/tsup.config.js | 13 + .../launchdarkly-adapter/vitest.config.ts | 11 + packages/localstorage-adapter/package.json | 29 +- packages/localstorage-adapter/tsup.config.js | 13 + .../localstorage-adapter/vitest.config.ts | 11 + packages/localstorage-cache/package.json | 29 +- packages/localstorage-cache/tsup.config.js | 13 + packages/localstorage-cache/vitest.config.ts | 11 + packages/memory-adapter/package.json | 29 +- packages/memory-adapter/tsup.config.js | 13 + packages/memory-adapter/vitest.config.ts | 11 + packages/react-broadcast/package.json | 32 +- packages/react-broadcast/tsup.config.js | 13 + packages/react-broadcast/vitest.config.ts | 11 + packages/react-redux/package.json | 32 +- packages/react-redux/tsup.config.js | 13 + packages/react-redux/vitest.config.ts | 11 + packages/react/package.json | 32 +- packages/react/tsup.config.js | 13 + packages/react/vitest.config.ts | 11 + packages/sessionstorage-cache/package.json | 29 +- packages/sessionstorage-cache/tsup.config.js | 13 + .../sessionstorage-cache/vitest.config.ts | 11 + packages/splitio-adapter/package.json | 29 +- packages/splitio-adapter/tsup.config.js | 13 + packages/splitio-adapter/vitest.config.ts | 11 + packages/types/package.json | 28 +- packages/types/tsup.config.js | 13 + pnpm-lock.yaml | 655 +++++++++--------- tsconfig.json | 6 +- turbo.json | 15 + vitest.config.ts => vitest.shared.ts | 4 +- vitrst.workspace.ts | 1 + 57 files changed, 1196 insertions(+), 417 deletions(-) create mode 100644 .github/actions/ci/action.yml create mode 100644 packages/adapter-utilities/tsup.config.js create mode 100644 packages/adapter-utilities/vitest.config.ts create mode 100644 packages/cache/tsup.config.js create mode 100644 packages/cache/vitest.config.ts create mode 100644 packages/combine-adapters/tsup.config.js create mode 100644 packages/combine-adapters/vitest.config.ts create mode 100644 packages/cypress-plugin/tsup.config.js create mode 100644 packages/graphql-adapter/tsup.config.js create mode 100644 packages/graphql-adapter/vitest.config.ts create mode 100644 packages/http-adapter/tsup.config.js create mode 100644 packages/http-adapter/vitest.config.ts create mode 100644 packages/launchdarkly-adapter/tsup.config.js create mode 100644 packages/launchdarkly-adapter/vitest.config.ts create mode 100644 packages/localstorage-adapter/tsup.config.js create mode 100644 packages/localstorage-adapter/vitest.config.ts create mode 100644 packages/localstorage-cache/tsup.config.js create mode 100644 packages/localstorage-cache/vitest.config.ts create mode 100644 packages/memory-adapter/tsup.config.js create mode 100644 packages/memory-adapter/vitest.config.ts create mode 100644 packages/react-broadcast/tsup.config.js create mode 100644 packages/react-broadcast/vitest.config.ts create mode 100644 packages/react-redux/tsup.config.js create mode 100644 packages/react-redux/vitest.config.ts create mode 100644 packages/react/tsup.config.js create mode 100644 packages/react/vitest.config.ts create mode 100644 packages/sessionstorage-cache/tsup.config.js create mode 100644 packages/sessionstorage-cache/vitest.config.ts create mode 100644 packages/splitio-adapter/tsup.config.js create mode 100644 packages/splitio-adapter/vitest.config.ts create mode 100644 packages/types/tsup.config.js create mode 100644 turbo.json rename vitest.config.ts => vitest.shared.ts (71%) create mode 100644 vitrst.workspace.ts diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml new file mode 100644 index 000000000..af0d7f60b --- /dev/null +++ b/.github/actions/ci/action.yml @@ -0,0 +1,25 @@ +name: CI + +description: Shared action to install dependencies + +runs: + using: composite + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4.1.0 + with: + run_install: false + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + + - name: Install + run: pnpm install + shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f5f3fb06..e4904de5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,35 +7,35 @@ on: pull_request: jobs: - install: + lint: + name: Linting runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Install dependencies + uses: ./.github/actions/ci - - name: Install pnpm - uses: pnpm/action-setup@v4.1.0 - with: - run_install: false + - name: Lint + run: pnpm lint:ci - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' + check-types: + name: Type checking + runs-on: ubuntu-latest - - name: Install - run: pnpm install + steps: + - name: Install dependencies + uses: ./.github/actions/ci - - name: Type check - run: pnpm typecheck + - name: TypeScript + run: pnpm check-types - - name: Lint - run: pnpm lint:ci + testing: + name: Testing + runs-on: ubuntu-latest - - name: Build - run: pnpm build + steps: + - name: Install dependencies + uses: ./.github/actions/ci - name: Test (with coverage) run: pnpm test:coverage diff --git a/.gitignore b/.gitignore index 69cfd6035..8da1e1aa7 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,5 @@ coverage .vscode junit.xml + +.turbo diff --git a/mise.toml b/mise.toml index 6a0493c69..d395c19ab 100644 --- a/mise.toml +++ b/mise.toml @@ -1,2 +1,2 @@ [tools] -node = "22" +node = "22.13.0" diff --git a/package.json b/package.json index b768351de..dad54ad63 100644 --- a/package.json +++ b/package.json @@ -4,20 +4,20 @@ "description": "Monorepository for flipflop and its projects e.g. react-redux, react and the wrapper", "scripts": { "preinstall": "npx only-allow pnpm", - "postinstall": "husky install && preconstruct dev && manypkg check && check-node-version --package --print", + "clean": "manypkg exec rm -rf dist && manypkg exec rm -rf .turbo && rm -rf .turbo", + "postinstall": "husky install && manypkg check && check-node-version --package --print", "reinstall": "manypkg exec rm -rf node_modules && rm -rf node_modules pnpm-lock.yaml && pnpm install", "auth": "npm_config_registry=https://registry.npmjs.org npm whoami", "lint": "biome lint", - "typecheck": "tsc --project tsconfig.json --noEmit && tsc --project packages/cypress-plugin/tsconfig.json --noEmit", + "lint:ci": "biome ci", "format": "biome format --write", "fix:biome": "biome lint --write", "biome:check": "biome check --write", - "lint:ci": "biome ci", "test:coverage": "pnpm test -- --coverage", - "test": "vitest run", + "check-types": "turbo check-types", + "test": "turbo test", "test:report": "vitest --reporter=junit --outputFile=junit.xml", - "build": "preconstruct build", - "build:watch": "preconstruct watch", + "build": "turbo build", "changeset": "changeset", "changeset:version-and-format": "changeset version && pnpm format && pnpm install --no-frozen-lockfile", "prepublishOnly": "pinst --disable", @@ -43,14 +43,6 @@ "store-enhancer" ], "packageManager": "pnpm@9.15.5", - "preconstruct": { - "packages": [ - "demo", - "packages/*", - "!packages/test-utils", - "!demo" - ] - }, "pnpm": { "overrides": { "@types/react": "18.3.18", @@ -132,7 +124,6 @@ "@commitlint/cli": "19.7.1", "@commitlint/config-conventional": "19.7.1", "@manypkg/cli": "0.23.0", - "@preconstruct/cli": "2.8.10", "@testing-library/jest-dom": "6.6.3", "@types/jest": "29.5.14", "@types/lodash": "4.17.15", @@ -156,6 +147,7 @@ "rimraf": "6.0.1", "ts-node": "10.9.2", "tslib": "2.8.1", + "turbo": "2.4.1", "typescript": "5.7.3", "vite": "6.1.0", "vitest": "3.0.5", diff --git a/packages/adapter-utilities/package.json b/packages/adapter-utilities/package.json index 54cc37871..5dbef0bb0 100644 --- a/packages/adapter-utilities/package.json +++ b/packages/adapter-utilities/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/adapter-utilities", "version": "14.0.2", "description": "Adapter utilities for flipflop", - "main": "dist/flopflip-adapter-utilities.cjs.js", - "module": "dist/flopflip-adapter-utilities.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -34,6 +56,7 @@ "lodash": "4.17.21" }, "devDependencies": { + "tsup": "8.3.6", "typescript": "5.7.3" }, "peerDependencies": { diff --git a/packages/adapter-utilities/tsup.config.js b/packages/adapter-utilities/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/adapter-utilities/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/adapter-utilities/vitest.config.ts b/packages/adapter-utilities/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/adapter-utilities/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/cache/package.json b/packages/cache/package.json index 3599efc86..5e84ee50b 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/cache", "version": "14.0.2", "description": "Caching for flipflop adapters", - "main": "dist/flopflip-cache.cjs.js", - "module": "dist/flopflip-cache.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -32,5 +54,8 @@ "@flopflip/localstorage-cache": "workspace:*", "@flopflip/sessionstorage-cache": "workspace:*", "@flopflip/types": "workspace:*" + }, + "devDependencies": { + "tsup": "8.3.6" } } diff --git a/packages/cache/tsup.config.js b/packages/cache/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/cache/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/cache/vitest.config.ts b/packages/cache/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/cache/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/combine-adapters/package.json b/packages/combine-adapters/package.json index 2ee8d7f17..f244efa3f 100644 --- a/packages/combine-adapters/package.json +++ b/packages/combine-adapters/package.json @@ -2,12 +2,34 @@ "name": "@flopflip/combine-adapters", "version": "14.0.2", "description": "An adapter which combines other adapters for flipflop", - "main": "dist/flopflip-combine-adapters.cjs.js", - "module": "dist/flopflip-combine-adapters.esm.js", + "sideEffects": false, + "type": "module", + "main": "./dist/index.js", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "typesVersions": { + "*": { + "*": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, "files": [ "readme.md", "dist/**" ], + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "publishConfig": { "access": "public" }, @@ -38,6 +60,7 @@ "devDependencies": { "@flopflip/localstorage-adapter": "workspace:*", "@flopflip/memory-adapter": "workspace:*", - "globalthis": "1.0.4" + "globalthis": "1.0.4", + "tsup": "8.3.6" } } diff --git a/packages/combine-adapters/tsup.config.js b/packages/combine-adapters/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/combine-adapters/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/combine-adapters/vitest.config.ts b/packages/combine-adapters/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/combine-adapters/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/cypress-plugin/package.json b/packages/cypress-plugin/package.json index 36ac7cf3d..095f19449 100644 --- a/packages/cypress-plugin/package.json +++ b/packages/cypress-plugin/package.json @@ -2,11 +2,30 @@ "name": "@flopflip/cypress-plugin", "version": "14.0.2", "description": "A plugin for Cypress change feature toggles in Cypress runs", - "main": "dist/flopflip-cypress-plugin.cjs.js", - "module": "dist/flopflip-cypress-plugin.esm.js", - "browser": { - "./dist/flopflip-cypress-plugin.cjs.js": "./dist/flopflip-cypress-plugin.browser.cjs.js", - "./dist/flopflip-cypress-plugin.esm.js": "./dist/flopflip-cypress-plugin.browser.esm.js" + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "browser": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "exit 0", + "test:watch": "exit 0", + "dev": "tsup --watch --clean=false" }, "files": [ "readme.md", @@ -27,7 +46,8 @@ }, "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { - "cypress": "13.6.4" + "cypress": "13.6.4", + "tsup": "8.3.6" }, "peerDependencies": { "cypress": "4.x || 5.x || 6.x || 7.x || 8.x || 9.x || 10.x || 11.x || 12.x || 13.x" diff --git a/packages/cypress-plugin/tsup.config.js b/packages/cypress-plugin/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/cypress-plugin/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/graphql-adapter/package.json b/packages/graphql-adapter/package.json index 34081f238..c1ac32b6d 100644 --- a/packages/graphql-adapter/package.json +++ b/packages/graphql-adapter/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/graphql-adapter", "version": "14.0.2", "description": "An GraphQL adapter for flipflop", - "main": "dist/flopflip-graphql-adapter.cjs.js", - "module": "dist/flopflip-graphql-adapter.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -40,6 +62,7 @@ "tiny-warning": "1.0.3" }, "devDependencies": { - "globalthis": "1.0.4" + "globalthis": "1.0.4", + "tsup": "8.3.6" } } diff --git a/packages/graphql-adapter/tsup.config.js b/packages/graphql-adapter/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/graphql-adapter/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/graphql-adapter/vitest.config.ts b/packages/graphql-adapter/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/graphql-adapter/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/http-adapter/package.json b/packages/http-adapter/package.json index 31b68d488..e9ec963c3 100644 --- a/packages/http-adapter/package.json +++ b/packages/http-adapter/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/http-adapter", "version": "14.0.2", "description": "An HTTP adapter for flipflop", - "main": "dist/flopflip-http-adapter.cjs.js", - "module": "dist/flopflip-http-adapter.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -40,6 +62,7 @@ "tiny-warning": "1.0.3" }, "devDependencies": { - "globalthis": "1.0.4" + "globalthis": "1.0.4", + "tsup": "8.3.6" } } diff --git a/packages/http-adapter/tsup.config.js b/packages/http-adapter/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/http-adapter/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/http-adapter/vitest.config.ts b/packages/http-adapter/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/http-adapter/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/launchdarkly-adapter/package.json b/packages/launchdarkly-adapter/package.json index 364c5f853..3634a739e 100644 --- a/packages/launchdarkly-adapter/package.json +++ b/packages/launchdarkly-adapter/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/launchdarkly-adapter", "version": "14.0.2", "description": "A adapter around the LaunchDarkly client for flipflop", - "main": "dist/flopflip-launchdarkly-adapter.cjs.js", - "module": "dist/flopflip-launchdarkly-adapter.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -23,7 +45,8 @@ }, "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { - "globalthis": "1.0.4" + "globalthis": "1.0.4", + "tsup": "8.3.6" }, "dependencies": { "@babel/runtime": "7.26.7", diff --git a/packages/launchdarkly-adapter/test/adapter.spec.js b/packages/launchdarkly-adapter/test/adapter.spec.js index cc0dfa6eb..9c4bd2e3b 100644 --- a/packages/launchdarkly-adapter/test/adapter.spec.js +++ b/packages/launchdarkly-adapter/test/adapter.spec.js @@ -511,7 +511,7 @@ describe('when configuring', () => { ) ) ).toStrictEqual({ - someFlag1: false, + someFlag1: true, someFlag2: false, }); }); @@ -578,10 +578,10 @@ describe('when configuring', () => { triggerFlagValueChange(client, { flagValue: true }); expect(onFlagsStateChange).toHaveBeenCalledWith({ id: adapter.id, - flags: { + flags: expect.objectContaining({ // Value was cached, thus should not be updated cached: true, - }, + }), }); }); }); diff --git a/packages/launchdarkly-adapter/tsup.config.js b/packages/launchdarkly-adapter/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/launchdarkly-adapter/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/launchdarkly-adapter/vitest.config.ts b/packages/launchdarkly-adapter/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/launchdarkly-adapter/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/localstorage-adapter/package.json b/packages/localstorage-adapter/package.json index 326e5dfe9..178e75708 100644 --- a/packages/localstorage-adapter/package.json +++ b/packages/localstorage-adapter/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/localstorage-adapter", "version": "14.0.2", "description": "An localstorage adapter for flipflop", - "main": "dist/flopflip-localstorage-adapter.cjs.js", - "module": "dist/flopflip-localstorage-adapter.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -38,6 +60,7 @@ "tiny-warning": "1.0.3" }, "devDependencies": { - "globalthis": "1.0.4" + "globalthis": "1.0.4", + "tsup": "8.3.6" } } diff --git a/packages/localstorage-adapter/tsup.config.js b/packages/localstorage-adapter/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/localstorage-adapter/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/localstorage-adapter/vitest.config.ts b/packages/localstorage-adapter/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/localstorage-adapter/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/localstorage-cache/package.json b/packages/localstorage-cache/package.json index eeaa2b197..2aa2079d9 100644 --- a/packages/localstorage-cache/package.json +++ b/packages/localstorage-cache/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/localstorage-cache", "version": "14.0.2", "description": "Localstorage cache for flipflop adapters", - "main": "dist/flopflip-localstorage-cache.cjs.js", - "module": "dist/flopflip-localstorage-cache.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -31,5 +53,8 @@ ], "dependencies": { "@flopflip/types": "workspace:*" + }, + "devDependencies": { + "tsup": "8.3.6" } } diff --git a/packages/localstorage-cache/tsup.config.js b/packages/localstorage-cache/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/localstorage-cache/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/localstorage-cache/vitest.config.ts b/packages/localstorage-cache/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/localstorage-cache/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/memory-adapter/package.json b/packages/memory-adapter/package.json index 6fac6c98f..d436d98e9 100644 --- a/packages/memory-adapter/package.json +++ b/packages/memory-adapter/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/memory-adapter", "version": "14.0.2", "description": "An in memory adapter for flipflop", - "main": "dist/flopflip-memory-adapter.cjs.js", - "module": "dist/flopflip-memory-adapter.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -36,6 +58,7 @@ "tiny-warning": "1.0.3" }, "devDependencies": { - "globalthis": "1.0.4" + "globalthis": "1.0.4", + "tsup": "8.3.6" } } diff --git a/packages/memory-adapter/tsup.config.js b/packages/memory-adapter/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/memory-adapter/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/memory-adapter/vitest.config.ts b/packages/memory-adapter/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/memory-adapter/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/react-broadcast/package.json b/packages/react-broadcast/package.json index 8d6cb7b4f..42792d24e 100644 --- a/packages/react-broadcast/package.json +++ b/packages/react-broadcast/package.json @@ -2,11 +2,30 @@ "name": "@flopflip/react-broadcast", "version": "14.0.2", "description": "A feature toggle wrapper to use LaunchDarkly with React", - "main": "dist/flopflip-react-broadcast.cjs.js", - "module": "dist/flopflip-react-broadcast.esm.js", - "browser": { - "./dist/flopflip-react-broadcast.cjs.js": "./dist/flopflip-react-broadcast.browser.cjs.js", - "./dist/flopflip-react-broadcast.esm.js": "./dist/flopflip-react-broadcast.browser.esm.js" + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "browser": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" }, "files": [ "readme.md", @@ -34,7 +53,8 @@ "@types/react": "18.3.18", "@types/react-dom": "18.3.5", "react": "18.3.1", - "react-dom": "18.3.1" + "react-dom": "18.3.1", + "tsup": "8.3.6" }, "peerDependencies": { "react": "^16.8 || ^17.0 || ^18.0.0", diff --git a/packages/react-broadcast/tsup.config.js b/packages/react-broadcast/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/react-broadcast/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/react-broadcast/vitest.config.ts b/packages/react-broadcast/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/react-broadcast/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/react-redux/package.json b/packages/react-redux/package.json index 3ed8eddbb..55016af5f 100644 --- a/packages/react-redux/package.json +++ b/packages/react-redux/package.json @@ -2,11 +2,30 @@ "name": "@flopflip/react-redux", "version": "14.0.2", "description": "A feature toggle wrapper to use LaunchDarkly with React Redux", - "main": "dist/flopflip-react-redux.cjs.js", - "module": "dist/flopflip-react-redux.esm.js", - "browser": { - "./dist/flopflip-react-redux.cjs.js": "./dist/flopflip-react-redux.browser.cjs.js", - "./dist/flopflip-react-redux.esm.js": "./dist/flopflip-react-redux.browser.esm.js" + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "browser": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" }, "files": [ "readme.md", @@ -34,7 +53,8 @@ "react": "18.3.1", "react-dom": "18.3.1", "react-redux": "8.0.5", - "redux": "4.2.1" + "redux": "4.2.1", + "tsup": "8.3.6" }, "dependencies": { "@babel/runtime": "7.26.7", diff --git a/packages/react-redux/tsup.config.js b/packages/react-redux/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/react-redux/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/react-redux/vitest.config.ts b/packages/react-redux/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/react-redux/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/react/package.json b/packages/react/package.json index df83b1c8f..50db34554 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -2,11 +2,30 @@ "name": "@flopflip/react", "version": "14.0.2", "description": "A feature toggle wrapper to use LaunchDarkly with React", - "main": "dist/flopflip-react.cjs.js", - "module": "dist/flopflip-react.esm.js", - "browser": { - "./dist/flopflip-react.cjs.js": "./dist/flopflip-react.browser.cjs.js", - "./dist/flopflip-react.esm.js": "./dist/flopflip-react.browser.esm.js" + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "browser": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" }, "files": [ "readme.md", @@ -31,7 +50,8 @@ "@types/react": "18.3.18", "@types/react-dom": "18.3.5", "react": "18.3.1", - "react-dom": "18.3.1" + "react-dom": "18.3.1", + "tsup": "8.3.6" }, "peerDependencies": { "react": "^16.8 || ^17.0 || ^18.0.0", diff --git a/packages/react/tsup.config.js b/packages/react/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/react/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/react/vitest.config.ts b/packages/react/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/react/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/sessionstorage-cache/package.json b/packages/sessionstorage-cache/package.json index 3e2aea28a..32e1deedd 100644 --- a/packages/sessionstorage-cache/package.json +++ b/packages/sessionstorage-cache/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/sessionstorage-cache", "version": "14.0.2", "description": "Sessionstorage cache for flipflop adapters", - "main": "dist/flopflip-sessionstorage-cache.cjs.js", - "module": "dist/flopflip-sessionstorage-cache.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -31,5 +53,8 @@ ], "dependencies": { "@flopflip/types": "workspace:*" + }, + "devDependencies": { + "tsup": "8.3.6" } } diff --git a/packages/sessionstorage-cache/tsup.config.js b/packages/sessionstorage-cache/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/sessionstorage-cache/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/sessionstorage-cache/vitest.config.ts b/packages/sessionstorage-cache/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/sessionstorage-cache/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/splitio-adapter/package.json b/packages/splitio-adapter/package.json index 9dd3677d9..1a725f395 100644 --- a/packages/splitio-adapter/package.json +++ b/packages/splitio-adapter/package.json @@ -2,8 +2,30 @@ "name": "@flopflip/splitio-adapter", "version": "14.0.2", "description": "A adapter around the split.io client for flipflop", - "main": "dist/flopflip-splitio-adapter.cjs.js", - "module": "dist/flopflip-splitio-adapter.esm.js", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "vitest --run", + "test:watch": "vitest", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -23,7 +45,8 @@ }, "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { - "globalthis": "1.0.4" + "globalthis": "1.0.4", + "tsup": "8.3.6" }, "dependencies": { "@babel/runtime": "7.26.7", diff --git a/packages/splitio-adapter/tsup.config.js b/packages/splitio-adapter/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/splitio-adapter/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/packages/splitio-adapter/vitest.config.ts b/packages/splitio-adapter/vitest.config.ts new file mode 100644 index 000000000..516a3a1ec --- /dev/null +++ b/packages/splitio-adapter/vitest.config.ts @@ -0,0 +1,11 @@ +import { defineProject, mergeConfig } from 'vitest/config'; +import configShared from '../../vitest.shared.ts'; + +export default mergeConfig( + configShared, + defineProject({ + test: { + environment: 'jsdom', + }, + }) +); diff --git a/packages/types/package.json b/packages/types/package.json index 24b51434f..6e73f8ca7 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -2,9 +2,30 @@ "name": "@flopflip/types", "version": "14.0.2", "description": "Type definitions for flipflop", - "main": "dist/flopflip-types.cjs.js", - "module": "dist/flopflip-types.esm.js", - "types": "dist/flopflip-types.cjs.d.ts", + "sideEffects": false, + "type": "module", + "exports": { + ".": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "main": "./dist/index.js", + "typesVersions": { + "*": { + ".": [ + "dist/*.d.ts", + "dist/*.d.cts" + ] + } + }, + "scripts": { + "build": "rimraf dist && tsup", + "check-types": "tsc --noEmit", + "test": "exit 0", + "test:watch": "exit 0", + "dev": "tsup --watch --clean=false" + }, "files": [ "readme.md", "dist/**" @@ -33,6 +54,7 @@ }, "devDependencies": { "@types/react": "18.3.18", + "tsup": "8.3.6", "typescript": "5.7.3" }, "peerDependencies": { diff --git a/packages/types/tsup.config.js b/packages/types/tsup.config.js new file mode 100644 index 000000000..438139470 --- /dev/null +++ b/packages/types/tsup.config.js @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['esm', 'cjs'], + splitting: true, + sourcemap: true, + minify: false, + clean: false, + skipNodeModulesBundle: true, + dts: true, + external: ['node_modules'], +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d4008954..c4012dac8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -98,9 +98,6 @@ importers: '@manypkg/cli': specifier: 0.23.0 version: 0.23.0 - '@preconstruct/cli': - specifier: 2.8.10 - version: 2.8.10 '@testing-library/jest-dom': specifier: 6.6.3 version: 6.6.3 @@ -170,6 +167,9 @@ importers: tslib: specifier: 2.8.1 version: 2.8.1 + turbo: + specifier: 2.4.1 + version: 2.4.1 typescript: specifier: 5.7.3 version: 5.7.3 @@ -198,6 +198,9 @@ importers: specifier: 4.17.21 version: 4.17.21 devDependencies: + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) typescript: specifier: 5.7.3 version: 5.7.3 @@ -213,6 +216,10 @@ importers: '@flopflip/types': specifier: workspace:* version: link:../types + devDependencies: + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/combine-adapters: dependencies: @@ -241,6 +248,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/cypress-plugin: dependencies: @@ -251,6 +261,9 @@ importers: cypress: specifier: 13.6.4 version: 13.6.4(patch_hash=bnmjxin5yu4gimwzcgzqydy6di) + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/graphql-adapter: dependencies: @@ -285,6 +298,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/http-adapter: dependencies: @@ -319,6 +335,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/launchdarkly-adapter: dependencies: @@ -362,6 +381,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/localstorage-adapter: dependencies: @@ -390,12 +412,19 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/localstorage-cache: dependencies: '@flopflip/types': specifier: workspace:* version: link:../types + devDependencies: + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/memory-adapter: dependencies: @@ -418,6 +447,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/react: dependencies: @@ -461,6 +493,9 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/react-broadcast: dependencies: @@ -501,6 +536,9 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/react-redux: dependencies: @@ -544,12 +582,19 @@ importers: redux: specifier: 4.2.1 version: 4.2.1 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/sessionstorage-cache: dependencies: '@flopflip/types': specifier: workspace:* version: link:../types + devDependencies: + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/splitio-adapter: dependencies: @@ -575,6 +620,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) packages/test-utils: dependencies: @@ -606,6 +654,9 @@ importers: '@types/react': specifier: 18.3.18 version: 18.3.18 + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) typescript: specifier: 5.7.3 version: 5.7.3 @@ -1694,47 +1745,6 @@ packages: '@polka/url@1.0.0-next.28': resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==} - '@preconstruct/cli@2.8.10': - resolution: {integrity: sha512-SBT1ueuBwGXtYQz6qPqfSE9t7qLC6sHtKeArWRr6/PA6H+xrXd76Ft96UjqbwHqayRoCZDgBTIXquoHtSQLPlw==} - hasBin: true - - '@preconstruct/hook@0.4.0': - resolution: {integrity: sha512-a7mrlPTM3tAFJyz43qb4pPVpUx8j8TzZBFsNFqcKcE/sEakNXRlQAuCT4RGZRf9dQiiUnBahzSIWawU4rENl+Q==} - - '@rollup/plugin-alias@3.1.9': - resolution: {integrity: sha512-QI5fsEvm9bDzt32k39wpOwZhVzRcL5ydcffUHMyLVaVaLeC70I8TJZ17F1z1eMoLu4E/UOcH9BWVkKpIKdrfiw==} - engines: {node: '>=8.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0 - - '@rollup/plugin-commonjs@15.1.0': - resolution: {integrity: sha512-xCQqz4z/o0h2syQ7d9LskIMvBSH4PX5PjYdpSSvgS+pQik3WahkQVNWg3D8XJeYjZoVWnIUQYDghuEMRGrmQYQ==} - engines: {node: '>= 8.0.0'} - peerDependencies: - rollup: ^2.22.0 - - '@rollup/plugin-json@4.1.0': - resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==} - peerDependencies: - rollup: ^1.20.0 || ^2.0.0 - - '@rollup/plugin-node-resolve@11.2.1': - resolution: {integrity: sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==} - engines: {node: '>= 10.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0 - - '@rollup/plugin-replace@2.4.2': - resolution: {integrity: sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg==} - peerDependencies: - rollup: ^1.20.0 || ^2.0.0 - - '@rollup/pluginutils@3.1.0': - resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} - engines: {node: '>= 8.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0 - '@rollup/rollup-android-arm-eabi@4.34.0': resolution: {integrity: sha512-Eeao7ewDq79jVEsrtWIj5RNqB8p2knlm9fhR6uJ2gqP7UfbLrTrxevudVrEPDM7Wkpn/HpRC2QfazH7MXLz3vQ==} cpu: [arm] @@ -1898,9 +1908,6 @@ packages: '@types/conventional-commits-parser@5.0.1': resolution: {integrity: sha512-7uz5EHdzz2TqoMfV7ee61Egf5y6NkcO4FB/1iCCQnbeiI1F3xzv3vK5dBCXUCLQgGYS+mUeigK1iKQzvED+QnQ==} - '@types/estree@0.0.39': - resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} - '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} @@ -1951,9 +1958,6 @@ packages: '@types/react@18.3.18': resolution: {integrity: sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==} - '@types/resolve@1.17.1': - resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} - '@types/seedrandom@3.0.8': resolution: {integrity: sha512-TY1eezMU2zH2ozQoAFAQFOPpvP15g+ZgSfTZt31AUUH/Rxtnz3H+A/Sv1Snw2/amp//omibc+AEkTaA8KUeOLQ==} @@ -2083,6 +2087,9 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} + any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} + anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -2217,9 +2224,11 @@ packages: buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} - builtin-modules@3.3.0: - resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} - engines: {node: '>=6'} + bundle-require@5.1.0: + resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + peerDependencies: + esbuild: '>=0.18' cac@6.7.14: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} @@ -2283,6 +2292,10 @@ packages: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} + engines: {node: '>= 14.16.0'} + ci-info@3.9.0: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} @@ -2344,6 +2357,10 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + commander@4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + commander@6.2.1: resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==} engines: {node: '>= 6'} @@ -2352,9 +2369,6 @@ packages: resolution: {integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==} engines: {node: '>=4.0.0'} - commondir@1.0.1: - resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} - compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} @@ -2364,6 +2378,10 @@ packages: config-chain@1.1.13: resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} + consola@3.4.0: + resolution: {integrity: sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==} + engines: {node: ^14.18.0 || >=16.10.0} + conventional-changelog-angular@7.0.0: resolution: {integrity: sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==} engines: {node: '>=16'} @@ -2450,9 +2468,6 @@ packages: dataloader@1.4.0: resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} - dataloader@2.2.3: - resolution: {integrity: sha512-y2krtASINtPFS1rSDjacrFgn1dcUuoREVabwlOGOe4SdxenREqwjwjElAdwvbGM7kgZz9a3KVicWR7vcz8rnzA==} - dayjs@1.11.13: resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==} @@ -2488,10 +2503,6 @@ packages: resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} engines: {node: '>=4.0.0'} - deepmerge@4.3.1: - resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} - engines: {node: '>=0.10.0'} - define-data-property@1.1.4: resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} engines: {node: '>= 0.4'} @@ -2627,12 +2638,6 @@ packages: engines: {node: '>=4'} hasBin: true - estree-walker@1.0.1: - resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} - - estree-walker@2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} - estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} @@ -2814,13 +2819,6 @@ packages: engines: {node: '>=16'} hasBin: true - glob-base@0.3.0: - resolution: {integrity: sha512-ab1S1g1EbO7YzauaJLkgLp7DZVAqj9M/dvKlTt8DkXA2tiOIcSMrlVI2J1RZyB5iJVccEscjGn+kpOG9788MHA==} - engines: {node: '>=0.10.0'} - - glob-parent@2.0.0: - resolution: {integrity: sha512-JDYOvfxio/t42HKdxkAYaCiBN7oYiuxykOxKxdaUW5Qn0zaYN3gRQWolrwdnf0shM9/EP0ebuuTmyoXNr1cC5w==} - glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -2932,9 +2930,6 @@ packages: ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - ignore-walk@3.0.4: - resolution: {integrity: sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==} - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -2991,14 +2986,6 @@ packages: resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} engines: {node: '>= 0.4'} - is-dotfile@1.0.3: - resolution: {integrity: sha512-9YclgOGtN/f8zx0Pr4FQYMdibBiTaH3sn52vjYip4ZSf6C4/6RfTEZ+MR4GvKhCxdPh21Bg42/WL55f6KSnKpg==} - engines: {node: '>=0.10.0'} - - is-extglob@1.0.0: - resolution: {integrity: sha512-7Q+VbVafe6x2T+Tu6NcOf6sRklazEPmBoB3IWk3WdGZM2iGUwU/Oe3Wtq5lSEkDTTlpp8yx+5t4pzO/i9Ty1ww==} - engines: {node: '>=0.10.0'} - is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -3015,10 +3002,6 @@ packages: resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==} engines: {node: '>=18'} - is-glob@2.0.1: - resolution: {integrity: sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg==} - engines: {node: '>=0.10.0'} - is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -3027,9 +3010,6 @@ packages: resolution: {integrity: sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==} engines: {node: '>=10'} - is-module@1.0.0: - resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} - is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} @@ -3045,9 +3025,6 @@ packages: is-potential-custom-element-name@1.0.1: resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} - is-reference@1.2.1: - resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} - is-stream@2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} @@ -3124,10 +3101,6 @@ packages: resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - jest-worker@26.6.2: - resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} - engines: {node: '>= 10.13.0'} - jiti@2.4.2: resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==} hasBin: true @@ -3135,6 +3108,10 @@ packages: jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} + joycon@3.1.1: + resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} + engines: {node: '>=10'} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -3238,6 +3215,10 @@ packages: resolution: {integrity: sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==} engines: {node: '>=18.0.0'} + load-tsconfig@0.2.5: + resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -3283,6 +3264,9 @@ packages: lodash.snakecase@4.1.1: resolution: {integrity: sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==} + lodash.sortby@4.7.0: + resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} + lodash.startcase@4.4.0: resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} @@ -3331,9 +3315,6 @@ packages: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true - magic-string@0.25.9: - resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} - magic-string@0.30.17: resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} @@ -3433,6 +3414,9 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + mz@2.7.0: + resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + nanoid@3.3.8: resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -3454,17 +3438,6 @@ packages: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} - npm-bundled@1.1.2: - resolution: {integrity: sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==} - - npm-normalize-package-bin@1.0.1: - resolution: {integrity: sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==} - - npm-packlist@2.2.2: - resolution: {integrity: sha512-Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==} - engines: {node: '>=10'} - hasBin: true - npm-run-path@4.0.1: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} @@ -3476,6 +3449,10 @@ packages: nwsapi@2.2.16: resolution: {integrity: sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ==} + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + object-filter@1.0.2: resolution: {integrity: sha512-NahvP2vZcy1ZiiYah30CEPw0FpDcSkSePJBMpzl5EQgCmISijiGuJm3SPYp7U+Lf2TljyaIw3E5EgkEx/TNEVA==} @@ -3571,10 +3548,6 @@ packages: engines: {node: '>= 0.10'} hasBin: true - parse-glob@3.0.4: - resolution: {integrity: sha512-FC5TeK0AwXzq3tUBFtH74naWkPQCEWs4K+xMxWZBlKDWu0bVHXGZa+KKqxKidd7xwhdZ19ZNuF2uO1M/r196HA==} - engines: {node: '>=0.10.0'} - parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} @@ -3663,6 +3636,24 @@ packages: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'} + postcss-load-config@6.0.1: + resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} + engines: {node: '>= 18'} + peerDependencies: + jiti: '>=1.21.0' + postcss: '>=8.0.9' + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + jiti: + optional: true + postcss: + optional: true + tsx: + optional: true + yaml: + optional: true + postcss@8.5.1: resolution: {integrity: sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==} engines: {node: ^10 || ^12 || >=14} @@ -3708,10 +3699,6 @@ packages: queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - quick-lru@5.1.1: - resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==} - engines: {node: '>=10'} - raf@3.4.1: resolution: {integrity: sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==} @@ -3770,6 +3757,10 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} + readdirp@4.1.1: + resolution: {integrity: sha512-h80JrZu/MHUZCyHu5ciuoI0+WxsCxzxJTILn6Fs8rxSnFPh+UVHYfeIxK1nVGugMqkfC4vJcBOYbkfkwYK0+gw==} + engines: {node: '>= 14.18.0'} + redent@3.0.0: resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} engines: {node: '>=8'} @@ -3870,11 +3861,6 @@ packages: engines: {node: 20 || >=22} hasBin: true - rollup@2.79.2: - resolution: {integrity: sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==} - engines: {node: '>=10.0.0'} - hasBin: true - rollup@4.34.0: resolution: {integrity: sha512-+4C/cgJ9w6sudisA0nZz0+O7lTP9a3CzNLsoDwaRumM8QHwghUsu6tqHXiTmNUp/rqNiM14++7dkzHDyCRs0Jg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -3994,9 +3980,9 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - sourcemap-codec@1.4.8: - resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} - deprecated: Please use @jridgewell/sourcemap-codec instead + source-map@0.8.0-beta.0: + resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} + engines: {node: '>= 8'} spawndamnit@3.0.1: resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==} @@ -4070,6 +4056,11 @@ packages: resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} engines: {node: '>=0.10.0'} + sucrase@3.35.0: + resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -4102,6 +4093,13 @@ packages: resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} engines: {node: '>=8'} + thenify-all@1.6.0: + resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} + engines: {node: '>=0.8'} + + thenify@3.3.1: + resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + throttleit@1.0.1: resolution: {integrity: sha512-vDZpf9Chs9mAdfY046mcPt8fg5QSZr37hEH4TXYBnDF+izxgrbRGUAAaBvIk/fJm9aOFCGFd1EsNg5AZCbnQCQ==} @@ -4163,14 +4161,24 @@ packages: tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + tr46@1.0.1: + resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} + tr46@5.0.0: resolution: {integrity: sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==} engines: {node: '>=18'} + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + ts-deepmerge@7.0.2: resolution: {integrity: sha512-akcpDTPuez4xzULo5NwuoKwYRtjQJ9eoNfBACiBMaXwNAx7B1PKfe5wqUFJuW5uKzQ68YjDFwPaWHDG1KnFGsA==} engines: {node: '>=14.13.1'} + ts-interface-checker@0.1.13: + resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + ts-node@10.9.2: resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true @@ -4188,9 +4196,62 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tsup@8.3.6: + resolution: {integrity: sha512-XkVtlDV/58S9Ye0JxUUTcrQk4S+EqlOHKzg6Roa62rdjL1nGWNUstG0xgI4vanHdfIpjP448J8vlN0oK6XOJ5g==} + engines: {node: '>=18'} + hasBin: true + peerDependencies: + '@microsoft/api-extractor': ^7.36.0 + '@swc/core': ^1 + postcss: ^8.4.12 + typescript: '>=4.5.0' + peerDependenciesMeta: + '@microsoft/api-extractor': + optional: true + '@swc/core': + optional: true + postcss: + optional: true + typescript: + optional: true + tunnel-agent@0.6.0: resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} + turbo-darwin-64@2.4.1: + resolution: {integrity: sha512-oos3Gz5N6ol2/7+ys0wPENhl7ZzeVKIumn2BR7X2oE5dEPxNPDMOpKBwreU9ToCxM94e+uFTzKgjcUJpBqpTHA==} + cpu: [x64] + os: [darwin] + + turbo-darwin-arm64@2.4.1: + resolution: {integrity: sha512-NoIQsSSvCJDTShgX+v+doSP/g0kAhHhq5p2fpsEAlougs2wcQvwv/LndeqojzkHbxB39lOQmqBYHJcki46Q3oQ==} + cpu: [arm64] + os: [darwin] + + turbo-linux-64@2.4.1: + resolution: {integrity: sha512-iXIeG8YhluaJF/5KQEudRf8ECBWND8X0yxXDrFIq2wmLLCg4A7gSSzVcBq30rYYeyyU4xMj/sm3HbsAaao3jjg==} + cpu: [x64] + os: [linux] + + turbo-linux-arm64@2.4.1: + resolution: {integrity: sha512-jd5apBV7lBGn3CnkQN/hEMbwazNgZcrwLt6DIkWy/TSi5xfSQEqcR3k9HxviQ7hKMcr1Q1hN6FHWm8Vw90Ej4A==} + cpu: [arm64] + os: [linux] + + turbo-windows-64@2.4.1: + resolution: {integrity: sha512-4RYRAijohyQ7uetZY4SSikSgGccq+7tmnljdm/XezpK9t0+3gldKA2vHF0++yLZeZr+CFgqmBeGSFi7B+vhc2g==} + cpu: [x64] + os: [win32] + + turbo-windows-arm64@2.4.1: + resolution: {integrity: sha512-4lZB0+AxWB01Adx5xHZhO746FgaHR0T3qzEDF2nf/nx8LAUtN3iwaZQgAsTsblaAKjiM7lxWDI0s/Q3fektsPg==} + cpu: [arm64] + os: [win32] + + turbo@2.4.1: + resolution: {integrity: sha512-XIIHXAhvD3sv34WLaN/969WTHCHYmm3zf0XQ+CrEP1A7ffIQG50cwNcp7Gh96CaGyjEXMh9odoHyggoZQ3Prvw==} + hasBin: true + tweetnacl@0.14.5: resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==} @@ -4259,9 +4320,6 @@ packages: v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - v8-compile-cache@2.4.0: - resolution: {integrity: sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw==} - validate-npm-package-name@5.0.1: resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -4355,6 +4413,9 @@ packages: webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + webidl-conversions@4.0.2: + resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} + webidl-conversions@7.0.0: resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} engines: {node: '>=12'} @@ -4374,6 +4435,9 @@ packages: whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + whatwg-url@7.1.0: + resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -4460,9 +4524,6 @@ packages: resolution: {integrity: sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==} engines: {node: '>=12.20'} - zod@3.24.1: - resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==} - snapshots: '@adobe/css-tools@4.4.1': {} @@ -5729,6 +5790,7 @@ snapshots: dependencies: '@jridgewell/gen-mapping': 0.3.8 '@jridgewell/trace-mapping': 0.3.25 + optional: true '@jridgewell/sourcemap-codec@1.5.0': {} @@ -5819,100 +5881,6 @@ snapshots: '@polka/url@1.0.0-next.28': {} - '@preconstruct/cli@2.8.10': - dependencies: - '@babel/code-frame': 7.26.2 - '@babel/core': 7.26.7 - '@babel/helper-module-imports': 7.25.9 - '@babel/runtime': 7.26.7 - '@preconstruct/hook': 0.4.0 - '@rollup/plugin-alias': 3.1.9(rollup@2.79.2) - '@rollup/plugin-commonjs': 15.1.0(rollup@2.79.2) - '@rollup/plugin-json': 4.1.0(rollup@2.79.2) - '@rollup/plugin-node-resolve': 11.2.1(rollup@2.79.2) - '@rollup/plugin-replace': 2.4.2(rollup@2.79.2) - builtin-modules: 3.3.0 - chalk: 4.1.2 - ci-info: 3.9.0 - dataloader: 2.2.3 - detect-indent: 6.1.0 - enquirer: 2.4.1 - estree-walker: 2.0.2 - fast-deep-equal: 2.0.1 - fast-glob: 3.3.3 - fs-extra: 9.1.0 - is-reference: 1.2.1 - jest-worker: 26.6.2 - magic-string: 0.30.17 - ms: 2.1.3 - normalize-path: 3.0.0 - npm-packlist: 2.2.2 - p-limit: 3.1.0 - parse-glob: 3.0.4 - parse-json: 5.2.0 - quick-lru: 5.1.1 - resolve-from: 5.0.0 - rollup: 2.79.2 - semver: 7.7.0 - terser: 5.37.0 - v8-compile-cache: 2.4.0 - zod: 3.24.1 - transitivePeerDependencies: - - supports-color - - '@preconstruct/hook@0.4.0': - dependencies: - '@babel/core': 7.26.7 - '@babel/plugin-transform-modules-commonjs': 7.26.3(@babel/core@7.26.7) - pirates: 4.0.6 - source-map-support: 0.5.21 - transitivePeerDependencies: - - supports-color - - '@rollup/plugin-alias@3.1.9(rollup@2.79.2)': - dependencies: - rollup: 2.79.2 - slash: 3.0.0 - - '@rollup/plugin-commonjs@15.1.0(rollup@2.79.2)': - dependencies: - '@rollup/pluginutils': 3.1.0(rollup@2.79.2) - commondir: 1.0.1 - estree-walker: 2.0.2 - glob: 7.2.3 - is-reference: 1.2.1 - magic-string: 0.25.9 - resolve: 1.22.10 - rollup: 2.79.2 - - '@rollup/plugin-json@4.1.0(rollup@2.79.2)': - dependencies: - '@rollup/pluginutils': 3.1.0(rollup@2.79.2) - rollup: 2.79.2 - - '@rollup/plugin-node-resolve@11.2.1(rollup@2.79.2)': - dependencies: - '@rollup/pluginutils': 3.1.0(rollup@2.79.2) - '@types/resolve': 1.17.1 - builtin-modules: 3.3.0 - deepmerge: 4.3.1 - is-module: 1.0.0 - resolve: 1.22.10 - rollup: 2.79.2 - - '@rollup/plugin-replace@2.4.2(rollup@2.79.2)': - dependencies: - '@rollup/pluginutils': 3.1.0(rollup@2.79.2) - magic-string: 0.25.9 - rollup: 2.79.2 - - '@rollup/pluginutils@3.1.0(rollup@2.79.2)': - dependencies: - '@types/estree': 0.0.39 - estree-walker: 1.0.1 - picomatch: 2.3.1 - rollup: 2.79.2 - '@rollup/rollup-android-arm-eabi@4.34.0': optional: true @@ -6059,8 +6027,6 @@ snapshots: dependencies: '@types/node': 22.13.1 - '@types/estree@0.0.39': {} - '@types/estree@1.0.6': {} '@types/google.analytics@0.0.40': {} @@ -6119,10 +6085,6 @@ snapshots: '@types/prop-types': 15.7.14 csstype: 3.1.3 - '@types/resolve@1.17.1': - dependencies: - '@types/node': 22.13.1 - '@types/seedrandom@3.0.8': {} '@types/sinonjs__fake-timers@8.1.1': {} @@ -6271,6 +6233,8 @@ snapshots: ansi-styles@6.2.1: {} + any-promise@1.3.0: {} + anymatch@3.1.3: dependencies: normalize-path: 3.0.0 @@ -6401,14 +6365,18 @@ snapshots: buffer-crc32@0.2.13: {} - buffer-from@1.1.2: {} + buffer-from@1.1.2: + optional: true buffer@5.7.1: dependencies: base64-js: 1.5.1 ieee754: 1.2.1 - builtin-modules@3.3.0: {} + bundle-require@5.1.0(esbuild@0.24.2): + dependencies: + esbuild: 0.24.2 + load-tsconfig: 0.2.5 cac@6.7.14: {} @@ -6478,6 +6446,10 @@ snapshots: fsevents: 2.3.3 optional: true + chokidar@4.0.3: + dependencies: + readdirp: 4.1.1 + ci-info@3.9.0: {} clean-stack@2.2.0: {} @@ -6530,14 +6502,15 @@ snapshots: commander@13.1.0: {} - commander@2.20.3: {} + commander@2.20.3: + optional: true + + commander@4.1.1: {} commander@6.2.1: {} common-tags@1.8.2: {} - commondir@1.0.1: {} - compare-func@2.0.0: dependencies: array-ify: 1.0.0 @@ -6550,6 +6523,8 @@ snapshots: ini: 1.3.8 proto-list: 1.2.4 + consola@3.4.0: {} + conventional-changelog-angular@7.0.0: dependencies: compare-func: 2.0.0 @@ -6670,8 +6645,6 @@ snapshots: dataloader@1.4.0: {} - dataloader@2.2.3: {} - dayjs@1.11.13: {} debounce-fn@4.0.0: @@ -6696,8 +6669,6 @@ snapshots: deep-extend@0.6.0: {} - deepmerge@4.3.1: {} - define-data-property@1.1.4: dependencies: es-define-property: 1.0.1 @@ -6824,10 +6795,6 @@ snapshots: esprima@4.0.1: {} - estree-walker@1.0.1: {} - - estree-walker@2.0.2: {} - estree-walker@3.0.3: dependencies: '@types/estree': 1.0.6 @@ -7037,15 +7004,6 @@ snapshots: meow: 12.1.1 split2: 4.2.0 - glob-base@0.3.0: - dependencies: - glob-parent: 2.0.0 - is-glob: 2.0.1 - - glob-parent@2.0.0: - dependencies: - is-glob: 2.0.1 - glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -7167,10 +7125,6 @@ snapshots: ieee754@1.2.1: {} - ignore-walk@3.0.4: - dependencies: - minimatch: 3.1.2 - ignore@5.3.2: {} import-fresh@3.3.1: @@ -7228,10 +7182,6 @@ snapshots: dependencies: hasown: 2.0.2 - is-dotfile@1.0.3: {} - - is-extglob@1.0.0: {} - is-extglob@2.1.1: {} is-fullwidth-code-point@3.0.0: {} @@ -7242,10 +7192,6 @@ snapshots: dependencies: get-east-asian-width: 1.3.0 - is-glob@2.0.1: - dependencies: - is-extglob: 1.0.0 - is-glob@4.0.3: dependencies: is-extglob: 2.1.1 @@ -7255,8 +7201,6 @@ snapshots: global-dirs: 3.0.1 is-path-inside: 3.0.3 - is-module@1.0.0: {} - is-number@7.0.0: {} is-obj@2.0.0: {} @@ -7265,10 +7209,6 @@ snapshots: is-potential-custom-element-name@1.0.1: {} - is-reference@1.2.1: - dependencies: - '@types/estree': 1.0.6 - is-stream@2.0.1: {} is-stream@3.0.0: {} @@ -7359,16 +7299,12 @@ snapshots: graceful-fs: 4.2.11 picomatch: 2.3.1 - jest-worker@26.6.2: - dependencies: - '@types/node': 22.13.1 - merge-stream: 2.0.0 - supports-color: 7.2.0 - jiti@2.4.2: {} jju@1.4.0: {} + joycon@3.1.1: {} + js-tokens@4.0.0: {} js-yaml@3.14.1: @@ -7499,6 +7435,8 @@ snapshots: rfdc: 1.4.1 wrap-ansi: 9.0.0 + load-tsconfig@0.2.5: {} + locate-path@5.0.0: dependencies: p-locate: 4.1.0 @@ -7533,6 +7471,8 @@ snapshots: lodash.snakecase@4.1.1: {} + lodash.sortby@4.7.0: {} + lodash.startcase@4.4.0: {} lodash.uniq@4.5.0: {} @@ -7579,10 +7519,6 @@ snapshots: lz-string@1.5.0: {} - magic-string@0.25.9: - dependencies: - sourcemap-codec: 1.4.8 - magic-string@0.30.17: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -7659,6 +7595,12 @@ snapshots: ms@2.1.3: {} + mz@2.7.0: + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + nanoid@3.3.8: {} node-fetch@2.7.0: @@ -7669,19 +7611,6 @@ snapshots: normalize-path@3.0.0: {} - npm-bundled@1.1.2: - dependencies: - npm-normalize-package-bin: 1.0.1 - - npm-normalize-package-bin@1.0.1: {} - - npm-packlist@2.2.2: - dependencies: - glob: 7.2.3 - ignore-walk: 3.0.4 - npm-bundled: 1.1.2 - npm-normalize-package-bin: 1.0.1 - npm-run-path@4.0.1: dependencies: path-key: 3.1.1 @@ -7692,6 +7621,8 @@ snapshots: nwsapi@2.2.16: {} + object-assign@4.1.1: {} + object-filter@1.0.2: {} object-inspect@1.13.3: {} @@ -7773,13 +7704,6 @@ snapshots: parse-github-url@1.0.3: {} - parse-glob@3.0.4: - dependencies: - glob-base: 0.3.0 - is-dotfile: 1.0.3 - is-extglob: 1.0.0 - is-glob: 2.0.1 - parse-json@5.2.0: dependencies: '@babel/code-frame': 7.26.2 @@ -7839,6 +7763,14 @@ snapshots: pirates@4.0.6: {} + postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.1)(yaml@2.7.0): + dependencies: + lilconfig: 3.1.3 + optionalDependencies: + jiti: 2.4.2 + postcss: 8.5.1 + yaml: 2.7.0 + postcss@8.5.1: dependencies: nanoid: 3.3.8 @@ -7880,8 +7812,6 @@ snapshots: queue-microtask@1.2.3: {} - quick-lru@5.1.1: {} - raf@3.4.1: dependencies: performance-now: 2.1.0 @@ -7938,6 +7868,8 @@ snapshots: picomatch: 2.3.1 optional: true + readdirp@4.1.1: {} + redent@3.0.0: dependencies: indent-string: 4.0.0 @@ -8031,10 +7963,6 @@ snapshots: glob: 11.0.1 package-json-from-dist: 1.0.1 - rollup@2.79.2: - optionalDependencies: - fsevents: 2.3.3 - rollup@4.34.0: dependencies: '@types/estree': 1.0.6 @@ -8172,10 +8100,14 @@ snapshots: dependencies: buffer-from: 1.1.2 source-map: 0.6.1 + optional: true - source-map@0.6.1: {} + source-map@0.6.1: + optional: true - sourcemap-codec@1.4.8: {} + source-map@0.8.0-beta.0: + dependencies: + whatwg-url: 7.1.0 spawndamnit@3.0.1: dependencies: @@ -8248,6 +8180,16 @@ snapshots: strip-json-comments@2.0.1: {} + sucrase@3.35.0: + dependencies: + '@jridgewell/gen-mapping': 0.3.8 + commander: 4.1.1 + glob: 10.4.5 + lines-and-columns: 1.2.4 + mz: 2.7.0 + pirates: 4.0.6 + ts-interface-checker: 0.1.13 + supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -8268,6 +8210,7 @@ snapshots: acorn: 8.14.0 commander: 2.20.3 source-map-support: 0.5.21 + optional: true test-exclude@7.0.1: dependencies: @@ -8277,6 +8220,14 @@ snapshots: text-extensions@2.4.0: {} + thenify-all@1.6.0: + dependencies: + thenify: 3.3.1 + + thenify@3.3.1: + dependencies: + any-promise: 1.3.0 + throttleit@1.0.1: {} through@2.3.8: {} @@ -8322,12 +8273,20 @@ snapshots: tr46@0.0.3: {} + tr46@1.0.1: + dependencies: + punycode: 2.3.1 + tr46@5.0.0: dependencies: punycode: 2.3.1 + tree-kill@1.2.2: {} + ts-deepmerge@7.0.2: {} + ts-interface-checker@0.1.13: {} + ts-node@10.9.2(@types/node@22.13.1)(typescript@5.7.3): dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -8348,10 +8307,64 @@ snapshots: tslib@2.8.1: {} + tsup@8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0): + dependencies: + bundle-require: 5.1.0(esbuild@0.24.2) + cac: 6.7.14 + chokidar: 4.0.3 + consola: 3.4.0 + debug: 4.4.0(supports-color@8.1.1) + esbuild: 0.24.2 + joycon: 3.1.1 + picocolors: 1.1.1 + postcss-load-config: 6.0.1(jiti@2.4.2)(postcss@8.5.1)(yaml@2.7.0) + resolve-from: 5.0.0 + rollup: 4.34.0 + source-map: 0.8.0-beta.0 + sucrase: 3.35.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.10 + tree-kill: 1.2.2 + optionalDependencies: + postcss: 8.5.1 + typescript: 5.7.3 + transitivePeerDependencies: + - jiti + - supports-color + - tsx + - yaml + tunnel-agent@0.6.0: dependencies: safe-buffer: 5.2.1 + turbo-darwin-64@2.4.1: + optional: true + + turbo-darwin-arm64@2.4.1: + optional: true + + turbo-linux-64@2.4.1: + optional: true + + turbo-linux-arm64@2.4.1: + optional: true + + turbo-windows-64@2.4.1: + optional: true + + turbo-windows-arm64@2.4.1: + optional: true + + turbo@2.4.1: + optionalDependencies: + turbo-darwin-64: 2.4.1 + turbo-darwin-arm64: 2.4.1 + turbo-linux-64: 2.4.1 + turbo-linux-arm64: 2.4.1 + turbo-windows-64: 2.4.1 + turbo-windows-arm64: 2.4.1 + tweetnacl@0.14.5: {} type-fest@0.21.3: {} @@ -8395,8 +8408,6 @@ snapshots: v8-compile-cache-lib@3.0.1: {} - v8-compile-cache@2.4.0: {} - validate-npm-package-name@5.0.1: {} verror@1.10.0: @@ -8488,6 +8499,8 @@ snapshots: webidl-conversions@3.0.1: {} + webidl-conversions@4.0.2: {} + webidl-conversions@7.0.0: {} whatwg-encoding@3.1.1: @@ -8506,6 +8519,12 @@ snapshots: tr46: 0.0.3 webidl-conversions: 3.0.1 + whatwg-url@7.1.0: + dependencies: + lodash.sortby: 4.7.0 + tr46: 1.0.1 + webidl-conversions: 4.0.2 + which@2.0.2: dependencies: isexe: 2.0.0 @@ -8579,5 +8598,3 @@ snapshots: yocto-queue@0.1.0: {} yocto-queue@1.1.1: {} - - zod@3.24.1: {} diff --git a/tsconfig.json b/tsconfig.json index d57eda29f..10649a229 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,6 +26,10 @@ "target": "ES2015", "allowJs": false }, - "exclude": ["packages/cypress-plugin"], + "exclude": [ + "packages/cypress-plugin", + "packages/*/vitest.config.ts", + "packages/*/dist/*" + ], "typeRoots": ["@types", "node_modules/@types"] } diff --git a/turbo.json b/turbo.json new file mode 100644 index 000000000..955efd177 --- /dev/null +++ b/turbo.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://turbo.build/schema.json", + "tasks": { + "build": { + "dependsOn": ["^build"], + "outputs": ["dist/**"] + }, + "check-types": { + "dependsOn": ["^build"] + }, + "test": { + "dependsOn": ["^build"] + } + } +} diff --git a/vitest.config.ts b/vitest.shared.ts similarity index 71% rename from vitest.config.ts rename to vitest.shared.ts index e485d7bba..76f0c93d8 100644 --- a/vitest.config.ts +++ b/vitest.shared.ts @@ -1,3 +1,4 @@ +import path from 'node:path'; import react from '@vitejs/plugin-react'; import { defineConfig } from 'vitest/config'; @@ -9,7 +10,6 @@ export default defineConfig({ ], test: { globals: true, - environment: 'jsdom', - setupFiles: './setup-tests.ts', + setupFiles: [path.resolve(__dirname, 'setup-tests.ts')], }, }); diff --git a/vitrst.workspace.ts b/vitrst.workspace.ts new file mode 100644 index 000000000..e47e54124 --- /dev/null +++ b/vitrst.workspace.ts @@ -0,0 +1 @@ +export default ['./packages/*']; From 926ec5595a9cf8ac8a2189396a8f95406a044b39 Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 20:49:29 +0100 Subject: [PATCH 2/9] fix: ci --- .github/actions/ci/action.yml | 3 --- .github/workflows/{test.yml => quality.yml} | 17 +++++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) rename .github/workflows/{test.yml => quality.yml} (80%) diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index af0d7f60b..f866412d1 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -6,9 +6,6 @@ runs: using: composite steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install pnpm uses: pnpm/action-setup@v4.1.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/quality.yml similarity index 80% rename from .github/workflows/test.yml rename to .github/workflows/quality.yml index e4904de5f..baeb75725 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/quality.yml @@ -1,4 +1,4 @@ -name: Test and Build +name: Quality on: push: @@ -12,7 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Install dependencies + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup uses: ./.github/actions/ci - name: Lint @@ -23,7 +26,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Install dependencies + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup uses: ./.github/actions/ci - name: TypeScript @@ -34,7 +40,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Install dependencies + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup uses: ./.github/actions/ci - name: Test (with coverage) From 9f9f582add7eed27f712e304ca37a1459ea16e90 Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 21:01:26 +0100 Subject: [PATCH 3/9] fix: typing --- package.json | 28 +++++++++---------- .../adapter-utilities/src/normalize-flags.ts | 4 +-- packages/adapter-utilities/tsconfig.json | 3 +- packages/cache/tsconfig.json | 3 +- packages/combine-adapters/tsconfig.json | 3 +- packages/graphql-adapter/tsconfig.json | 3 +- packages/http-adapter/tsconfig.json | 3 +- packages/launchdarkly-adapter/tsconfig.json | 3 +- packages/localstorage-adapter/tsconfig.json | 3 +- packages/localstorage-cache/tsconfig.json | 3 +- packages/memory-adapter/tsconfig.json | 3 +- packages/react-broadcast/tsconfig.json | 3 +- packages/react-redux/tsconfig.json | 3 +- packages/react/tsconfig.json | 3 +- packages/sessionstorage-cache/tsconfig.json | 3 +- packages/splitio-adapter/tsconfig.json | 3 +- packages/test-utils/tsconfig.json | 3 +- packages/types/tsconfig.json | 3 +- tsconfig.json | 6 +--- 19 files changed, 49 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index dad54ad63..568a7e132 100644 --- a/package.json +++ b/package.json @@ -3,25 +3,25 @@ "name": "flopflip", "description": "Monorepository for flipflop and its projects e.g. react-redux, react and the wrapper", "scripts": { - "preinstall": "npx only-allow pnpm", - "clean": "manypkg exec rm -rf dist && manypkg exec rm -rf .turbo && rm -rf .turbo", - "postinstall": "husky install && manypkg check && check-node-version --package --print", - "reinstall": "manypkg exec rm -rf node_modules && rm -rf node_modules pnpm-lock.yaml && pnpm install", "auth": "npm_config_registry=https://registry.npmjs.org npm whoami", - "lint": "biome lint", - "lint:ci": "biome ci", - "format": "biome format --write", - "fix:biome": "biome lint --write", "biome:check": "biome check --write", - "test:coverage": "pnpm test -- --coverage", - "check-types": "turbo check-types", - "test": "turbo test", - "test:report": "vitest --reporter=junit --outputFile=junit.xml", "build": "turbo build", - "changeset": "changeset", "changeset:version-and-format": "changeset version && pnpm format && pnpm install --no-frozen-lockfile", + "changeset": "changeset", + "check-types": "turbo check-types", + "clean": "manypkg exec rm -rf dist && manypkg exec rm -rf .turbo && rm -rf .turbo", + "fix:biome": "biome lint --write", + "format": "biome format --write", + "lint:ci": "biome ci", + "lint": "biome lint", + "postinstall": "husky install && manypkg check && check-node-version --package --print", + "postpublish": "pinst --enable", + "preinstall": "npx only-allow pnpm", "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable" + "reinstall": "manypkg exec rm -rf node_modules && rm -rf node_modules pnpm-lock.yaml && pnpm install", + "test:coverage": "vitest run --coverage", + "test:report": "vitest run --reporter=junit --outputFile=junit.xml", + "test": "turbo test" }, "author": "Tobias Deekens ", "engines": { diff --git a/packages/adapter-utilities/src/normalize-flags.ts b/packages/adapter-utilities/src/normalize-flags.ts index 1e0a69ee4..98ad62383 100644 --- a/packages/adapter-utilities/src/normalize-flags.ts +++ b/packages/adapter-utilities/src/normalize-flags.ts @@ -4,11 +4,11 @@ import { normalizeFlag as defaultNormalizeFlag } from './normalize-flag'; const normalizeFlags = ( rawFlags: TFlags, - normalizeFlag: typeof defaultNormalizeFlag = defaultNormalizeFlag + normalizer: typeof defaultNormalizeFlag = defaultNormalizeFlag ): Record => Object.entries(rawFlags || {}).reduce( (normalizedFlags: TFlags, [flagName, flagValue]) => { - const [normalizedFlagName, normalizedFlagValue]: TFlag = normalizeFlag( + const [normalizedFlagName, normalizedFlagValue]: TFlag = normalizer( flagName, flagValue ); diff --git a/packages/adapter-utilities/tsconfig.json b/packages/adapter-utilities/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/adapter-utilities/tsconfig.json +++ b/packages/adapter-utilities/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/cache/tsconfig.json b/packages/cache/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/cache/tsconfig.json +++ b/packages/cache/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/combine-adapters/tsconfig.json b/packages/combine-adapters/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/combine-adapters/tsconfig.json +++ b/packages/combine-adapters/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/graphql-adapter/tsconfig.json b/packages/graphql-adapter/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/graphql-adapter/tsconfig.json +++ b/packages/graphql-adapter/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/http-adapter/tsconfig.json b/packages/http-adapter/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/http-adapter/tsconfig.json +++ b/packages/http-adapter/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/launchdarkly-adapter/tsconfig.json b/packages/launchdarkly-adapter/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/launchdarkly-adapter/tsconfig.json +++ b/packages/launchdarkly-adapter/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/localstorage-adapter/tsconfig.json b/packages/localstorage-adapter/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/localstorage-adapter/tsconfig.json +++ b/packages/localstorage-adapter/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/localstorage-cache/tsconfig.json b/packages/localstorage-cache/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/localstorage-cache/tsconfig.json +++ b/packages/localstorage-cache/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/memory-adapter/tsconfig.json b/packages/memory-adapter/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/memory-adapter/tsconfig.json +++ b/packages/memory-adapter/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react-broadcast/tsconfig.json b/packages/react-broadcast/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/react-broadcast/tsconfig.json +++ b/packages/react-broadcast/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react-redux/tsconfig.json b/packages/react-redux/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/react-redux/tsconfig.json +++ b/packages/react-redux/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/sessionstorage-cache/tsconfig.json b/packages/sessionstorage-cache/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/sessionstorage-cache/tsconfig.json +++ b/packages/sessionstorage-cache/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/splitio-adapter/tsconfig.json b/packages/splitio-adapter/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/splitio-adapter/tsconfig.json +++ b/packages/splitio-adapter/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/test-utils/tsconfig.json b/packages/test-utils/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/test-utils/tsconfig.json +++ b/packages/test-utils/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index 4082f16a5..2a92f3a42 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -1,3 +1,4 @@ { - "extends": "../../tsconfig.json" + "extends": "../../tsconfig.json", + "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/tsconfig.json b/tsconfig.json index 10649a229..d57eda29f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,10 +26,6 @@ "target": "ES2015", "allowJs": false }, - "exclude": [ - "packages/cypress-plugin", - "packages/*/vitest.config.ts", - "packages/*/dist/*" - ], + "exclude": ["packages/cypress-plugin"], "typeRoots": ["@types", "node_modules/@types"] } From 2c48b9a033d5af109b3163be77d0da158c27368c Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 21:08:46 +0100 Subject: [PATCH 4/9] refactor: shared tsconfig --- packages/adapter-utilities/package.json | 1 + packages/adapter-utilities/tsconfig.json | 2 +- packages/cache/package.json | 1 + packages/cache/tsconfig.json | 2 +- packages/combine-adapters/package.json | 1 + packages/combine-adapters/tsconfig.json | 2 +- packages/cypress-plugin/package.json | 1 + packages/cypress-plugin/tsconfig.json | 2 +- packages/graphql-adapter/package.json | 1 + packages/graphql-adapter/tsconfig.json | 2 +- packages/http-adapter/package.json | 1 + packages/http-adapter/tsconfig.json | 2 +- packages/launchdarkly-adapter/package.json | 1 + packages/launchdarkly-adapter/tsconfig.json | 2 +- packages/localstorage-adapter/package.json | 1 + packages/localstorage-adapter/tsconfig.json | 2 +- packages/localstorage-cache/package.json | 1 + packages/localstorage-cache/tsconfig.json | 2 +- packages/memory-adapter/package.json | 1 + packages/memory-adapter/tsconfig.json | 2 +- packages/react-broadcast/package.json | 1 + packages/react-broadcast/tsconfig.json | 2 +- packages/react-redux/package.json | 1 + packages/react-redux/tsconfig.json | 2 +- packages/react/package.json | 1 + packages/react/tsconfig.json | 2 +- packages/sessionstorage-cache/package.json | 1 + packages/sessionstorage-cache/tsconfig.json | 2 +- packages/splitio-adapter/package.json | 1 + packages/splitio-adapter/tsconfig.json | 2 +- packages/test-utils/package.json | 3 +- packages/test-utils/tsconfig.json | 2 +- packages/types/package.json | 1 + packages/types/tsconfig.json | 2 +- pnpm-lock.yaml | 57 +++++++++++++++++++++ pnpm-workspace.yaml | 3 +- tsconfig.json => tooling/tsconfig/base.json | 0 tooling/tsconfig/package.json | 9 ++++ 38 files changed, 103 insertions(+), 19 deletions(-) rename tsconfig.json => tooling/tsconfig/base.json (100%) create mode 100644 tooling/tsconfig/package.json diff --git a/packages/adapter-utilities/package.json b/packages/adapter-utilities/package.json index 5dbef0bb0..c0b634dd3 100644 --- a/packages/adapter-utilities/package.json +++ b/packages/adapter-utilities/package.json @@ -56,6 +56,7 @@ "lodash": "4.17.21" }, "devDependencies": { + "tsconfig": "workspace:*", "tsup": "8.3.6", "typescript": "5.7.3" }, diff --git a/packages/adapter-utilities/tsconfig.json b/packages/adapter-utilities/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/adapter-utilities/tsconfig.json +++ b/packages/adapter-utilities/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/cache/package.json b/packages/cache/package.json index 5e84ee50b..a40dd7a5e 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -56,6 +56,7 @@ "@flopflip/types": "workspace:*" }, "devDependencies": { + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/cache/tsconfig.json b/packages/cache/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/cache/tsconfig.json +++ b/packages/cache/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/combine-adapters/package.json b/packages/combine-adapters/package.json index f244efa3f..f83576e5f 100644 --- a/packages/combine-adapters/package.json +++ b/packages/combine-adapters/package.json @@ -61,6 +61,7 @@ "@flopflip/localstorage-adapter": "workspace:*", "@flopflip/memory-adapter": "workspace:*", "globalthis": "1.0.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/combine-adapters/tsconfig.json b/packages/combine-adapters/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/combine-adapters/tsconfig.json +++ b/packages/combine-adapters/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/cypress-plugin/package.json b/packages/cypress-plugin/package.json index 095f19449..6a5d3da5d 100644 --- a/packages/cypress-plugin/package.json +++ b/packages/cypress-plugin/package.json @@ -47,6 +47,7 @@ "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { "cypress": "13.6.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" }, "peerDependencies": { diff --git a/packages/cypress-plugin/tsconfig.json b/packages/cypress-plugin/tsconfig.json index 65edeec56..10e5d1b48 100644 --- a/packages/cypress-plugin/tsconfig.json +++ b/packages/cypress-plugin/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "compilerOptions": { "noEmit": true, "types": ["cypress"] diff --git a/packages/graphql-adapter/package.json b/packages/graphql-adapter/package.json index c1ac32b6d..c18b59141 100644 --- a/packages/graphql-adapter/package.json +++ b/packages/graphql-adapter/package.json @@ -63,6 +63,7 @@ }, "devDependencies": { "globalthis": "1.0.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/graphql-adapter/tsconfig.json b/packages/graphql-adapter/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/graphql-adapter/tsconfig.json +++ b/packages/graphql-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/http-adapter/package.json b/packages/http-adapter/package.json index e9ec963c3..f61f738ab 100644 --- a/packages/http-adapter/package.json +++ b/packages/http-adapter/package.json @@ -63,6 +63,7 @@ }, "devDependencies": { "globalthis": "1.0.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/http-adapter/tsconfig.json b/packages/http-adapter/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/http-adapter/tsconfig.json +++ b/packages/http-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/launchdarkly-adapter/package.json b/packages/launchdarkly-adapter/package.json index 3634a739e..3b48ee5bc 100644 --- a/packages/launchdarkly-adapter/package.json +++ b/packages/launchdarkly-adapter/package.json @@ -46,6 +46,7 @@ "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { "globalthis": "1.0.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" }, "dependencies": { diff --git a/packages/launchdarkly-adapter/tsconfig.json b/packages/launchdarkly-adapter/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/launchdarkly-adapter/tsconfig.json +++ b/packages/launchdarkly-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/localstorage-adapter/package.json b/packages/localstorage-adapter/package.json index 178e75708..6a7990687 100644 --- a/packages/localstorage-adapter/package.json +++ b/packages/localstorage-adapter/package.json @@ -61,6 +61,7 @@ }, "devDependencies": { "globalthis": "1.0.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/localstorage-adapter/tsconfig.json b/packages/localstorage-adapter/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/localstorage-adapter/tsconfig.json +++ b/packages/localstorage-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/localstorage-cache/package.json b/packages/localstorage-cache/package.json index 2aa2079d9..f073dfd47 100644 --- a/packages/localstorage-cache/package.json +++ b/packages/localstorage-cache/package.json @@ -55,6 +55,7 @@ "@flopflip/types": "workspace:*" }, "devDependencies": { + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/localstorage-cache/tsconfig.json b/packages/localstorage-cache/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/localstorage-cache/tsconfig.json +++ b/packages/localstorage-cache/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/memory-adapter/package.json b/packages/memory-adapter/package.json index d436d98e9..7e19d14a2 100644 --- a/packages/memory-adapter/package.json +++ b/packages/memory-adapter/package.json @@ -59,6 +59,7 @@ }, "devDependencies": { "globalthis": "1.0.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/memory-adapter/tsconfig.json b/packages/memory-adapter/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/memory-adapter/tsconfig.json +++ b/packages/memory-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react-broadcast/package.json b/packages/react-broadcast/package.json index 42792d24e..ed56868b4 100644 --- a/packages/react-broadcast/package.json +++ b/packages/react-broadcast/package.json @@ -54,6 +54,7 @@ "@types/react-dom": "18.3.5", "react": "18.3.1", "react-dom": "18.3.1", + "tsconfig": "workspace:*", "tsup": "8.3.6" }, "peerDependencies": { diff --git a/packages/react-broadcast/tsconfig.json b/packages/react-broadcast/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/react-broadcast/tsconfig.json +++ b/packages/react-broadcast/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react-redux/package.json b/packages/react-redux/package.json index 55016af5f..38050f727 100644 --- a/packages/react-redux/package.json +++ b/packages/react-redux/package.json @@ -54,6 +54,7 @@ "react-dom": "18.3.1", "react-redux": "8.0.5", "redux": "4.2.1", + "tsconfig": "workspace:*", "tsup": "8.3.6" }, "dependencies": { diff --git a/packages/react-redux/tsconfig.json b/packages/react-redux/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/react-redux/tsconfig.json +++ b/packages/react-redux/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react/package.json b/packages/react/package.json index 50db34554..1554e8555 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -51,6 +51,7 @@ "@types/react-dom": "18.3.5", "react": "18.3.1", "react-dom": "18.3.1", + "tsconfig": "workspace:*", "tsup": "8.3.6" }, "peerDependencies": { diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/sessionstorage-cache/package.json b/packages/sessionstorage-cache/package.json index 32e1deedd..d548bfce8 100644 --- a/packages/sessionstorage-cache/package.json +++ b/packages/sessionstorage-cache/package.json @@ -55,6 +55,7 @@ "@flopflip/types": "workspace:*" }, "devDependencies": { + "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/sessionstorage-cache/tsconfig.json b/packages/sessionstorage-cache/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/sessionstorage-cache/tsconfig.json +++ b/packages/sessionstorage-cache/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/splitio-adapter/package.json b/packages/splitio-adapter/package.json index 1a725f395..a5a76fd6a 100644 --- a/packages/splitio-adapter/package.json +++ b/packages/splitio-adapter/package.json @@ -46,6 +46,7 @@ "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { "globalthis": "1.0.4", + "tsconfig": "workspace:*", "tsup": "8.3.6" }, "dependencies": { diff --git a/packages/splitio-adapter/tsconfig.json b/packages/splitio-adapter/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/splitio-adapter/tsconfig.json +++ b/packages/splitio-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index feeffbb7a..e197747fe 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -20,6 +20,7 @@ "@testing-library/jest-dom": "6.6.3", "@testing-library/react": "16.2.0", "react": "18.3.1", - "react-dom": "18.3.1" + "react-dom": "18.3.1", + "tsconfig": "workspace:*" } } diff --git a/packages/test-utils/tsconfig.json b/packages/test-utils/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/test-utils/tsconfig.json +++ b/packages/test-utils/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/types/package.json b/packages/types/package.json index 6e73f8ca7..615cfb626 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -54,6 +54,7 @@ }, "devDependencies": { "@types/react": "18.3.18", + "tsconfig": "workspace:*", "tsup": "8.3.6", "typescript": "5.7.3" }, diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index 2a92f3a42..bffa764ec 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "../../tsconfig.json", + "extends": "tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c4012dac8..910eb510a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -198,6 +198,9 @@ importers: specifier: 4.17.21 version: 4.17.21 devDependencies: + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -217,6 +220,9 @@ importers: specifier: workspace:* version: link:../types devDependencies: + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -248,6 +254,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -261,6 +270,9 @@ importers: cypress: specifier: 13.6.4 version: 13.6.4(patch_hash=bnmjxin5yu4gimwzcgzqydy6di) + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -298,6 +310,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -335,6 +350,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -381,6 +399,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -412,6 +433,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -422,6 +446,9 @@ importers: specifier: workspace:* version: link:../types devDependencies: + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -447,6 +474,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -493,6 +523,9 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -536,6 +569,9 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -582,6 +618,9 @@ importers: redux: specifier: 4.2.1 version: 4.2.1 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -592,6 +631,9 @@ importers: specifier: workspace:* version: link:../types devDependencies: + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -620,6 +662,9 @@ importers: globalthis: specifier: 1.0.4 version: 1.0.4 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -644,6 +689,9 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig packages/types: dependencies: @@ -654,6 +702,9 @@ importers: '@types/react': specifier: 18.3.18 version: 18.3.18 + tsconfig: + specifier: workspace:* + version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -661,6 +712,12 @@ importers: specifier: 5.7.3 version: 5.7.3 + tooling/tsconfig: + devDependencies: + typescript: + specifier: 5.7.3 + version: 5.7.3 + packages: '@adobe/css-tools@4.4.1': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3b328393a..e29f9d21f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,3 @@ packages: -- packages/* + - packages/* + - tooling/* diff --git a/tsconfig.json b/tooling/tsconfig/base.json similarity index 100% rename from tsconfig.json rename to tooling/tsconfig/base.json diff --git a/tooling/tsconfig/package.json b/tooling/tsconfig/package.json new file mode 100644 index 000000000..cf12e8223 --- /dev/null +++ b/tooling/tsconfig/package.json @@ -0,0 +1,9 @@ +{ + "name": "tsconfig", + "version": "0.0.0", + "private": true, + "license": "MIT", + "devDependencies": { + "typescript": "5.7.3" + } +} From 8329686d77ed2237399150ef5aa599915ab445f0 Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 21:11:55 +0100 Subject: [PATCH 5/9] refactor: more into tooling pkg --- packages/adapter-utilities/package.json | 2 +- packages/adapter-utilities/tsconfig.json | 2 +- packages/cache/package.json | 2 +- packages/cache/tsconfig.json | 2 +- packages/combine-adapters/package.json | 2 +- packages/combine-adapters/tsconfig.json | 2 +- packages/cypress-plugin/package.json | 2 +- packages/cypress-plugin/tsconfig.json | 2 +- packages/graphql-adapter/package.json | 2 +- packages/graphql-adapter/tsconfig.json | 2 +- packages/http-adapter/package.json | 2 +- packages/http-adapter/tsconfig.json | 2 +- packages/launchdarkly-adapter/package.json | 2 +- packages/launchdarkly-adapter/tsconfig.json | 2 +- packages/localstorage-adapter/package.json | 2 +- packages/localstorage-adapter/tsconfig.json | 2 +- packages/localstorage-cache/package.json | 2 +- packages/localstorage-cache/tsconfig.json | 2 +- packages/memory-adapter/package.json | 2 +- packages/memory-adapter/tsconfig.json | 2 +- packages/react-broadcast/package.json | 2 +- packages/react-broadcast/tsconfig.json | 2 +- packages/react-redux/package.json | 2 +- packages/react-redux/tsconfig.json | 2 +- packages/react/package.json | 2 +- packages/react/tsconfig.json | 2 +- packages/sessionstorage-cache/package.json | 2 +- packages/sessionstorage-cache/tsconfig.json | 2 +- packages/splitio-adapter/package.json | 2 +- packages/splitio-adapter/tsconfig.json | 2 +- packages/types/package.json | 2 +- packages/types/tsconfig.json | 2 +- pnpm-lock.yaml | 124 +++++++++--------- {packages => tooling}/test-utils/CHANGELOG.md | 0 .../test-utils/CHANGELOG.md | 0 {packages => tooling}/test-utils/index.js | 0 {packages => tooling}/test-utils/package.json | 4 +- .../test-utils/src/index.jsx | 0 .../test-utils/tsconfig.json | 2 +- tooling/tsconfig/package.json | 2 +- 40 files changed, 98 insertions(+), 98 deletions(-) rename {packages => tooling}/test-utils/CHANGELOG.md (100%) rename {packages => tooling}/test-utils/CHANGELOG.md (100%) rename {packages => tooling}/test-utils/index.js (100%) rename {packages => tooling}/test-utils/package.json (90%) rename {packages => tooling}/test-utils/src/index.jsx (100%) rename {packages => tooling}/test-utils/tsconfig.json (54%) diff --git a/packages/adapter-utilities/package.json b/packages/adapter-utilities/package.json index c0b634dd3..eed43474a 100644 --- a/packages/adapter-utilities/package.json +++ b/packages/adapter-utilities/package.json @@ -56,7 +56,7 @@ "lodash": "4.17.21" }, "devDependencies": { - "tsconfig": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "tsup": "8.3.6", "typescript": "5.7.3" }, diff --git a/packages/adapter-utilities/tsconfig.json b/packages/adapter-utilities/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/adapter-utilities/tsconfig.json +++ b/packages/adapter-utilities/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/cache/package.json b/packages/cache/package.json index a40dd7a5e..aedccc3f3 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -56,7 +56,7 @@ "@flopflip/types": "workspace:*" }, "devDependencies": { - "tsconfig": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/cache/tsconfig.json b/packages/cache/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/cache/tsconfig.json +++ b/packages/cache/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/combine-adapters/package.json b/packages/combine-adapters/package.json index f83576e5f..73027609e 100644 --- a/packages/combine-adapters/package.json +++ b/packages/combine-adapters/package.json @@ -60,8 +60,8 @@ "devDependencies": { "@flopflip/localstorage-adapter": "workspace:*", "@flopflip/memory-adapter": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "globalthis": "1.0.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/combine-adapters/tsconfig.json b/packages/combine-adapters/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/combine-adapters/tsconfig.json +++ b/packages/combine-adapters/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/cypress-plugin/package.json b/packages/cypress-plugin/package.json index 6a5d3da5d..54f74d5ea 100644 --- a/packages/cypress-plugin/package.json +++ b/packages/cypress-plugin/package.json @@ -46,8 +46,8 @@ }, "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "cypress": "13.6.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" }, "peerDependencies": { diff --git a/packages/cypress-plugin/tsconfig.json b/packages/cypress-plugin/tsconfig.json index 10e5d1b48..7d9e0d89c 100644 --- a/packages/cypress-plugin/tsconfig.json +++ b/packages/cypress-plugin/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "compilerOptions": { "noEmit": true, "types": ["cypress"] diff --git a/packages/graphql-adapter/package.json b/packages/graphql-adapter/package.json index c18b59141..eab53a280 100644 --- a/packages/graphql-adapter/package.json +++ b/packages/graphql-adapter/package.json @@ -62,8 +62,8 @@ "tiny-warning": "1.0.3" }, "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "globalthis": "1.0.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/graphql-adapter/tsconfig.json b/packages/graphql-adapter/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/graphql-adapter/tsconfig.json +++ b/packages/graphql-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/http-adapter/package.json b/packages/http-adapter/package.json index f61f738ab..0f3e9263a 100644 --- a/packages/http-adapter/package.json +++ b/packages/http-adapter/package.json @@ -62,8 +62,8 @@ "tiny-warning": "1.0.3" }, "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "globalthis": "1.0.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/http-adapter/tsconfig.json b/packages/http-adapter/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/http-adapter/tsconfig.json +++ b/packages/http-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/launchdarkly-adapter/package.json b/packages/launchdarkly-adapter/package.json index 3b48ee5bc..201432c54 100644 --- a/packages/launchdarkly-adapter/package.json +++ b/packages/launchdarkly-adapter/package.json @@ -45,8 +45,8 @@ }, "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "globalthis": "1.0.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" }, "dependencies": { diff --git a/packages/launchdarkly-adapter/tsconfig.json b/packages/launchdarkly-adapter/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/launchdarkly-adapter/tsconfig.json +++ b/packages/launchdarkly-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/localstorage-adapter/package.json b/packages/localstorage-adapter/package.json index 6a7990687..c1cee0f8b 100644 --- a/packages/localstorage-adapter/package.json +++ b/packages/localstorage-adapter/package.json @@ -60,8 +60,8 @@ "tiny-warning": "1.0.3" }, "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "globalthis": "1.0.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/localstorage-adapter/tsconfig.json b/packages/localstorage-adapter/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/localstorage-adapter/tsconfig.json +++ b/packages/localstorage-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/localstorage-cache/package.json b/packages/localstorage-cache/package.json index f073dfd47..2beeea820 100644 --- a/packages/localstorage-cache/package.json +++ b/packages/localstorage-cache/package.json @@ -55,7 +55,7 @@ "@flopflip/types": "workspace:*" }, "devDependencies": { - "tsconfig": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/localstorage-cache/tsconfig.json b/packages/localstorage-cache/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/localstorage-cache/tsconfig.json +++ b/packages/localstorage-cache/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/memory-adapter/package.json b/packages/memory-adapter/package.json index 7e19d14a2..c4e8db193 100644 --- a/packages/memory-adapter/package.json +++ b/packages/memory-adapter/package.json @@ -58,8 +58,8 @@ "tiny-warning": "1.0.3" }, "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "globalthis": "1.0.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/memory-adapter/tsconfig.json b/packages/memory-adapter/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/memory-adapter/tsconfig.json +++ b/packages/memory-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react-broadcast/package.json b/packages/react-broadcast/package.json index ed56868b4..912ffbdab 100644 --- a/packages/react-broadcast/package.json +++ b/packages/react-broadcast/package.json @@ -50,11 +50,11 @@ "@flopflip/localstorage-adapter": "workspace:*", "@flopflip/memory-adapter": "workspace:*", "@flopflip/test-utils": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "@types/react": "18.3.18", "@types/react-dom": "18.3.5", "react": "18.3.1", "react-dom": "18.3.1", - "tsconfig": "workspace:*", "tsup": "8.3.6" }, "peerDependencies": { diff --git a/packages/react-broadcast/tsconfig.json b/packages/react-broadcast/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/react-broadcast/tsconfig.json +++ b/packages/react-broadcast/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react-redux/package.json b/packages/react-redux/package.json index 38050f727..3fef60640 100644 --- a/packages/react-redux/package.json +++ b/packages/react-redux/package.json @@ -50,11 +50,11 @@ "@flopflip/localstorage-adapter": "workspace:*", "@flopflip/memory-adapter": "workspace:*", "@flopflip/test-utils": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "react": "18.3.1", "react-dom": "18.3.1", "react-redux": "8.0.5", "redux": "4.2.1", - "tsconfig": "workspace:*", "tsup": "8.3.6" }, "dependencies": { diff --git a/packages/react-redux/tsconfig.json b/packages/react-redux/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/react-redux/tsconfig.json +++ b/packages/react-redux/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/react/package.json b/packages/react/package.json index 1554e8555..460200eb8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -47,11 +47,11 @@ "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { "@flopflip/test-utils": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "@types/react": "18.3.18", "@types/react-dom": "18.3.5", "react": "18.3.1", "react-dom": "18.3.1", - "tsconfig": "workspace:*", "tsup": "8.3.6" }, "peerDependencies": { diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/sessionstorage-cache/package.json b/packages/sessionstorage-cache/package.json index d548bfce8..f7f6e32ef 100644 --- a/packages/sessionstorage-cache/package.json +++ b/packages/sessionstorage-cache/package.json @@ -55,7 +55,7 @@ "@flopflip/types": "workspace:*" }, "devDependencies": { - "tsconfig": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "tsup": "8.3.6" } } diff --git a/packages/sessionstorage-cache/tsconfig.json b/packages/sessionstorage-cache/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/sessionstorage-cache/tsconfig.json +++ b/packages/sessionstorage-cache/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/splitio-adapter/package.json b/packages/splitio-adapter/package.json index a5a76fd6a..ee8bff56f 100644 --- a/packages/splitio-adapter/package.json +++ b/packages/splitio-adapter/package.json @@ -45,8 +45,8 @@ }, "homepage": "https://github.com/tdeekens/flopflip#readme", "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "globalthis": "1.0.4", - "tsconfig": "workspace:*", "tsup": "8.3.6" }, "dependencies": { diff --git a/packages/splitio-adapter/tsconfig.json b/packages/splitio-adapter/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/splitio-adapter/tsconfig.json +++ b/packages/splitio-adapter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/packages/types/package.json b/packages/types/package.json index 615cfb626..fbcee5a69 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -53,8 +53,8 @@ "launchdarkly-js-client-sdk": "3.5.0" }, "devDependencies": { + "@flopflip/tsconfig": "workspace:*", "@types/react": "18.3.18", - "tsconfig": "workspace:*", "tsup": "8.3.6", "typescript": "5.7.3" }, diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 910eb510a..4d7a68c1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -198,7 +198,7 @@ importers: specifier: 4.17.21 version: 4.17.21 devDependencies: - tsconfig: + '@flopflip/tsconfig': specifier: workspace:* version: link:../../tooling/tsconfig tsup: @@ -220,7 +220,7 @@ importers: specifier: workspace:* version: link:../types devDependencies: - tsconfig: + '@flopflip/tsconfig': specifier: workspace:* version: link:../../tooling/tsconfig tsup: @@ -251,12 +251,12 @@ importers: '@flopflip/memory-adapter': specifier: workspace:* version: link:../memory-adapter + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig globalthis: specifier: 1.0.4 version: 1.0.4 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -267,12 +267,12 @@ importers: specifier: workspace:* version: link:../types devDependencies: + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig cypress: specifier: 13.6.4 version: 13.6.4(patch_hash=bnmjxin5yu4gimwzcgzqydy6di) - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -307,12 +307,12 @@ importers: specifier: 1.0.3 version: 1.0.3 devDependencies: + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig globalthis: specifier: 1.0.4 version: 1.0.4 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -347,12 +347,12 @@ importers: specifier: 1.0.3 version: 1.0.3 devDependencies: + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig globalthis: specifier: 1.0.4 version: 1.0.4 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -396,12 +396,12 @@ importers: specifier: 7.0.2 version: 7.0.2 devDependencies: + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig globalthis: specifier: 1.0.4 version: 1.0.4 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -430,12 +430,12 @@ importers: specifier: 1.0.3 version: 1.0.3 devDependencies: + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig globalthis: specifier: 1.0.4 version: 1.0.4 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -446,7 +446,7 @@ importers: specifier: workspace:* version: link:../types devDependencies: - tsconfig: + '@flopflip/tsconfig': specifier: workspace:* version: link:../../tooling/tsconfig tsup: @@ -471,12 +471,12 @@ importers: specifier: 1.0.3 version: 1.0.3 devDependencies: + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig globalthis: specifier: 1.0.4 version: 1.0.4 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -510,7 +510,10 @@ importers: devDependencies: '@flopflip/test-utils': specifier: workspace:* - version: link:../test-utils + version: link:../../tooling/test-utils + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig '@types/react': specifier: 18.3.18 version: 18.3.18 @@ -523,9 +526,6 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -556,7 +556,10 @@ importers: version: link:../memory-adapter '@flopflip/test-utils': specifier: workspace:* - version: link:../test-utils + version: link:../../tooling/test-utils + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig '@types/react': specifier: 18.3.18 version: 18.3.18 @@ -569,9 +572,6 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -605,7 +605,10 @@ importers: version: link:../memory-adapter '@flopflip/test-utils': specifier: workspace:* - version: link:../test-utils + version: link:../../tooling/test-utils + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig react: specifier: 18.3.1 version: 18.3.1 @@ -618,9 +621,6 @@ importers: redux: specifier: 4.2.1 version: 4.2.1 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) @@ -631,7 +631,7 @@ importers: specifier: workspace:* version: link:../types devDependencies: - tsconfig: + '@flopflip/tsconfig': specifier: workspace:* version: link:../../tooling/tsconfig tsup: @@ -659,24 +659,46 @@ importers: specifier: 7.0.2 version: 7.0.2 devDependencies: + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../../tooling/tsconfig globalthis: specifier: 1.0.4 version: 1.0.4 - tsconfig: + tsup: + specifier: 8.3.6 + version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) + + packages/types: + dependencies: + launchdarkly-js-client-sdk: + specifier: 3.5.0 + version: 3.5.0 + devDependencies: + '@flopflip/tsconfig': specifier: workspace:* version: link:../../tooling/tsconfig + '@types/react': + specifier: 18.3.18 + version: 18.3.18 tsup: specifier: 8.3.6 version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) + typescript: + specifier: 5.7.3 + version: 5.7.3 - packages/test-utils: + tooling/test-utils: dependencies: '@babel/runtime': specifier: 7.26.7 version: 7.26.7 '@flopflip/memory-adapter': specifier: workspace:* - version: link:../memory-adapter + version: link:../../packages/memory-adapter + '@flopflip/tsconfig': + specifier: workspace:* + version: link:../tsconfig '@testing-library/jest-dom': specifier: 6.6.3 version: 6.6.3 @@ -689,28 +711,6 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig - - packages/types: - dependencies: - launchdarkly-js-client-sdk: - specifier: 3.5.0 - version: 3.5.0 - devDependencies: - '@types/react': - specifier: 18.3.18 - version: 18.3.18 - tsconfig: - specifier: workspace:* - version: link:../../tooling/tsconfig - tsup: - specifier: 8.3.6 - version: 8.3.6(jiti@2.4.2)(postcss@8.5.1)(typescript@5.7.3)(yaml@2.7.0) - typescript: - specifier: 5.7.3 - version: 5.7.3 tooling/tsconfig: devDependencies: diff --git a/packages/test-utils/CHANGELOG.md b/tooling/test-utils/CHANGELOG.md similarity index 100% rename from packages/test-utils/CHANGELOG.md rename to tooling/test-utils/CHANGELOG.md diff --git a/packages/test-utils/CHANGELOG.md b/tooling/test-utils/CHANGELOG.md similarity index 100% rename from packages/test-utils/CHANGELOG.md rename to tooling/test-utils/CHANGELOG.md diff --git a/packages/test-utils/index.js b/tooling/test-utils/index.js similarity index 100% rename from packages/test-utils/index.js rename to tooling/test-utils/index.js diff --git a/packages/test-utils/package.json b/tooling/test-utils/package.json similarity index 90% rename from packages/test-utils/package.json rename to tooling/test-utils/package.json index e197747fe..5615ff842 100644 --- a/packages/test-utils/package.json +++ b/tooling/test-utils/package.json @@ -17,10 +17,10 @@ "dependencies": { "@babel/runtime": "7.26.7", "@flopflip/memory-adapter": "workspace:*", + "@flopflip/tsconfig": "workspace:*", "@testing-library/jest-dom": "6.6.3", "@testing-library/react": "16.2.0", "react": "18.3.1", - "react-dom": "18.3.1", - "tsconfig": "workspace:*" + "react-dom": "18.3.1" } } diff --git a/packages/test-utils/src/index.jsx b/tooling/test-utils/src/index.jsx similarity index 100% rename from packages/test-utils/src/index.jsx rename to tooling/test-utils/src/index.jsx diff --git a/packages/test-utils/tsconfig.json b/tooling/test-utils/tsconfig.json similarity index 54% rename from packages/test-utils/tsconfig.json rename to tooling/test-utils/tsconfig.json index bffa764ec..db2cc8fb9 100644 --- a/packages/test-utils/tsconfig.json +++ b/tooling/test-utils/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@flopflip/tsconfig/base.json", "exclude": ["**/dist/*", "**/vitest.config.ts"] } diff --git a/tooling/tsconfig/package.json b/tooling/tsconfig/package.json index cf12e8223..8209f3e45 100644 --- a/tooling/tsconfig/package.json +++ b/tooling/tsconfig/package.json @@ -1,5 +1,5 @@ { - "name": "tsconfig", + "name": "@flopflip/tsconfig", "version": "0.0.0", "private": true, "license": "MIT", From 4aa18335b05dd1e0d299b04a40ce679a3d96c5e2 Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 21:15:32 +0100 Subject: [PATCH 6/9] fix: bundlewatch paths --- package.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 568a7e132..fc058a4ff 100644 --- a/package.json +++ b/package.json @@ -55,43 +55,43 @@ "bundlewatch": { "files": [ { - "path": "./packages/launchdarkly-adapter/dist/flopflip-launchdarkly-adapter.esm.js", + "path": "./packages/launchdarkly-adapter/dist/index.js", "maxSize": "5Kb" }, { - "path": "./packages/localstorage-adapter/dist/flopflip-localstorage-adapter.esm.js", + "path": "./packages/localstorage-adapter/dist/index.js", "maxSize": "3KB" }, { - "path": "./packages/localstorage-cache/dist/flopflip-localstorage-cache.esm.js", + "path": "./packages/localstorage-cache/dist/index.js", "maxSize": "1KB" }, { - "path": "./packages/memory-adapter/dist/flopflip-memory-adapter.esm.js", + "path": "./packages/memory-adapter/dist/index.js", "maxSize": "3KB" }, { - "path": "./packages/graphql-adapter/dist/flopflip-graphql-adapter.esm.js", + "path": "./packages/graphql-adapter/dist/index.js", "maxSize": "4KB" }, { - "path": "./packages/splitio-adapter/dist/flopflip-splitio-adapter.esm.js", + "path": "./packages/splitio-adapter/dist/index.js", "maxSize": "3.5Kb" }, { - "path": "./packages/combine-adapters/dist/flopflip-combine-adapters.esm.js", + "path": "./packages/combine-adapters/dist/index.js", "maxSize": "3.0Kb" }, { - "path": "./packages/react/dist/flopflip-react.esm.js", + "path": "./packages/react/dist/index.js", "maxSize": "6Kb" }, { - "path": "./packages/react-broadcast/dist/flopflip-react-broadcast.browser.esm.js", + "path": "./packages/react-broadcast/dist/index.js", "maxSize": "3Kb" }, { - "path": "./packages/react-redux/dist/flopflip-react-redux.browser.esm.js", + "path": "./packages/react-redux/dist/index.js", "maxSize": "4Kb" } ] From 49b5716ae43440fbc5342a65840a96427b8db807 Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 21:17:22 +0100 Subject: [PATCH 7/9] fix: build before test --- .github/workflows/quality.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index baeb75725..303bc68bd 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -46,6 +46,9 @@ jobs: - name: Setup uses: ./.github/actions/ci + - name: Build) + run: pnpm build + - name: Test (with coverage) run: pnpm test:coverage From f2d87dab46d48532e738c4e9f8ecfe8c5a2ae613 Mon Sep 17 00:00:00 2001 From: tdeekens Date: Wed, 12 Feb 2025 21:23:32 +0100 Subject: [PATCH 8/9] fix: runninv vitest from root --- .github/workflows/quality.yml | 6 +++--- vitest.shared.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 303bc68bd..8ffb0d316 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -46,14 +46,14 @@ jobs: - name: Setup uses: ./.github/actions/ci - - name: Build) + - name: Build run: pnpm build - name: Test (with coverage) - run: pnpm test:coverage + run: pnpm test:coverage --config vitest.shared.ts - name: Test (with report) - run: pnpm test:report + run: pnpm test:report --config vitest.shared.ts - name: Upload coverage uses: codecov/codecov-action@v5 diff --git a/vitest.shared.ts b/vitest.shared.ts index 76f0c93d8..b0030fd4c 100644 --- a/vitest.shared.ts +++ b/vitest.shared.ts @@ -10,6 +10,7 @@ export default defineConfig({ ], test: { globals: true, + environment: 'jsdom', setupFiles: [path.resolve(__dirname, 'setup-tests.ts')], }, }); From 738c6327ce60fe9e3beb6f9b9d894bf8e7fc0a41 Mon Sep 17 00:00:00 2001 From: Tobias Deekens Date: Wed, 12 Feb 2025 21:25:57 +0100 Subject: [PATCH 9/9] Create olive-eyes-retire.md --- .changeset/olive-eyes-retire.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/olive-eyes-retire.md diff --git a/.changeset/olive-eyes-retire.md b/.changeset/olive-eyes-retire.md new file mode 100644 index 000000000..db083ca02 --- /dev/null +++ b/.changeset/olive-eyes-retire.md @@ -0,0 +1,11 @@ +--- +"@flopflip/adapter-utilities": patch +"@flopflip/cache": patch +"@flopflip/combine-adapters": patch +"@flopflip/cypress-plugin": patch +"@flopflip/graphql-adapter": patch +"@flopflip/http-adapter": patch +"@flopflip/launchdarkly-adapter": patch +--- + +Refactor to use turborepo and tsup