> For the complete documentation index, see [llms.txt](https://book.hajoeun.dev/friendly-next-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.hajoeun.dev/friendly-next-js/part-2/next.js-1/package-json.md).

# package.json

### package.json 파일

create-next-app을 통해 설치된 기본 패키지 구성을 살펴봅시다.

{% code title="package.json" lineNumbers="true" %}

```json
{
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "react": "^18",
    "react-dom": "^18",
    "next": "14.0.2"
  },
  "devDependencies": {
    "typescript": "^5",
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "eslint": "^8",
    "eslint-config-next": "14.0.2"
  }
}
```

{% endcode %}

#### scripts&#x20;

프로젝트에서 사용할 수 있는 스크립트를 정의합니다. "dev", "build", "start", "lint"라는 네 가지 스크립트가 정의되어 있습니다.

#### dependencies&#x20;

프로젝트가 실행되는 데 필요한 패키지를 나열합니다. "react", "react-dom", "next"라는 세 가지 패키지가 필요합니다.

#### devDependencies&#x20;

개발 과정에서만 필요한 패키지를 나열합니다. "typescript", "@types/node", "@types/react", "@types/react-dom", "eslint", "eslint-config-next"라는 패키지가 필요합니다.

#### browserlist

Next.js는 추가 설정 없이도 [최신 브라우저를 지원](https://nextjs.org/docs/architecture/supported-browsers)합니다. 필요하다면 아래와 같이 명시적으로 버전을 추가해줄 수도 있습니다.

```json
{
  "browserslist": [
    "chrome 64",
    "edge 79",
    "firefox 67",
    "opera 51",
    "safari 12"
  ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.hajoeun.dev/friendly-next-js/part-2/next.js-1/package-json.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
