Skip to content

Commit

Permalink
feat: upgrade "next" recipe to typescript@5.5.4
Browse files Browse the repository at this point in the history
Closes #546
  • Loading branch information
chrisvxd authored Aug 12, 2024
1 parent 958dc25 commit 60fe631
Show file tree
Hide file tree
Showing 12 changed files with 397 additions and 214 deletions.
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"@types/react": "^18.0.22",
"@types/react-dom": "^18.0.7",
"eslint-config-custom": "*",
"typescript": "^4.5.3"
"typescript": "^5.5.4"
}
}
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/react": "^18.0.22",
"@types/react-dom": "^18.0.7",
"eslint-config-custom": "*",
"typescript": "^4.5.3"
"typescript": "^5.5.4"
},
"dependencies": {
"next": "^14.1.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"lucide-react": "^0.298.0",
"ts-jest": "^29.1.1",
"ts-jest": "^29.2.4",
"tsconfig": "*",
"tsup": "^6.7.0",
"tsup": "^8.2.4",
"tsup-config": "*",
"typescript": "^4.5.2"
"typescript": "^5.5.4"
},
"dependencies": {
"@measured/dnd": "16.6.0-canary.4cba1d1",
Expand Down
7 changes: 5 additions & 2 deletions packages/core/reducer/__tests__/data.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ type Props = {
prop: string;
};
};

type UserConfig = Config<Props>;

const defaultData: Data = {
root: { props: { title: "" } },
content: [],
Expand All @@ -34,7 +37,7 @@ const defaultData: Data = {
const defaultUi: UiState = defaultAppState.ui;

describe("Data reducer", () => {
const config: Config<Props> = {
const config: UserConfig = {
components: {
Comp: {
defaultProps: { prop: "example" },
Expand All @@ -43,7 +46,7 @@ describe("Data reducer", () => {
},
};

const reducer = createReducer({ config });
const reducer = createReducer<any>({ config });

describe("insert action", () => {
it("should insert into rootDroppableId", () => {
Expand Down
6 changes: 4 additions & 2 deletions packages/core/reducer/__tests__/state.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ type Props = {
};
};

type UserConfig = Config<Props>;

describe("State reducer", () => {
const config: Config<Props> = {
const config: UserConfig = {
components: {
Comp: {
defaultProps: { prop: "example" },
Expand All @@ -18,7 +20,7 @@ describe("State reducer", () => {
},
};

const reducer = createReducer({ config });
const reducer = createReducer<any>({ config });

describe("setUi action", () => {
it("should insert data into the state", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "tsconfig/react-library.json",
"extends": "../tsconfig/react-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
}
2 changes: 1 addition & 1 deletion packages/create-puck-app/templates/next/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@types/react": "^18.0.22",
"@types/react-dom": "^18.0.7",
"eslint-config-custom": "*",
"typescript": "^4.5.3"
"typescript": "^5.5.4"
}
}
2 changes: 1 addition & 1 deletion packages/field-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint-config-custom": "*",
"tsconfig": "*",
"tsup-config": "*",
"typescript": "^4.5.2"
"typescript": "^5.5.4"
},
"peerDependencies": {
"contentful": "^10.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-heading-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"eslint": "^7.32.0",
"eslint-config-custom": "*",
"tsconfig": "*",
"tsup": "^6.7.0",
"tsup": "^8.2.4",
"tsup-config": "*",
"typescript": "^4.5.2"
"typescript": "^5.5.4"
},
"dependencies": {
"react-from-json": "^0.8.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/tsup-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"tsconfig": "*",
"tsup": "^6.7.0",
"typescript": "^4.5.2",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"postcss": "^8.4.24",
"postcss-modules": "^6.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion recipes/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"@types/react": "^18.0.22",
"@types/react-dom": "^18.0.7",
"eslint-config-custom": "*",
"typescript": "^4.5.3"
"typescript": "^5.5.4"
}
}
Loading

0 comments on commit 60fe631

Please sign in to comment.