Skip to content

Commit

Permalink
Improve packages' settings (#6)
Browse files Browse the repository at this point in the history
* various package.json related changes

* in pack
  • Loading branch information
ziyzhu authored Aug 17, 2021
1 parent ef8e671 commit b24b969
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 58 deletions.
14 changes: 8 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ stages:
imjs_test_regular_user_name: $(test_user_name)
imjs_test_regular_user_password: $(test_user_password)
- script: |
- bash: |
cp ../README.md .
cp ../LICENSE .
npm pack
displayName: 'npm pack'
workingDirectory: core
Expand All @@ -109,7 +111,8 @@ stages:
displayName: 'npm link'
workingDirectory: cli
- script: |
- bash: |
cp ../LICENSE .
npm pack
displayName: 'npm pack'
workingDirectory: cli
Expand All @@ -128,10 +131,6 @@ stages:
displayName: 'pcf init'
workingDirectory: cli
- bash: |
ls ../../core
workingDirectory: cli/TestProject
- bash: |
npm install ../../core/*.tgz
displayName: 'npm install core/*tgz'
Expand Down Expand Up @@ -194,6 +193,9 @@ stages:
echo "coreName: $(info.coreName)"
echo "cliVer: $(info.cliVer)"
echo "cliName: $(info.cliName)"
ls
ls cli
ls core
displayName: 'Show Build Info'
condition: and(succeeded(), eq(variables['info.shouldPublish'], 'true'))
Expand Down
21 changes: 0 additions & 21 deletions cli/LICENSE

This file was deleted.

13 changes: 9 additions & 4 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
"BIM",
"iModel"
],
"main": "./bin/pcf.js",
"bin": {
"pcf": "bin/pcf"
"engines": {
"node": ">=12.17.0 <15.0",
"npm": ">=6.0.0 <7.0.0"
},
"preferGlobal": true,
"homepage": "https://github.com/itwin/pcf",
"repository": {
"type": "git",
"url": "https://github.com/iTwin/pcf/tree/main/cli"
},
"main": "./bin/pcf.js",
"bin": {
"pcf": "bin/pcf"
},
"preferGlobal": true,
"scripts": {},
"dependencies": {
"chalk": "2.4.2",
Expand Down
21 changes: 0 additions & 21 deletions core/LICENSE

This file was deleted.

18 changes: 12 additions & 6 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@
"main": "lib/pcf.js",
"typings": "lib/pcf",
"license": "MIT",
"keywords": [
"Bentley",
"BIM",
"iModel"
],
"engines": {
"node": ">=12.17.0 <15.0"
"node": ">=12.17.0 <15.0",
"npm": ">=6.0.0 <7.0.0"
},
"homepage": "https://github.com/itwin/pcf",
"repository": {
"type": "git",
"url": "https://github.com/itwin/pcf"
},
"scripts": {
"build": "tsc && npm run copyFiles",
Expand All @@ -19,11 +30,6 @@
"deploy": "git push && npm run clean && npm run build && npm publish",
"docs": "betools docs"
},
"keywords": [
"Bentley",
"BIM",
"iModel"
],
"dependencies": {
"@bentley/backend-itwin-client": "2.16.10",
"@bentley/bentleyjs-core": "2.16.10",
Expand Down

0 comments on commit b24b969

Please sign in to comment.