-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove script to publish dist dir
When publishing, all required files were copied into the `dist` dir, and it was published as the "root". Because of ESM exports, it's now possible to cleanly expose the `test-utils` with exposing "dist" in the imports.
- Loading branch information
1 parent
7feb5b6
commit 0980efa
Showing
4 changed files
with
11 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,30 +19,26 @@ | |
"default": "./dist/index.mjs" | ||
} | ||
}, | ||
"files": ["dist"], | ||
"author": "Daniel Schmidt", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/thebuilder/react-intersection-observer.git" | ||
}, | ||
"engines": { | ||
"pnpm": ">=9" | ||
}, | ||
"packageManager": "[email protected]+sha256.dbdf5961c32909fb030595a9daa1dae720162e658609a8f92f2fa99835510ca5", | ||
"scripts": { | ||
"prebuild": "rm -rf dist lib", | ||
"build": "run-s build:*", | ||
"build:bundle": "tsup src/index.tsx", | ||
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts", | ||
"build:utils": "tsup src/test-utils.ts --no-clean --no-sourcemap", | ||
"build:copy": "node scripts/build-copy.cjs", | ||
"postbuild": "size-limit", | ||
"dev": "run-p dev:*", | ||
"dev:package": "tsup src/index.tsx --watch", | ||
"dev:storybook": "pnpm --filter storybook dev", | ||
"lint": "biome check .", | ||
"release": "np --contents dist", | ||
"version": "pnpm build", | ||
"storybook:build": "pnpm build:bundle && pnpm --filter storybook build", | ||
"test": "vitest" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters