Skip to content

Commit

Permalink
dts
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Dec 13, 2024
1 parent cd437f3 commit d430bcd
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-sloths-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"basehub": patch
---

fix dts thing?
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dirty-falcons-rhyme",
"dry-timers-poke",
"eleven-donuts-yell",
"fluffy-sloths-admire",
"good-worms-jam",
"great-flies-wonder",
"lovely-carrots-bathe",
Expand Down
6 changes: 6 additions & 0 deletions packages/basehub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# basehub

## 8.0.0-canary.19

### Patch Changes

- fix dts thing?

## 8.0.0-canary.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/basehub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "basehub",
"description": "A very fast Headless CMS.",
"author": "JB <[email protected]>",
"version": "8.0.0-canary.18",
"version": "8.0.0-canary.19",
"license": "MIT",
"repository": "basehub-ai/basehub",
"bugs": "https://github.com/basehub-ai/basehub/issues",
Expand Down
9 changes: 3 additions & 6 deletions packages/basehub/src/bin/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,14 @@ R extends Omit<MutationGenqlSelection, "transaction" | "transactionAwaitable"> &
* DTS stuff.
*/
copyDirSync(
path.join(basehubModulePath, "dts", "src", "react", "pump"),
path.join(basehubModulePath, "dts", "react", "pump"),
reactPumpOutDir
);
copyDirSync(
path.join(basehubModulePath, "dts", "src", "next", "toolbar"),
path.join(basehubModulePath, "dts", "next", "toolbar"),
nextToolbarOutDir
);
copyDirSync(
path.join(basehubModulePath, "dts", "src", "events"),
analyticsOutDir
);
copyDirSync(path.join(basehubModulePath, "dts", "events"), analyticsOutDir);

if (args["--debug"]) {
console.log(`[basehub] copied dts for react pump to: ${reactPumpOutDir}`);
Expand Down
1 change: 1 addition & 0 deletions packages/basehub/src/declare.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "*.scss";
7 changes: 5 additions & 2 deletions packages/basehub/tsconfig.dts-only.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "tsconfig/react-library.json",
"include": ["."],
"include": ["src/**/*.ts", "src/**/*.tsx"],
"compilerOptions": {
"rootDir": ".",
"strict": true,
"outDir": "dts",
"sourceMap": false,
Expand All @@ -16,6 +17,8 @@
"build",
"node_modules",
"tsup-bin.config.ts",
"tsup-client.config.ts"
"tsup-client.config.ts",
"../../playground",
".basehub"
]
}
7 changes: 7 additions & 0 deletions playground/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# playground

## 0.0.164-canary.19

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.164-canary.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "playground",
"private": true,
"version": "0.0.164-canary.18",
"version": "0.0.164-canary.19",
"scripts": {
"dev": "basehub dev & next dev --port 3003",
"build": "basehub && next build",
Expand Down

0 comments on commit d430bcd

Please sign in to comment.