Skip to content

Commit

Permalink
docs: Correct json comma syntax in sample code (#8949)
Browse files Browse the repository at this point in the history
### Description

Correct comma json syntax in sample code in document at [Creating an
Internal Package > Add a package.json
section](https://turbo.build/repo/docs/crafting-your-repository/creating-an-internal-package#add-a-packagejson)


![sample-syntax-error](https://github.com/user-attachments/assets/6032d6e5-31b3-497a-9d42-d18fcba0d7a2)

### Testing Instructions


![sample-syntax-fix](https://github.com/user-attachments/assets/d1472451-172e-4af7-b3d7-4672890de66b)
  • Loading branch information
huyb1991 authored Aug 6, 2024
1 parent 582851e commit 50a7aea
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ Next, create the `package.json` for the package. By adding this file, you'll ful
"exports": {
"./add": {
"types": "./src/add.ts",
"default": "./dist/add.js",
"default": "./dist/add.js"
},
"./subtract": {
"types": "./src/subtract.ts",
"default": "./dist/subtract.js",
},
"default": "./dist/subtract.js"
}
},
"devDependencies": {
"@repo/typescript-config": "workspace:*",
Expand All @@ -110,12 +110,12 @@ Next, create the `package.json` for the package. By adding this file, you'll ful
"exports": {
"./add": {
"types": "./src/add.ts",
"default": "./dist/add.js",
"default": "./dist/add.js"
},
"./subtract": {
"types": "./src/subtract.ts",
"default": "./dist/subtract.js",
},
"default": "./dist/subtract.js"
}
},
"devDependencies": {
"@repo/typescript-config": "workspace:*",
Expand Down

0 comments on commit 50a7aea

Please sign in to comment.