Update build config (#118)
* Ensure peer deps are excluded * Release 0.20.1-0 * Change next router import to fix the build * Release 0.20.1-1 * Restore releaseit config
This commit is contained in:
parent
030a65424c
commit
607fe73569
2 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@saleor/app-sdk",
|
"name": "@saleor/app-sdk",
|
||||||
"version": "0.20.0",
|
"version": "0.20.1-1",
|
||||||
"description": "SDK for building great Saleor Apps",
|
"description": "SDK for building great Saleor Apps",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"next": "^12",
|
"next": ">=12",
|
||||||
"react": ">=17",
|
"react": ">=17",
|
||||||
"react-dom": ">=17"
|
"react-dom": ">=17"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
import { useRouter } from "next/router";
|
/**
|
||||||
|
* Use .js extension to avoid broken builds with ESM
|
||||||
|
*/
|
||||||
|
import { useRouter } from "next/router.js";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
|
|
||||||
import { actions } from "../actions";
|
import { actions } from "../actions";
|
||||||
|
|
Loading…
Reference in a new issue