Skip to content

Commit

Permalink
Updated text post-review
Browse files Browse the repository at this point in the history
  • Loading branch information
Carolyn Stransky committed Oct 13, 2019
1 parent 6a4c176 commit 684e141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/photon/codegen-and-node-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Because Photon.js is a custom API for _your_ specific database setup, it can't f

## Why is Photon.js generated into `node_modules/@generated` by default?

### One-line imports
### Importing Photon.js

By generating Photon.js into `node_modules/@generated`, you can import it into your code:

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ The project also contains a number of additional files required for a typical fo
- `package.json`: Defines your project's Node.js dependencies.
- `tsconfig.json`: Specifies your TypeScript configuration. Note that Photon.js currently requires the `esModuleInterop` property to be set to `true`.
- `node_modules/@generated/photon`: Contains the generated Photon.js code.
- `script.ts`: Contains the actual "application code", which in this case is a script demonstrating some Photon.js API calls.
- `script.ts`: Contains the actual "application code", which in this case is a sample script demonstrating some Photon.js API calls.

Having Photon.js located inside `node_modules/@generated` enables you to import it in your code as follows:

Expand Down

0 comments on commit 684e141

Please sign in to comment.