Skip to content

Commit 1f30bb4

Browse files
fix: add --ignore-scripts to npm install commands (#201)
1 parent 2402f88 commit 1f30bb4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.readthedocs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build:
99
commands:
1010
- 'echo "output directory: ${READTHEDOCS_OUTPUT}html"'
1111
# shared-web build
12-
- npm install
12+
- npm install --ignore-scripts
1313
- npm run build
1414
- npm pack
1515
- mkdir -p ${READTHEDOCS_OUTPUT}html/dist
@@ -18,13 +18,13 @@ build:
1818
- npm run generate-docs
1919
# jekyll example build
2020
- 'echo "baseurl: projects/shared-web/$READTHEDOCS_VERSION"/jekyll >> ./examples/jekyll/_config.yml'
21-
- cd examples/jekyll && npm install
21+
- cd examples/jekyll && npm install # we need to include scripts for postinstall actions
2222
- cd examples/jekyll && npm run build
2323
# doxygen example build
24-
- cd examples/doxygen && npm install
24+
- cd examples/doxygen && npm install --ignore-scripts
2525
- cd examples/doxygen && npm run build
2626
# sphinx example build
27-
- cd examples/sphinx && npm install
27+
- cd examples/sphinx && npm install # we need to include scripts for postinstall actions
2828
- cd examples/sphinx && npm run build
2929
- cd examples/sphinx && npm run lint
3030
# debug output

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Common web assets for use in LizardByte projects.
1616

1717
1. Add the dependency to your package.json file:
1818
```bash
19-
npm install @lizardbyte/shared-web
19+
npm install @lizardbyte/shared-web --ignore-scripts
2020
```
2121

2222
### Install via GitHub Package Registry
@@ -35,5 +35,5 @@ Common web assets for use in LizardByte projects.
3535

3636
2. Add the dependency to your package.json file:
3737
```bash
38-
npm install @lizardbyte/shared-web
38+
npm install @lizardbyte/shared-web --ignore-scripts
3939
```

0 commit comments

Comments
 (0)