Move primitives and runtime out of src/common/

Relocate src/common/primitives and src/common/runtime to src/primitives
and src/runtime. Add src/tsconfig.json as the primitives+runtime solution.
Update tsconfigs, esbuild, webpack aliases, publish path, and docs.

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-05-31 00:30:53 +00:00
co-authored by Daniel Imms
parent c569e5ab19
commit f22ef02831
144 changed files with 157 additions and 153 deletions
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -14,9 +14,8 @@
"paths": {
"target-browser/*": [ "../../../src/target-browser/*" ],
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"@xterm/addon-image": [ "../typings/addon-image.d.ts" ],
"*": [ "./*" ]
@@ -28,6 +27,6 @@
],
"references": [
{ "path": "../../../src/target-browser" },
{ "path": "../../../src/common" }
{ "path": "../../../src" }
]
}
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+4 -1
View File
@@ -25,7 +25,10 @@ const addon = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('../../out/common'),
common: [
path.resolve('../../out/runtime'),
path.resolve('../../out/primitives'),
],
browser: path.resolve('../../out/target-browser'),
vs: path.resolve('../../out/vs')
}
+3 -4
View File
@@ -16,9 +16,8 @@
],
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -37,7 +36,7 @@
"path": "../../../src/target-browser"
},
{
"path": "../../../src/common"
"path": "../../../src"
}
]
}
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+4 -1
View File
@@ -25,7 +25,10 @@ module.exports = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('../../out/common'),
common: [
path.resolve('../../out/runtime'),
path.resolve('../../out/primitives'),
],
browser: path.resolve('../../out/target-browser'),
vs: path.resolve('../../out/vs')
}
+3 -4
View File
@@ -16,9 +16,8 @@
],
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -34,7 +33,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+4 -1
View File
@@ -25,7 +25,10 @@ module.exports = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('../../out/common'),
common: [
path.resolve('../../out/runtime'),
path.resolve('../../out/primitives'),
],
vs: path.resolve('../../out/vs')
}
},
@@ -13,9 +13,8 @@
"module": "nodenext",
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": ["../../../src/target-browser/*"],
"SerializeAddon": ["../src/SerializeAddon"],
@@ -27,7 +26,7 @@
"include": ["../**/*", "../../../typings/xterm.d.ts"],
"exclude": ["../../../**/*test.ts", "../../**/*api.ts"],
"references": [
{ "path": "../../../src/common" },
{ "path": "../../../src" },
{ "path": "../../../src/target-browser" }
]
}
+3 -4
View File
@@ -12,9 +12,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -35,7 +34,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -30,7 +29,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+4 -1
View File
@@ -25,7 +25,10 @@ module.exports = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('../../out/common'),
common: [
path.resolve('../../out/runtime'),
path.resolve('../../out/primitives'),
],
browser: path.resolve('../../out/target-browser')
}
},
@@ -10,9 +10,8 @@
"module": "nodenext",
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": ["../../../src/target-browser/*"],
"UnicodeGraphemeProvider": ["../src/UnicodeGraphemeProvider"],
@@ -24,7 +23,7 @@
"include": ["../**/*", "../../../typings/xterm.d.ts"],
"exclude": ["../../../**/*test.ts", "../../**/*api.ts"],
"references": [
{ "path": "../../../src/common" },
{ "path": "../../../src" },
{ "path": "../../../src/target-browser" }
]
}
@@ -13,9 +13,8 @@
"strict": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"@xterm/addon-unicode-graphemes": [
"../typings/addon-unicode-graphemes.d.ts"
@@ -31,7 +30,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
}
]
}
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -30,7 +29,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
@@ -25,7 +25,10 @@ module.exports = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('../../out/common'),
common: [
path.resolve('../../out/runtime'),
path.resolve('../../out/primitives'),
],
vs: path.resolve('../../out/vs')
}
},
+3 -4
View File
@@ -13,9 +13,8 @@
"strict": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"@xterm/addon-unicode11": [
"../typings/addon-unicode11.d.ts"
@@ -34,7 +33,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
}
]
}
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+4 -1
View File
@@ -25,7 +25,10 @@ module.exports = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('../../out/common'),
common: [
path.resolve('../../out/runtime'),
path.resolve('../../out/primitives'),
],
vs: path.resolve('../../out/vs')
}
},
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -33,7 +32,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -12,9 +12,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -38,7 +37,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+3 -4
View File
@@ -11,9 +11,8 @@
"removeComments": true,
"paths": {
"common/*": [
"../../../src/common/primitives/*",
"../../../src/common/runtime/*",
"../../../src/common/*"
"../../../src/primitives/*",
"../../../src/runtime/*",
],
"target-browser/*": [
"../../../src/target-browser/*"
@@ -34,7 +33,7 @@
],
"references": [
{
"path": "../../../src/common"
"path": "../../../src"
},
{
"path": "../../../src/target-browser"
+4 -1
View File
@@ -25,7 +25,10 @@ module.exports = {
modules: ['./node_modules'],
extensions: [ '.js' ],
alias: {
common: path.resolve('../../out/common'),
common: [
path.resolve('../../out/runtime'),
path.resolve('../../out/primitives'),
],
browser: path.resolve('../../out/target-browser'),
vs: path.resolve('../../out/vs')
}