mirror of https://github.com/pyodide/pyodide.git
MAINT use npm ci to make sure the consistent dependencies installed (#1999)
This commit is contained in:
parent
a255d54f3f
commit
da49fe57de
|
@ -227,14 +227,14 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
cd src/js
|
cd src/js
|
||||||
npx tsd
|
npx tsd
|
||||||
npm install
|
npm ci
|
||||||
npm test
|
npm test
|
||||||
- run:
|
- run:
|
||||||
name: check if webpack cli works well with load-pyodide.js
|
name: check if webpack cli works well with load-pyodide.js
|
||||||
command: |
|
command: |
|
||||||
git clone https://github.com/pyodide/pyodide-webpack-example.git
|
git clone https://github.com/pyodide/pyodide-webpack-example.git
|
||||||
cd pyodide-webpack-example
|
cd pyodide-webpack-example
|
||||||
npm install
|
npm ci
|
||||||
cp ../src/js/load-pyodide.js node_modules/pyodide/load-pyodide.js
|
cp ../src/js/load-pyodide.js node_modules/pyodide/load-pyodide.js
|
||||||
head -20 node_modules/pyodide/load-pyodide.js
|
head -20 node_modules/pyodide/load-pyodide.js
|
||||||
npx webpack
|
npx webpack
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -67,8 +67,8 @@ env:
|
||||||
env
|
env
|
||||||
|
|
||||||
|
|
||||||
node_modules/.installed : src/js/package.json
|
node_modules/.installed : src/js/package.json src/js/package-lock.json
|
||||||
cd src/js && npm install --save-dev
|
cd src/js && npm ci
|
||||||
ln -sfn src/js/node_modules/ node_modules
|
ln -sfn src/js/node_modules/ node_modules
|
||||||
touch node_modules/.installed
|
touch node_modules/.installed
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue