Skip to content

Commit 036f95f

Browse files
fix: package name for ESM syntax (#857)
* fix package name for ESM syntax After "npx api install" the dependecy "@api/gkmmk":"file:.api/apis/gkmmk" was created, but not "api": "file:.api/apis/gkmmk" * Update packages/api/README.md --------- Co-authored-by: Kanad Gupta <[email protected]>
1 parent 01d1a00 commit 036f95f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/api/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ petstore.listPets().then(({ data }) => {
3939
The ESM syntax is supported as well:
4040

4141
```js
42-
import api from 'api';
43-
const petstore = api('@petstore/v1.0#tl1e4kl1cl8eg8');
42+
import petstore from '@api/petstore';
4443

4544
petstore.listPets().then(({ data }) => {
4645
console.log(`My pets name is ${data[0].name}!`);

0 commit comments

Comments
 (0)