Skip to content

Commit

Permalink
Format examples package.json in accordance with lerna's expectations
Browse files Browse the repository at this point in the history
For the next release, lerna will be updating these package.json files.
This commit pre-formats them using 4 spaces indentation to avoid lerna
having to do it then, minimazing the changes in the next release, to
only effective version changes.

e.g. for an eventual major release, the diff would now look like:

diff --git a/examples/browser/package.json b/examples/browser/package.json
index 1b45638..2cbba3b 100644
--- a/examples/browser/package.json
+++ b/examples/browser/package.json
@@ -1,7 +1,7 @@
 {
     "private": true,
     "name": "browser-theia-trace-example-app",
-    "version": "0.1.0",
+    "version": "1.0.0",
     "theia": {
         "target": "browser",
         "frontend": {
@@ -29,7 +29,7 @@
         "@theia/terminal": "1.45.1",
         "@theia/vsx-registry": "1.45.1",
         "@theia/workspace": "1.45.1",
-        "theia-traceviewer": "0.2.0"
+        "theia-traceviewer": "1.0.0"
     },
     "devDependencies": {
         "@theia/cli": "1.45.1"

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
  • Loading branch information
marcdumais-work committed Mar 26, 2024
1 parent b782606 commit 2c395e9
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 111 deletions.
92 changes: 46 additions & 46 deletions examples/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"private": true,
"name": "browser-theia-trace-example-app",
"version": "0.1.0",
"theia": {
"target": "browser",
"frontend": {
"config": {
"applicationName": "Theia-Trace Example Application",
"preferences": {
"editor.autoSave": "on",
"trace-viewer.port": 8080
"private": true,
"name": "browser-theia-trace-example-app",
"version": "0.1.0",
"theia": {
"target": "browser",
"frontend": {
"config": {
"applicationName": "Theia-Trace Example Application",
"preferences": {
"editor.autoSave": "on",
"trace-viewer.port": 8080
}
}
}
}
}
},
"dependencies": {
"@theia/core": "1.45.1",
"@theia/editor": "1.45.1",
"@theia/filesystem": "1.45.1",
"@theia/getting-started": "1.45.1",
"@theia/keymaps": "1.45.1",
"@theia/markers": "1.45.1",
"@theia/messages": "1.45.1",
"@theia/monaco": "1.45.1",
"@theia/navigator": "1.45.1",
"@theia/preferences": "1.45.1",
"@theia/process": "1.45.1",
"@theia/terminal": "1.45.1",
"@theia/vsx-registry": "1.45.1",
"@theia/workspace": "1.45.1",
"theia-traceviewer": "0.2.0"
},
"devDependencies": {
"@theia/cli": "1.45.1"
},
"scripts": {
"prepare": "yarn build",
"build": "theia build --mode development",
"rebuild": "theia rebuild:browser --cacheRoot ../..",
"start": "TRACE_SERVER_PATH=../../trace-compass-server/tracecompass-server theia start --plugins=local-dir:../plugins",
"watch": "theia build --watch --mode development"
},
"engines": {
"yarn": ">=1.7.0 <2",
"node": ">=16 <19"
},
"theiaPluginsDir": "../plugins"
},
"dependencies": {
"@theia/core": "1.45.1",
"@theia/editor": "1.45.1",
"@theia/filesystem": "1.45.1",
"@theia/getting-started": "1.45.1",
"@theia/keymaps": "1.45.1",
"@theia/markers": "1.45.1",
"@theia/messages": "1.45.1",
"@theia/monaco": "1.45.1",
"@theia/navigator": "1.45.1",
"@theia/preferences": "1.45.1",
"@theia/process": "1.45.1",
"@theia/terminal": "1.45.1",
"@theia/vsx-registry": "1.45.1",
"@theia/workspace": "1.45.1",
"theia-traceviewer": "0.2.0"
},
"devDependencies": {
"@theia/cli": "1.45.1"
},
"scripts": {
"prepare": "yarn build",
"build": "theia build --mode development",
"rebuild": "theia rebuild:browser --cacheRoot ../..",
"start": "TRACE_SERVER_PATH=../../trace-compass-server/tracecompass-server theia start --plugins=local-dir:../plugins",
"watch": "theia build --watch --mode development"
},
"engines": {
"yarn": ">=1.7.0 <2",
"node": ">=16 <19"
},
"theiaPluginsDir": "../plugins"
}
130 changes: 65 additions & 65 deletions examples/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
{
"private": true,
"name": "electron-theia-trace-example-app",
"main": "scripts/theia-trace-main.js",
"version": "0.1.0",
"author": {
"name": "Trace Compass",
"email": "tracecompass-dev@eclipse.org"
},
"theia": {
"target": "electron",
"backend": {
"config": {
"startupTimeout": -1
}
"private": true,
"name": "electron-theia-trace-example-app",
"main": "scripts/theia-trace-main.js",
"version": "0.1.0",
"author": {
"name": "Trace Compass",
"email": "tracecompass-dev@eclipse.org"
},
"frontend": {
"config": {
"applicationName": "Theia-Trace Example Application",
"preferences": {
"editor.autoSave": "on",
"trace-viewer.port": 8080
"theia": {
"target": "electron",
"backend": {
"config": {
"startupTimeout": -1
}
},
"frontend": {
"config": {
"applicationName": "Theia-Trace Example Application",
"preferences": {
"editor.autoSave": "on",
"trace-viewer.port": 8080
}
}
}
}
}
},
"dependencies": {
"@theia/core": "1.45.1",
"@theia/editor": "1.45.1",
"@theia/electron": "1.45.1",
"@theia/filesystem": "1.45.1",
"@theia/getting-started": "1.45.1",
"@theia/keymaps": "1.45.1",
"@theia/markers": "1.45.1",
"@theia/messages": "1.45.1",
"@theia/monaco": "1.45.1",
"@theia/navigator": "1.45.1",
"@theia/preferences": "1.45.1",
"@theia/process": "1.45.1",
"@theia/terminal": "1.45.1",
"@theia/vsx-registry": "1.45.1",
"@theia/workspace": "1.45.1",
"theia-traceviewer": "0.2.0"
},
"devDependencies": {
"@theia/cli": "1.45.1",
"electron": "^23.2.4",
"electron-builder": "~23.6.0"
},
"scripts": {
"prepare": "yarn build",
"build": "theia build --mode development",
"rebuild": "theia rebuild:electron --cacheRoot ../..",
"start": "TRACE_SERVER_PATH=../../trace-compass-server/tracecompass-server theia start --plugins=local-dir:../plugins",
"watch": "theia build --watch --mode development",
"clean:dist": "rimraf dist",
"package": "yarn clean:dist && yarn rebuild && electron-builder",
"package:preview": "yarn clean:dist && yarn rebuild && electron-builder --dir"
},
"engines": {
"yarn": ">=1.7.0 <2",
"node": ">=16 <19"
},
"repository": {
"type": "git",
"url": "https://github.com/eclipse-cdt-cloud/theia-trace-extension"
},
"theiaPluginsDir": "../plugins"
},
"dependencies": {
"@theia/core": "1.45.1",
"@theia/editor": "1.45.1",
"@theia/electron": "1.45.1",
"@theia/filesystem": "1.45.1",
"@theia/getting-started": "1.45.1",
"@theia/keymaps": "1.45.1",
"@theia/markers": "1.45.1",
"@theia/messages": "1.45.1",
"@theia/monaco": "1.45.1",
"@theia/navigator": "1.45.1",
"@theia/preferences": "1.45.1",
"@theia/process": "1.45.1",
"@theia/terminal": "1.45.1",
"@theia/vsx-registry": "1.45.1",
"@theia/workspace": "1.45.1",
"theia-traceviewer": "0.2.0"
},
"devDependencies": {
"@theia/cli": "1.45.1",
"electron": "^23.2.4",
"electron-builder": "~23.6.0"
},
"scripts": {
"prepare": "yarn build",
"build": "theia build --mode development",
"rebuild": "theia rebuild:electron --cacheRoot ../..",
"start": "TRACE_SERVER_PATH=../../trace-compass-server/tracecompass-server theia start --plugins=local-dir:../plugins",
"watch": "theia build --watch --mode development",
"clean:dist": "rimraf dist",
"package": "yarn clean:dist && yarn rebuild && electron-builder",
"package:preview": "yarn clean:dist && yarn rebuild && electron-builder --dir"
},
"engines": {
"yarn": ">=1.7.0 <2",
"node": ">=16 <19"
},
"repository": {
"type": "git",
"url": "https://github.com/eclipse-cdt-cloud/theia-trace-extension"
},
"theiaPluginsDir": "../plugins"
}

0 comments on commit 2c395e9

Please sign in to comment.