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:
Lukasz Ostrowski 2022-11-22 09:52:21 +01:00 committed by GitHub
parent 030a65424c
commit 607fe73569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@saleor/app-sdk",
"version": "0.20.0",
"version": "0.20.1-1",
"description": "SDK for building great Saleor Apps",
"types": "index.d.ts",
"main": "index.js",
@ -19,7 +19,7 @@
"author": "",
"license": "ISC",
"peerDependencies": {
"next": "^12",
"next": ">=12",
"react": ">=17",
"react-dom": ">=17"
},

View file

@ -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 { actions } from "../actions";