Skip to content

Commit a322beb

Browse files
ReenigneArcherhfiguiere
authored andcommitted
docs(node): add clarifiaction around node_modules directory
1 parent a807e97 commit a322beb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

node/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,12 @@ flatpak-node-generator.py takes the package manager (npm or yarn), and a path to
101101
that package manager. It will then write an output sources file (default is generated-sources.json)
102102
containing all the sources set up like needed for the given package manager.
103103

104-
If you're on npm and you don't want to include devel dependencies, pass --no-devel, and pass
105-
--production to `npm install` itself when you call.
104+
If you're on npm and you don't want to include devel dependencies, pass `--no-devel`, and pass
105+
`--production` to `npm install` itself when you call.
106+
107+
If you're using npm, you must run this script when the `node_modules` directory is **NOT** present.
108+
If you generate the `generated-sources.json` in CI, you can do this by passing `--package-lock-only`
109+
to `npm install`.
106110

107111
### Caching
108112

0 commit comments

Comments
 (0)