@microtronics/studio-cli 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +14 -7
- package/out/dependencies.d.ts.map +1 -1
- package/out/dependencies.js +3 -0
- package/package.json +63 -63
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## 0.3.5 (2024-11-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **studio-core:** trigger cache update to update the views ([fbc9a98](https://bitbucket.org/microtronics-core/vscode-studio/commits/fbc9a989989bd67383b0f3d9b5361f736683c65b))
|
|
9
|
+
|
|
10
|
+
## 0.3.4 (2024-11-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **studio-cli:** 'libraryDependency' entry was not created ([450463a](https://bitbucket.org/microtronics-core/vscode-studio/commits/450463ada1eb023fd0a8e5791133323c06acb052))
|
|
16
|
+
|
|
3
17
|
## 0.3.3 (2024-11-26)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -3,31 +3,38 @@
|
|
|
3
3
|
|
|
4
4
|
This tool assists in installing, packaging and publishing Microtronics Studio libraries and apps.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## Installation
|
|
7
7
|
|
|
8
|
-
[Node.js](https://nodejs.org
|
|
8
|
+
Make sure you have [Node.js](https://nodejs.org) installed. Then run:
|
|
9
|
+
|
|
10
|
+
```console
|
|
11
|
+
$ npm i -g @microtronics/studio-cli
|
|
12
|
+
```
|
|
9
13
|
|
|
10
14
|
## Usage
|
|
11
15
|
|
|
12
16
|
```console
|
|
13
|
-
$
|
|
14
|
-
$ npx @microtronics/studio-cli --version
|
|
17
|
+
$ studio-cli --version
|
|
15
18
|
```
|
|
19
|
+
For a reference on all the available `studio-cli` commands, run `studio-cli --help`
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Requirements
|
|
23
|
+
|
|
24
|
+
[Node.js](https://nodejs.org/en/) at least `20.x.x`.
|
|
25
|
+
|
|
16
26
|
|
|
17
27
|
## Development
|
|
18
28
|
|
|
19
29
|
Execute commands from the root dir
|
|
20
30
|
|
|
21
31
|
```console
|
|
22
|
-
$ npm install -w cli
|
|
23
|
-
$ cd cli
|
|
24
32
|
$ npm run watch:build # or `watch:test` to also build tests
|
|
25
33
|
```
|
|
26
34
|
|
|
27
35
|
Once the watcher is up and running, you can run out of sources with:
|
|
28
36
|
|
|
29
37
|
```console
|
|
30
|
-
$ cd cli
|
|
31
38
|
$ node studio-cli
|
|
32
39
|
```
|
|
33
40
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../src/dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAS,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMhC,eAAO,MAAM,QAAQ,oBAAoB,CAAC;AAE1C,yBAAiB,YAAY,CAAC;IAC7B;;;;OAIG;IACH,SAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,UAM7C;IAED;;;;;;OAMG;IACH,SAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,QAKvF;IAED;;;;;;OAMG;IACH,SAAsB,sBAAsB,CAC3C,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,OAAO,EACX,iBAAiB,GAAE,QAAQ,CAAC,YAAiB,EAC7C,WAAW,UAAQ,kCAgCnB;IAED;;;;;;;OAOG;IACH,S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R,EAAE,EAAE,OAAO,EACX,iBAAiB,GAAE,QAAQ,CAAC,YAAiB,EAC7C,WAAW,UAAQ,kCAgCnB;IAED;;;;;;;OAOG;IACH,SAAsB,qBAAqB,CAC1C,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,OAAO,EACX,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,oBActB;IAED;;;;;OAKG;IACH,SAAsB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAK9E;IAED;;;;;;OAMG;IACH,SAAsB,qBAAqB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,iBAYjH;IAED;;;;;;;;OAQG;IACH,SAAsB,iBAAiB,CACtC,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,OAAO,EACX,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,WAAW,UAAQ,GACjB,OAAO,CAAC,SAAS,CAAC,CA+DpB;IAED;;;;;OAKG;IACH,SAAsB,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,iBAapF;IAED;;;;;;;OAOG;IACH,SAAsB,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAmBxG;CACD"}
|
package/out/dependencies.js
CHANGED
|
@@ -207,6 +207,9 @@ var Dependencies;
|
|
|
207
207
|
const devDependencies = manifest.libraryDevDependencies || {};
|
|
208
208
|
const toAdd = development ? devDependencies : dependencies;
|
|
209
209
|
toAdd[publisherIdName] = `^${versionToDownload.name}`;
|
|
210
|
+
// re-assign dependency object in case it was newly created
|
|
211
|
+
manifest.libraryDependencies = dependencies;
|
|
212
|
+
manifest.libraryDevDependencies = devDependencies;
|
|
210
213
|
await manifest_1.Manifest.write(cwd, fs, manifest);
|
|
211
214
|
}
|
|
212
215
|
Dependencies.installDependency = installDependency;
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microtronics/studio-cli",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Microtronics Studio CLI Tool",
|
|
5
|
-
"main": "./out/api.js",
|
|
6
|
-
"typings": "./dist/studio-cli.d.ts",
|
|
7
|
-
"bin": {
|
|
8
|
-
"studio-cli": "studio-cli"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"release": "release-it --ci",
|
|
15
|
-
"compile": "npm run build:registryApiTypings && tsc",
|
|
16
|
-
"api": "api-extractor run --local --verbose",
|
|
17
|
-
"build": "npm run compile && npm run api",
|
|
18
|
-
"watch:build": "npm run compile -- --watch",
|
|
19
|
-
"test": "cross-env STUDIO_ENV=lucky mocha",
|
|
20
|
-
"test-ci": "cross-env STUDIO_ENV=lucky mocha --reporter mocha-junit-reporter",
|
|
21
|
-
"watch:test": "npm run test -- --watch",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"build:registryApiTypings": "npx openapi-typescript https://api.registry.stage.microtronics.com/v1/openapi.yaml -o ./src/typings/registry.ts"
|
|
24
|
-
},
|
|
25
|
-
"author": "Microtronics",
|
|
26
|
-
"license": "ISC",
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"commander": "^12.1.0",
|
|
29
|
-
"cross-fetch": "^4.0.0",
|
|
30
|
-
"openapi-fetch": "^0.13.0",
|
|
31
|
-
"pako": "^2.1.0",
|
|
32
|
-
"semver": "^7.6.3",
|
|
33
|
-
"tarballjs": "github:ankitrohatgi/tarballjs",
|
|
34
|
-
"tinytar-fix": "^0.1.1",
|
|
35
|
-
"vscode-uri": "^3.0.8"
|
|
36
|
-
},
|
|
37
|
-
"engines": {
|
|
38
|
-
"node": ">= 20"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@microsoft/api-extractor": "^7.47.11",
|
|
42
|
-
"@types/chai": "^4.3.6",
|
|
43
|
-
"@types/mocha": "^10.0.9",
|
|
44
|
-
"@types/node": "^22.9.1",
|
|
45
|
-
"@types/vscode": "^1.86.2",
|
|
46
|
-
"@types/semver": "^7.5.6",
|
|
47
|
-
"cross-env": "^7.0.3",
|
|
48
|
-
"chai": "^4.3.8",
|
|
49
|
-
"mocha": "^10.8.2",
|
|
50
|
-
"mocha-junit-reporter": "^2.2.1",
|
|
51
|
-
"openapi-typescript": "^7.4.3",
|
|
52
|
-
"ts-node": "^10.9.2",
|
|
53
|
-
"typescript": "^5.6.3"
|
|
54
|
-
},
|
|
55
|
-
"mocha": {
|
|
56
|
-
"require": [
|
|
57
|
-
"ts-node/register"
|
|
58
|
-
],
|
|
59
|
-
"watch-files": "src/**",
|
|
60
|
-
"spec": "./test/**/*.spec.ts",
|
|
61
|
-
"recursive": true
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microtronics/studio-cli",
|
|
3
|
+
"version": "0.3.5",
|
|
4
|
+
"description": "Microtronics Studio CLI Tool",
|
|
5
|
+
"main": "./out/api.js",
|
|
6
|
+
"typings": "./dist/studio-cli.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"studio-cli": "studio-cli"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"release": "release-it --ci",
|
|
15
|
+
"compile": "npm run build:registryApiTypings && tsc",
|
|
16
|
+
"api": "api-extractor run --local --verbose",
|
|
17
|
+
"build": "npm run compile && npm run api",
|
|
18
|
+
"watch:build": "npm run compile -- --watch",
|
|
19
|
+
"test": "cross-env STUDIO_ENV=lucky mocha",
|
|
20
|
+
"test-ci": "cross-env STUDIO_ENV=lucky mocha --reporter mocha-junit-reporter",
|
|
21
|
+
"watch:test": "npm run test -- --watch",
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"build:registryApiTypings": "npx openapi-typescript https://api.registry.stage.microtronics.com/v1/openapi.yaml -o ./src/typings/registry.ts"
|
|
24
|
+
},
|
|
25
|
+
"author": "Microtronics",
|
|
26
|
+
"license": "ISC",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"commander": "^12.1.0",
|
|
29
|
+
"cross-fetch": "^4.0.0",
|
|
30
|
+
"openapi-fetch": "^0.13.0",
|
|
31
|
+
"pako": "^2.1.0",
|
|
32
|
+
"semver": "^7.6.3",
|
|
33
|
+
"tarballjs": "github:ankitrohatgi/tarballjs",
|
|
34
|
+
"tinytar-fix": "^0.1.1",
|
|
35
|
+
"vscode-uri": "^3.0.8"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">= 20"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@microsoft/api-extractor": "^7.47.11",
|
|
42
|
+
"@types/chai": "^4.3.6",
|
|
43
|
+
"@types/mocha": "^10.0.9",
|
|
44
|
+
"@types/node": "^22.9.1",
|
|
45
|
+
"@types/vscode": "^1.86.2",
|
|
46
|
+
"@types/semver": "^7.5.6",
|
|
47
|
+
"cross-env": "^7.0.3",
|
|
48
|
+
"chai": "^4.3.8",
|
|
49
|
+
"mocha": "^10.8.2",
|
|
50
|
+
"mocha-junit-reporter": "^2.2.1",
|
|
51
|
+
"openapi-typescript": "^7.4.3",
|
|
52
|
+
"ts-node": "^10.9.2",
|
|
53
|
+
"typescript": "^5.6.3"
|
|
54
|
+
},
|
|
55
|
+
"mocha": {
|
|
56
|
+
"require": [
|
|
57
|
+
"ts-node/register"
|
|
58
|
+
],
|
|
59
|
+
"watch-files": "src/**",
|
|
60
|
+
"spec": "./test/**/*.spec.ts",
|
|
61
|
+
"recursive": true
|
|
62
|
+
}
|
|
63
|
+
}
|