Skip to content

Commit

Permalink
Move to subpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Dec 13, 2024
1 parent 02127a7 commit 0a31ce9
Show file tree
Hide file tree
Showing 15 changed files with 113 additions and 1,307 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const pkgList = {
core: "@preact/signals-core",
preact: "@preact/signals",
react: "@preact/signals-react",
"react-utils": "@preact/signals-react-utils",
"react/utils": "@preact/signals-react/utils",
"react/auto": "@preact/signals-react/auto",
"react/runtime": "@preact/signals-react/runtime",
"react-transform": "@preact/signals-react-transform",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
"private": true,
"scripts": {
"prebuild": "shx rm -rf packages/*/dist/",
"build": "pnpm build:core && pnpm build:preact && pnpm build:react-runtime && pnpm build:react-auto && pnpm build:react && pnpm build:react-transform",
"build": "pnpm build:core && pnpm build:preact && pnpm build:react-runtime && pnpm build:react-auto && pnpm build:react && pnpm build:react-transform && pnpm build:react-utils",
"_build": "microbundle --raw --globals @preact/signals-core=preactSignalsCore,preact/hooks=preactHooks,@preact/signals-react/runtime=reactSignalsRuntime",
"build:core": "pnpm _build --cwd packages/core && pnpm postbuild:core",
"build:preact": "pnpm _build --cwd packages/preact && pnpm postbuild:preact",
"build:react": "pnpm _build --cwd packages/react --external \"react,@preact/signals-react/runtime,@preact/signals-core\" && pnpm postbuild:react",
"build:react-utils": "pnpm _build --cwd packages/react-utils && pnpm postbuild:react-utils",
"build:react-utils": "pnpm _build --cwd packages/react/utils && pnpm postbuild:react-utils",
"build:react-auto": "pnpm _build --cwd packages/react/auto && pnpm postbuild:react-auto",
"build:react-runtime": "pnpm _build --cwd packages/react/runtime && pnpm postbuild:react-runtime",
"build:react-transform": "pnpm _build --no-compress --cwd packages/react-transform",
"postbuild:core": "cd packages/core/dist && shx mv -f index.d.ts signals-core.d.ts",
"postbuild:preact": "cd packages/preact/dist && shx mv -f preact/src/index.d.ts signals.d.ts && shx rm -rf preact",
"postbuild:react": "cd packages/react/dist && shx mv -f react/src/index.d.ts signals.d.ts && shx rm -rf react",
"postbuild:react-utils": "cd packages/react-utils/dist && shx mv -f react-utils/src/index.d.ts signals.d.ts && shx rm -rf react-utils",
"postbuild:react-utils": "cd packages/react/utils/dist && shx mv -f react/utils/src/index.d.ts . && shx rm -rf react",
"postbuild:react-auto": "cd packages/react/auto/dist && shx mv -f react/auto/src/*.d.ts . && shx rm -rf react",
"postbuild:react-runtime": "cd packages/react/runtime/dist && shx mv -f react/runtime/src/*.d.ts . && shx rm -rf react",
"lint": "pnpm lint:eslint && pnpm lint:tsc",
Expand Down
1 change: 0 additions & 1 deletion packages/react-utils/CHANGELOG.md

This file was deleted.

Empty file removed packages/react-utils/README.md
Empty file.
63 changes: 0 additions & 63 deletions packages/react-utils/package.json

This file was deleted.

44 changes: 0 additions & 44 deletions packages/react-utils/test/browser/index.test.tsx

This file was deleted.

167 changes: 0 additions & 167 deletions packages/react-utils/test/shared/mounting.tsx

This file was deleted.

Loading

0 comments on commit 0a31ce9

Please sign in to comment.