From 082a9f37da31bbfd9fc149e7ce8d87891dc22c1b Mon Sep 17 00:00:00 2001 From: Gitaarwerk Date: Wed, 20 Nov 2024 14:24:44 +0100 Subject: [PATCH] feat: improve some output settings --- packages/gleamy/tsup.config.dev.ts | 7 ++++--- packages/gleamy/tsup.config.prod.ts | 2 +- pnpm-lock.yaml | 24 ++++++++++++------------ 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/packages/gleamy/tsup.config.dev.ts b/packages/gleamy/tsup.config.dev.ts index b626db8..6433d0b 100644 --- a/packages/gleamy/tsup.config.dev.ts +++ b/packages/gleamy/tsup.config.dev.ts @@ -2,14 +2,15 @@ import { defineConfig } from 'tsup'; export default defineConfig({ entry: ['src/index.ts'], - splitting: true, - treeshake: 'smallest', sourcemap: true, + splitting: true, bundle: true, clean: true, dts: true, minify: false, + treeshake: 'smallest', legacyOutput: false, format: ['esm', 'cjs'], - platform: 'browser', + metafile: false, + platform: 'browser' }); diff --git a/packages/gleamy/tsup.config.prod.ts b/packages/gleamy/tsup.config.prod.ts index 4f7fb3f..32463e2 100644 --- a/packages/gleamy/tsup.config.prod.ts +++ b/packages/gleamy/tsup.config.prod.ts @@ -6,7 +6,7 @@ console.info(licenseContent); export default defineConfig({ entry: ['src/index.ts'], - sourcemap: true, + sourcemap: false, splitting: true, bundle: true, clean: true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ea9c5f8..5c07a75 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,21 +80,9 @@ importers: packages/gleamy: dependencies: - '@types/color': - specifier: ^4.2.0 - version: 4.2.0 - '@types/node': - specifier: ^22.9.0 - version: 22.9.1 - '@types/react': - specifier: ^18.3.12 - version: 18.3.12 color: specifier: 4.2.3 version: 4.2.3 - tslib: - specifier: ^2.8.1 - version: 2.8.1 devDependencies: '@testing-library/react': specifier: ^16.0.1 @@ -102,9 +90,18 @@ importers: '@testing-library/user-event': specifier: ^14.5.2 version: 14.5.2(@testing-library/dom@10.4.0) + '@types/color': + specifier: ^4.2.0 + version: 4.2.0 '@types/jest': specifier: ^29.5.14 version: 29.5.14 + '@types/node': + specifier: ^22.9.0 + version: 22.9.1 + '@types/react': + specifier: ^18.3.12 + version: 18.3.12 '@types/styled-components': specifier: ^5.1.34 version: 5.1.34 @@ -168,6 +165,9 @@ importers: ts-jest: specifier: ^29.2.5 version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(esbuild@0.24.0)(jest@29.7.0(@types/node@22.9.1))(typescript@5.6.3) + tslib: + specifier: ^2.8.1 + version: 2.8.1 tsup: specifier: ^8.3.5 version: 8.3.5(postcss@8.4.38)(typescript@5.6.3)(yaml@2.6.1)