Merged PR 269674: Remove force resolution from pacakge.json

Now when we have package-lock.json file, we can remove from package.json the preinstall script `npx force-resolution`.
It will fix the dependency in npx when running `npm install powerbi-models`
This commit is contained in:
Or Shemesh 2022-06-02 07:13:39 +00:00
Родитель 15e04eb7b9
Коммит 1c859c62b8
3 изменённых файлов: 16968 добавлений и 17056 удалений

Просмотреть файл

@ -17,10 +17,6 @@ Write-Host "done: try install latest npm version"
# Do not update $exitCode because we do not want to fail if install latest npm version fails.
Write-Host "start: install npx globally"
& npm install -g npx
Write-Host "done: install npx globally"
Write-Host "start: npm install"
& npm install --no-audit --no-save
Write-Host "done: npm install"

34012
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "powerbi-models",
"version": "1.10.3",
"version": "1.10.4",
"description": "Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK. For each model there is a TypeScript interface, and a validation function to ensure and object is valid.",
"main": "dist/models.js",
"typings": "dist/models.d.ts",
@ -8,7 +8,6 @@
"test": "test"
},
"scripts": {
"preinstall": "npx force-resolutions",
"build": "gulp build",
"test": "gulp test",
"gulp": "gulp",
@ -21,11 +20,6 @@
"type": "git",
"url": "https://github.com/Microsoft/powerbi-models"
},
"resolutions": {
"glob-parent": "^6.0.2",
"micromatch": "^4.0.5",
"braces": "^3.0.2"
},
"keywords": [
"Microsoft",
"PowerBI",