Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove @xtermjs package scope #2180

Merged
merged 4 commits into from
Jun 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@xtermjs/addon-attach",
"version": "0.1.0-beta8",
"name": "xterm-addon-attach",
"version": "0.1.0-beta10",
"author": {
"name": "The xterm.js authors",
"url": "https://xtermjs.org/"
},
"main": "lib/AttachAddon.js",
"types": "typings/attach.d.ts",
"types": "typings/xterm-addon-attach.d.ts",
"license": "MIT",
"scripts": {
"prepublishOnly": "../../../node_modules/.bin/tsc -p src"
"prepublishOnly": "../../node_modules/.bin/tsc -p src"
},
"peerDependencies": {
"xterm": "^3.14.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"include": [
"./**/*",
"../../../../typings/xterm.d.ts"
"../../../typings/xterm.d.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { Terminal, ILinkMatcherOptions, ITerminalAddon } from 'xterm';

declare module '@xtermjs/addon-attach' {
declare module 'xterm-addon-attach' {
export interface IAttachOptions {
/**
* Whether input should be written to the backend. Defaults to `true`.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@xtermjs/addon-fit",
"version": "0.1.0-beta7",
"name": "xterm-addon-fit",
"version": "0.1.0-beta2",
"author": {
"name": "The xterm.js authors",
"url": "https://xtermjs.org/"
},
"main": "lib/FitAddon.js",
"types": "typings/fit.d.ts",
"types": "typings/xterm-addon-fit.d.ts",
"license": "MIT",
"scripts": {
"prepublishOnly": "../../../node_modules/.bin/tsc -p src"
"prepublishOnly": "../../node_modules/.bin/tsc -p src"
},
"peerDependencies": {
"xterm": "^3.14.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"include": [
"./**/*",
"../../../../typings/xterm.d.ts"
"../../../typings/xterm.d.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { Terminal, ITerminalAddon } from 'xterm';

declare module '@xtermjs/addon-fit' {
declare module 'xterm-addon-fit' {
/**
* An xterm.js addon that enables resizing the terminal to the dimensions of
* its containing element.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@xtermjs/addon-search",
"version": "0.1.0-beta4",
"name": "xterm-addon-search",
"version": "0.1.0-beta5",
"author": {
"name": "The xterm.js authors",
"url": "https://xtermjs.org/"
},
"main": "lib/SearchAddon.js",
"types": "typings/search.d.ts",
"types": "typings/xterm-addon-search.d.ts",
"license": "MIT",
"scripts": {
"prepublishOnly": "../../../node_modules/.bin/tsc -p src"
"prepublishOnly": "../../node_modules/.bin/tsc -p src"
},
"peerDependencies": {
"xterm": "^3.14.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
},
"include": [
"./**/*",
"../../../../typings/xterm.d.ts"
"../../../typings/xterm.d.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { Terminal, ILinkMatcherOptions, IDisposable, ITerminalAddon } from 'xterm';

declare module '@xtermjs/addon-search' {
declare module 'xterm-addon-search' {
/**
* Options for a search.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@xtermjs/addon-web-links",
"version": "0.1.0-beta7",
"name": "xterm-addon-web-links",
"version": "0.1.0-beta9",
"author": {
"name": "The xterm.js authors",
"url": "https://xtermjs.org/"
},
"main": "lib/WebLinksAddon.js",
"types": "typings/web-links.d.ts",
"types": "typings/xterm-addon-web-links.d.ts",
"license": "MIT",
"scripts": {
"prepublishOnly": "../../../node_modules/.bin/tsc -p src"
"prepublishOnly": "../../node_modules/.bin/tsc -p src"
},
"peerDependencies": {
"xterm": "^3.14.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"include": [
"./**/*",
"../../../../typings/xterm.d.ts"
"../../../typings/xterm.d.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
*/


import { Terminal, IDisposable, ILinkMatcherOptions } from 'xterm';

declare module '@xtermjs/addon-web-links' {
// TODO: This is temporary, link to xterm when the new version is published
export interface ITerminalAddon extends IDisposable {
activate(terminal: Terminal): void;
}
import { Terminal, ILinkMatcherOptions, ITerminalAddon } from 'xterm';

declare module 'xterm-addon-web-links' {
/**
* An xterm.js addon that enables web links.
*/
Expand Down
8 changes: 4 additions & 4 deletions demo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import { Terminal } from '../out/public/Terminal';
// Use webpacked version (yarn package)
// import { Terminal } from '../lib/xterm';

import { AttachAddon } from '@xtermjs/addon-attach';
import { FitAddon } from '@xtermjs/addon-fit';
import { SearchAddon, ISearchOptions } from '@xtermjs/addon-search';
import { WebLinksAddon } from '@xtermjs/addon-web-links';
import { AttachAddon } from 'xterm-addon-attach';
import { FitAddon } from 'xterm-addon-fit';
import { SearchAddon, ISearchOptions } from 'xterm-addon-search';
import { WebLinksAddon } from 'xterm-addon-web-links';

// Pulling in the module's types relies on the <reference> above, it's looks a
// little weird here as we're importing "this" module
Expand Down
8 changes: 4 additions & 4 deletions demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@xtermjs/addon-attach": ["../addons/@xtermjs/addon-attach"],
"@xtermjs/addon-fit": ["../addons/@xtermjs/addon-fit"],
"@xtermjs/addon-search": ["../addons/@xtermjs/addon-search"],
"@xtermjs/addon-web-links": ["../addons/@xtermjs/addon-web-links"]
"xterm-addon-attach": ["../addons/xterm-addon-attach"],
"xterm-addon-fit": ["../addons/xterm-addon-fit"],
"xterm-addon-search": ["../addons/xterm-addon-search"],
"xterm-addon-web-links": ["../addons/xterm-addon-web-links"]
}
},
"include": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prepare": "npm run build",
"prepublishOnly": "npm run package",
"watch": "tsc -b -w ./tsconfig.all.json --preserveWatchOutput",
"clean": "rm -rf lib out addons/@xtermjs/*/lib"
"clean": "rm -rf lib out addons/*/lib"
},
"devDependencies": {
"@types/chai": "^3.4.34",
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.all.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"include": [],
"references": [
{ "path": "./src" },
{ "path": "./addons/@xtermjs/addon-attach/src" },
{ "path": "./addons/@xtermjs/addon-fit/src" },
{ "path": "./addons/@xtermjs/addon-search/src" },
{ "path": "./addons/@xtermjs/addon-web-links/src" }
{ "path": "./addons/xterm-addon-attach/src" },
{ "path": "./addons/xterm-addon-fit/src" },
{ "path": "./addons/xterm-addon-search/src" },
{ "path": "./addons/xterm-addon-web-links/src" }
]
}