From 5122f88445de7fc8dfee7e2173e7f4439584cf94 Mon Sep 17 00:00:00 2001 From: xudafeng Date: Thu, 6 Feb 2025 18:23:44 +0800 Subject: [PATCH] refactor: change dir name --- mana/packages/mana-common/.eslintrc.js | 8 - mana/packages/mana-common/.fatherrc.ts | 9 - mana/packages/mana-common/CHANGELOG.md | 247 ------------------ mana/packages/mana-common/README.md | 1 - mana/packages/mana-common/babel.config.json | 3 - mana/packages/mana-common/jest.config.js | 3 - mana/packages/mana-common/package.json | 56 ---- mana/packages/mana-common/tsconfig.json | 11 - .../libro-common/src/mana-common}/assert.ts | 0 .../src/mana-common}/cancellation.spec.ts | 4 +- .../src/mana-common}/cancellation.ts | 2 +- .../libro-common/src/mana-common}/charCode.ts | 0 .../src/mana-common}/collections.ts | 0 .../libro-common/src/mana-common}/deferred.ts | 0 .../src/mana-common}/disposable-collection.ts | 4 +- .../src/mana-common}/disposable.spec.ts | 4 +- .../src/mana-common}/disposable.ts | 0 .../src/mana-common}/event.spec.ts | 2 +- .../libro-common/src/mana-common}/event.ts | 0 .../libro-common/src/mana-common}/index.ts | 0 .../libro-common/src/mana-common}/iterator.ts | 0 .../src/mana-common}/linkedList.ts | 0 .../libro-common/src/mana-common}/objects.ts | 0 .../src/mana-common}/observable-disposable.ts | 0 .../src/mana-common}/path.spec.ts | 2 +- .../libro-common/src/mana-common}/path.ts | 0 .../libro-common/src/mana-common}/platform.ts | 0 .../libro-common/src/mana-common}/priority.ts | 0 .../src/mana-common}/promise-util.spec.ts | 6 +- .../src/mana-common}/promise-util.ts | 0 .../src/mana-common}/stopwatch.ts | 0 .../libro-common/src/mana-common}/strings.ts | 0 .../src/mana-common}/types.spec.ts | 0 .../libro-common/src/mana-common}/types.ts | 0 .../libro-common/src/mana-common}/uint.ts | 0 .../libro-common/src/mana-common}/uri.spec.ts | 2 +- .../libro-common/src/mana-common}/uri.ts | 0 .../src/mana-common}/utils.spec.ts | 2 +- .../libro-common/src/mana-common}/utils.ts | 0 .../src/mana-common}/valueTypes.ts | 0 .../src/mana-common}/vscode-uri/char-code.ts | 0 .../src/mana-common}/vscode-uri/index.ts | 6 +- .../src/mana-common}/vscode-uri/platform.ts | 0 .../src/mana-common}/vscode-uri/uri.ts | 4 +- .../src/mana-common}/vscode-uri/utils.ts | 4 +- .../src/mana-common}/wait-until-event.spec.ts | 6 +- .../src/mana-common}/wait-until-event.ts | 0 47 files changed, 24 insertions(+), 362 deletions(-) delete mode 100644 mana/packages/mana-common/.eslintrc.js delete mode 100644 mana/packages/mana-common/.fatherrc.ts delete mode 100644 mana/packages/mana-common/CHANGELOG.md delete mode 100644 mana/packages/mana-common/README.md delete mode 100644 mana/packages/mana-common/babel.config.json delete mode 100644 mana/packages/mana-common/jest.config.js delete mode 100644 mana/packages/mana-common/package.json delete mode 100644 mana/packages/mana-common/tsconfig.json rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/assert.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/cancellation.spec.ts (98%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/cancellation.ts (98%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/charCode.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/collections.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/deferred.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/disposable-collection.ts (96%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/disposable.spec.ts (95%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/disposable.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/event.spec.ts (99%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/event.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/index.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/iterator.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/linkedList.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/objects.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/observable-disposable.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/path.spec.ts (97%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/path.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/platform.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/priority.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/promise-util.spec.ts (93%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/promise-util.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/stopwatch.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/strings.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/types.spec.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/types.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/uint.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/uri.spec.ts (98%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/uri.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/utils.spec.ts (90%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/utils.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/valueTypes.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/vscode-uri/char-code.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/vscode-uri/index.ts (79%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/vscode-uri/platform.ts (100%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/vscode-uri/uri.ts (99%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/vscode-uri/utils.ts (98%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/wait-until-event.spec.ts (94%) rename {mana/packages/mana-common/src => packages/libro-common/src/mana-common}/wait-until-event.ts (100%) diff --git a/mana/packages/mana-common/.eslintrc.js b/mana/packages/mana-common/.eslintrc.js deleted file mode 100644 index 72b9803b..00000000 --- a/mana/packages/mana-common/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - root: true, - extends: [require.resolve('../../.eslintrc.js')], - rules: { - '@typescript-eslint/no-namespace': 'off', - '@typescript-eslint/no-redeclare': 'off', - }, -}; diff --git a/mana/packages/mana-common/.fatherrc.ts b/mana/packages/mana-common/.fatherrc.ts deleted file mode 100644 index 43c22f2f..00000000 --- a/mana/packages/mana-common/.fatherrc.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default { - platform: 'browser', - esm: { - output: 'es', - }, - cjs: { - output: 'lib', - }, -}; diff --git a/mana/packages/mana-common/CHANGELOG.md b/mana/packages/mana-common/CHANGELOG.md deleted file mode 100644 index 6c36bb3f..00000000 --- a/mana/packages/mana-common/CHANGELOG.md +++ /dev/null @@ -1,247 +0,0 @@ -# @difizen/mana-common - -## 0.1.32 - -### Patch Changes - -- [#88](https://github.com/difizen/mana/pull/88) [`efec026`](https://github.com/difizen/mana/commit/efec02698841de45108da24897040b528d2c3ec2) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - feat: add onWillStart hook for ApplicationComponent - -## 0.1.31 - -### Patch Changes - -- [#79](https://github.com/difizen/mana/pull/79) [`0365365`](https://github.com/difizen/mana/commit/03653659a7400430493903e33f44dc2f048576df) Thanks [@lulusir](https://github.com/lulusir)! - fix: localStorage is not defined. - -## 0.1.30 - -### Patch Changes - -- [#76](https://github.com/difizen/mana/pull/76) [`14ea61a`](https://github.com/difizen/mana/commit/14ea61ac7ecc717b3091687b9ea4ac0aaf1e6ecf) Thanks [@BroKun](https://github.com/BroKun)! - Use a consistent version. - -- [#78](https://github.com/difizen/mana/pull/78) [`92f3efc`](https://github.com/difizen/mana/commit/92f3efcc9852ff7230d9e029e25fdacd9d529d55) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix text color for some components - -## 0.1.28 - -### Patch Changes - -- [#71](https://github.com/difizen/mana/pull/71) [`24b70a0`](https://github.com/difizen/mana/commit/24b70a036be7f4d85548db720ea5859b5a3e5b41) Thanks [@BroKun](https://github.com/BroKun)! - [syringe] Developing multi-instance data structures becomes easier with auto factory. - -## 0.1.27 - -### Patch Changes - -- [#62](https://github.com/difizen/mana/pull/62) [`812915f`](https://github.com/difizen/mana/commit/812915f4681c44982cefa5800d6f11ec27a81a20) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix(umi-plugin): update mana runtime plugin dir name - -## 0.1.26 - -### Patch Changes - -- [#60](https://github.com/difizen/mana/pull/60) [`a23732f`](https://github.com/difizen/mana/commit/a23732f365a76f719ac59f2c87de3920f70b1dd7) Thanks [@zhanba](https://github.com/zhanba)! - fix: support query parse in uri - -## 0.1.25 - -### Patch Changes - -- [#58](https://github.com/difizen/mana/pull/58) [`df976cb`](https://github.com/difizen/mana/commit/df976cba6bcf49b979dc001ffe68b4e0953522ff) Thanks [@BroKun](https://github.com/BroKun)! - Theme support empty prefix - -## 0.1.24 - -### Patch Changes - -- [#56](https://github.com/difizen/mana/pull/56) [`02f92a6`](https://github.com/difizen/mana/commit/02f92a6da23fc653e52c0192c3547ed956a44a22) Thanks [@BroKun](https://github.com/BroKun)! - Support custom css variable prefix - -## 0.1.23 - -### Patch Changes - -- [#53](https://github.com/difizen/mana/pull/53) [`c76098a`](https://github.com/difizen/mana/commit/c76098abd7eeae0ea7885d00402a47e15197e2a0) Thanks [@BroKun](https://github.com/BroKun)! - Fix slot view initialization in some cases. - -- [#53](https://github.com/difizen/mana/pull/53) [`c24e597`](https://github.com/difizen/mana/commit/c24e5974abd064d3af1d27f321745daa48183a74) Thanks [@BroKun](https://github.com/BroKun)! - Export color protocol. - -- [#53](https://github.com/difizen/mana/pull/53) [`8174a13`](https://github.com/difizen/mana/commit/8174a1355b9aca974d7ba68fc6087aef923b757c) Thanks [@BroKun](https://github.com/BroKun)! - Always serialize when storing. - -- [#53](https://github.com/difizen/mana/pull/53) [`06bdadd`](https://github.com/difizen/mana/commit/06bdadd00e143151c0b25f63354dab3579d5ee1f) Thanks [@BroKun](https://github.com/BroKun)! - Use modal service api without full modal item - -## 0.1.22 - -### Patch Changes - -- ec0b517: Fix core module compatibility - -## 0.1.21 - -### Patch Changes - -- 007af7f: Dark mode support for menu. -- 32133c3: Add notification feature. - -## 0.1.20 - -### Patch Changes - -- 690a2aa: Added umi plug-in, now you can use mana in umi project more easily. - -## 0.1.19 - -### Patch Changes - -- 43f310a: Remove global style css - -## 0.1.18 - -### Patch Changes - -- 02ef50f: basic styles no longer affect global styles. - -## 0.1.17 - -### Patch Changes - -- 1acf757: feat: add onInitialized hooks for ApplicationComponent - -## 0.1.16 - -### Patch Changes - -- 84f7cd8: No longer import font-awesome styles through less file. - -## 0.1.15 - -### Patch Changes - -- 95eb30c: chore: add father config - -## 0.1.14 - -### Patch Changes - -- 1b880fe: fix: attributes in ContributionOptionConfig - -## 0.1.13 - -### Patch Changes - -- 76745bd: feat: add ContributionOptionConfig - -## 0.1.12 - -### Patch Changes - -- 8eee617: chore: update the peerDependencies about react - -## 0.1.11 - -### Patch Changes - -- 6fb1d96: mana-observable: Allows defining properties that should not be observed. -- 67e2969: Add mana-ui package -- c1cf9c7: Compatible with disposable-collection old API - -## 0.1.10 - -### Patch Changes - -- 9f85eb3: App: No longer use proxy to operate tree nodes to improve performance. -- 5c2f9f3: Workaround on Illegal invocation errors -- 1e70032: Fix: Object.prototype methods should not be called directly on the object -- 4cb40cf: Avoid adjacent dividing lines in menus. -- f090577: No longer proxies access to forzen objects -- 9fed876: Allow custom modal rendering logic. -- 395394b: Observable: Allows users to add custom exclusion rules for observable transformations -- 36bd4ee: Readonly & non-configurable property should return the actual value - -## 0.1.9 - -### Patch Changes - -- b5ec5a9: Fix: Divider display between menu groups. -- 4d9bc01: 1. Once a menu is activated, clicking it again will no longer deactivate it. 2. Even with proxy objects, the original notifier can be found. -- 4722513: The file tree can be accessed contextually via the file tree menu - -## 0.1.8 - -### Patch Changes - -- 9c87e44: 1. Once a menu is activated, clicking it again will no longer deactivate it. 2. Even with proxy objects, the original notifier can be found. - -## 0.1.7 - -### Patch Changes - -- 1650890: add simple mode for uri which not escape & unescape - -## 0.1.6 - -### Patch Changes - -- b6bac8e: add vscode uri and add parameters in parse function - -## 0.1.5 - -### Patch Changes - -- 530df5c: Get notifier before observable transform. - -## 0.1.4 - -### Patch Changes - -- d36870f: 1. Add slot related events. 2. Add implementation of basic stateful views. - -## 0.1.3 - -### Patch Changes - -- Performance optimization of view rendering and issue fixing of file tree - -## 0.1.2 - -### Patch Changes - -- 1. [observable] Do not track dom element object. - -## 0.1.1 - -### Patch Changes - -- 1. [observable] Optimize the handling of frozen objects and some built-in types. - 2. [observable] Support pausing property change events. - 3. Support tab props & support multi-parameter method to handle menu status. - -## 0.1.0 - -### Minor Changes - -- - [observable] remove `Reactable` and use `notifier` as message trigger. - - [observable] better event handling. - - [syringe] the syringe module now supports setting dependencies. - -### Patch Changes - -- c137209: 1. (core) add onActiveChange event in DefaultSlotView. 2. (observable) update - Notifier api & increased coverage. -- c9b0853: 1. The syringe module now supports setting dependencies. 2. Observable has - been refactored with fewer entities and better event handling. 3. Fixed some other - issues and improved code quality. -- 3f50036: Initial Version - -## 0.0.2-alpha.3 - -### Patch Changes - -- 1. (core) add onActiveChange event in DefaultSlotView. - 2. (observable) update Notifier api & increased coverage. - -## 0.0.2-alpha.2 - -### Patch Changes - -- 1. The syringe module now supports setting dependencies. - 2. Observable has been refactored with fewer entities and better event handling. - 3. Fixed some other issues and improved code quality. - -## 0.0.2-alpha.1 - -### Patch Changes - -- Initial Version diff --git a/mana/packages/mana-common/README.md b/mana/packages/mana-common/README.md deleted file mode 100644 index 3ab33aa9..00000000 --- a/mana/packages/mana-common/README.md +++ /dev/null @@ -1 +0,0 @@ -# mana-common diff --git a/mana/packages/mana-common/babel.config.json b/mana/packages/mana-common/babel.config.json deleted file mode 100644 index 3313ff9e..00000000 --- a/mana/packages/mana-common/babel.config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["@babel/preset-env", "@babel/preset-typescript"] -} diff --git a/mana/packages/mana-common/jest.config.js b/mana/packages/mana-common/jest.config.js deleted file mode 100644 index a129a34b..00000000 --- a/mana/packages/mana-common/jest.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const configs = require('../../jest.config'); - -module.exports = configs; diff --git a/mana/packages/mana-common/package.json b/mana/packages/mana-common/package.json deleted file mode 100644 index d835358b..00000000 --- a/mana/packages/mana-common/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@difizen/mana-common", - "version": "0.1.32", - "sideEffects": false, - "description": "", - "keywords": [ - "mana", - "difizen", - "utils" - ], - "license": "MIT", - "exports": { - ".": { - "import": { - "typings": "./es/index.d.ts", - "default": "./es/index.js" - }, - "require": { - "typings": "./lib/index.d.ts", - "default": "./lib/index.js" - } - }, - "./package.json": "./package.json" - }, - "main": "lib/index.js", - "module": "es/index.js", - "typings": "lib/index.d.ts", - "files": [ - "lib", - "es", - "src" - ], - "scripts": { - "setup": "father build", - "build": "father build", - "test": ": Note: lint task is delegated to test:* scripts", - "test:vitest": "vitest run", - "test:jest": "jest", - "coverage": ": Note: lint task is delegated to coverage:* scripts", - "coverage:vitest": "vitest run --coverage", - "coverage:jest": "jest --coverage", - "lint": ": Note: lint task is delegated to lint:* scripts", - "lint:eslint": "eslint src", - "lint:tsc": "tsc --noEmit" - }, - "dependencies": { - "path-browserify": "^1.0.0" - }, - "devDependencies": { - "@types/path-browserify": "^1.0.0", - "rimraf": "latest" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/mana/packages/mana-common/tsconfig.json b/mana/packages/mana-common/tsconfig.json deleted file mode 100644 index c9da781c..00000000 --- a/mana/packages/mana-common/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "rootDir": "./src", - "outDir": "es", - "declarationDir": "es" - }, - "types": ["jest"], - "exclude": ["node_modules"], - "include": ["src"] -} diff --git a/mana/packages/mana-common/src/assert.ts b/packages/libro-common/src/mana-common/assert.ts similarity index 100% rename from mana/packages/mana-common/src/assert.ts rename to packages/libro-common/src/mana-common/assert.ts diff --git a/mana/packages/mana-common/src/cancellation.spec.ts b/packages/libro-common/src/mana-common/cancellation.spec.ts similarity index 98% rename from mana/packages/mana-common/src/cancellation.spec.ts rename to packages/libro-common/src/mana-common/cancellation.spec.ts index a00e118a..32f069a3 100644 --- a/mana/packages/mana-common/src/cancellation.spec.ts +++ b/packages/libro-common/src/mana-common/cancellation.spec.ts @@ -6,8 +6,8 @@ import { cancelled, checkCancelled, isCancelled, -} from './'; -import { Deferred } from './'; +} from '.'; +import { Deferred } from '.'; describe('cancellation', () => { const waitTime = (number = 100) => { diff --git a/mana/packages/mana-common/src/cancellation.ts b/packages/libro-common/src/mana-common/cancellation.ts similarity index 98% rename from mana/packages/mana-common/src/cancellation.ts rename to packages/libro-common/src/mana-common/cancellation.ts index 68608332..831b0b39 100644 --- a/mana/packages/mana-common/src/cancellation.ts +++ b/packages/libro-common/src/mana-common/cancellation.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. See https://github.com/Microsoft/vscode/blob/master/LICENSE.txt for license information. *--------------------------------------------------------------------------------------------*/ -import { Event, Emitter } from './event'; +import { Event, Emitter } from './src/event.js'; export type CancellationToken = { readonly isCancellationRequested: boolean; diff --git a/mana/packages/mana-common/src/charCode.ts b/packages/libro-common/src/mana-common/charCode.ts similarity index 100% rename from mana/packages/mana-common/src/charCode.ts rename to packages/libro-common/src/mana-common/charCode.ts diff --git a/mana/packages/mana-common/src/collections.ts b/packages/libro-common/src/mana-common/collections.ts similarity index 100% rename from mana/packages/mana-common/src/collections.ts rename to packages/libro-common/src/mana-common/collections.ts diff --git a/mana/packages/mana-common/src/deferred.ts b/packages/libro-common/src/mana-common/deferred.ts similarity index 100% rename from mana/packages/mana-common/src/deferred.ts rename to packages/libro-common/src/mana-common/deferred.ts diff --git a/mana/packages/mana-common/src/disposable-collection.ts b/packages/libro-common/src/mana-common/disposable-collection.ts similarity index 96% rename from mana/packages/mana-common/src/disposable-collection.ts rename to packages/libro-common/src/mana-common/disposable-collection.ts index d7765907..9e4909a4 100644 --- a/mana/packages/mana-common/src/disposable-collection.ts +++ b/packages/libro-common/src/mana-common/disposable-collection.ts @@ -1,6 +1,6 @@ import { Disposable } from './disposable'; -import type { Event } from './event'; -import { Emitter } from './event'; +import type { Event } from './src/event.js'; +import { Emitter } from './src/event.js'; export class DisposableCollection implements Disposable { protected readonly disposables: Disposable[]; diff --git a/mana/packages/mana-common/src/disposable.spec.ts b/packages/libro-common/src/mana-common/disposable.spec.ts similarity index 95% rename from mana/packages/mana-common/src/disposable.spec.ts rename to packages/libro-common/src/mana-common/disposable.spec.ts index 3b8f6be8..593d5346 100644 --- a/mana/packages/mana-common/src/disposable.spec.ts +++ b/packages/libro-common/src/mana-common/disposable.spec.ts @@ -1,7 +1,7 @@ import assert from 'assert'; -import { Deferred, Disposable, noop } from './'; -import { DisposableCollection } from './'; +import { Deferred, Disposable, noop } from '.'; +import { DisposableCollection } from '.'; describe('disposable', () => { it('#Disposable is', () => { diff --git a/mana/packages/mana-common/src/disposable.ts b/packages/libro-common/src/mana-common/disposable.ts similarity index 100% rename from mana/packages/mana-common/src/disposable.ts rename to packages/libro-common/src/mana-common/disposable.ts diff --git a/mana/packages/mana-common/src/event.spec.ts b/packages/libro-common/src/mana-common/event.spec.ts similarity index 99% rename from mana/packages/mana-common/src/event.spec.ts rename to packages/libro-common/src/mana-common/event.spec.ts index df0faa16..e19fd33e 100644 --- a/mana/packages/mana-common/src/event.spec.ts +++ b/packages/libro-common/src/mana-common/event.spec.ts @@ -3,7 +3,7 @@ import assert from 'assert'; import type { Disposable } from '.'; import { noop } from '.'; import { Deferred } from '.'; -import { Emitter, Event } from './'; +import { Emitter, Event } from '.'; describe('event', () => { describe('Event', () => { diff --git a/mana/packages/mana-common/src/event.ts b/packages/libro-common/src/mana-common/event.ts similarity index 100% rename from mana/packages/mana-common/src/event.ts rename to packages/libro-common/src/mana-common/event.ts diff --git a/mana/packages/mana-common/src/index.ts b/packages/libro-common/src/mana-common/index.ts similarity index 100% rename from mana/packages/mana-common/src/index.ts rename to packages/libro-common/src/mana-common/index.ts diff --git a/mana/packages/mana-common/src/iterator.ts b/packages/libro-common/src/mana-common/iterator.ts similarity index 100% rename from mana/packages/mana-common/src/iterator.ts rename to packages/libro-common/src/mana-common/iterator.ts diff --git a/mana/packages/mana-common/src/linkedList.ts b/packages/libro-common/src/mana-common/linkedList.ts similarity index 100% rename from mana/packages/mana-common/src/linkedList.ts rename to packages/libro-common/src/mana-common/linkedList.ts diff --git a/mana/packages/mana-common/src/objects.ts b/packages/libro-common/src/mana-common/objects.ts similarity index 100% rename from mana/packages/mana-common/src/objects.ts rename to packages/libro-common/src/mana-common/objects.ts diff --git a/mana/packages/mana-common/src/observable-disposable.ts b/packages/libro-common/src/mana-common/observable-disposable.ts similarity index 100% rename from mana/packages/mana-common/src/observable-disposable.ts rename to packages/libro-common/src/mana-common/observable-disposable.ts diff --git a/mana/packages/mana-common/src/path.spec.ts b/packages/libro-common/src/mana-common/path.spec.ts similarity index 97% rename from mana/packages/mana-common/src/path.spec.ts rename to packages/libro-common/src/mana-common/path.spec.ts index 8962054a..0581efec 100644 --- a/mana/packages/mana-common/src/path.spec.ts +++ b/packages/libro-common/src/mana-common/path.spec.ts @@ -1,6 +1,6 @@ import assert from 'assert'; -import { Path } from './'; +import { Path } from '.'; describe('Path util', () => { it('#normalizeDrive', async () => { diff --git a/mana/packages/mana-common/src/path.ts b/packages/libro-common/src/mana-common/path.ts similarity index 100% rename from mana/packages/mana-common/src/path.ts rename to packages/libro-common/src/mana-common/path.ts diff --git a/mana/packages/mana-common/src/platform.ts b/packages/libro-common/src/mana-common/platform.ts similarity index 100% rename from mana/packages/mana-common/src/platform.ts rename to packages/libro-common/src/mana-common/platform.ts diff --git a/mana/packages/mana-common/src/priority.ts b/packages/libro-common/src/mana-common/priority.ts similarity index 100% rename from mana/packages/mana-common/src/priority.ts rename to packages/libro-common/src/mana-common/priority.ts diff --git a/mana/packages/mana-common/src/promise-util.spec.ts b/packages/libro-common/src/mana-common/promise-util.spec.ts similarity index 93% rename from mana/packages/mana-common/src/promise-util.spec.ts rename to packages/libro-common/src/mana-common/promise-util.spec.ts index 3aa0f179..7307ff2d 100644 --- a/mana/packages/mana-common/src/promise-util.spec.ts +++ b/packages/libro-common/src/mana-common/promise-util.spec.ts @@ -1,8 +1,8 @@ import assert from 'assert'; -import { timeout, retry } from './'; -import { CancellationTokenSource } from './'; -import { Deferred } from './'; +import { timeout, retry } from '.'; +import { CancellationTokenSource } from '.'; +import { Deferred } from '.'; describe('promise util', () => { it('#timeout', async () => { diff --git a/mana/packages/mana-common/src/promise-util.ts b/packages/libro-common/src/mana-common/promise-util.ts similarity index 100% rename from mana/packages/mana-common/src/promise-util.ts rename to packages/libro-common/src/mana-common/promise-util.ts diff --git a/mana/packages/mana-common/src/stopwatch.ts b/packages/libro-common/src/mana-common/stopwatch.ts similarity index 100% rename from mana/packages/mana-common/src/stopwatch.ts rename to packages/libro-common/src/mana-common/stopwatch.ts diff --git a/mana/packages/mana-common/src/strings.ts b/packages/libro-common/src/mana-common/strings.ts similarity index 100% rename from mana/packages/mana-common/src/strings.ts rename to packages/libro-common/src/mana-common/strings.ts diff --git a/mana/packages/mana-common/src/types.spec.ts b/packages/libro-common/src/mana-common/types.spec.ts similarity index 100% rename from mana/packages/mana-common/src/types.spec.ts rename to packages/libro-common/src/mana-common/types.spec.ts diff --git a/mana/packages/mana-common/src/types.ts b/packages/libro-common/src/mana-common/types.ts similarity index 100% rename from mana/packages/mana-common/src/types.ts rename to packages/libro-common/src/mana-common/types.ts diff --git a/mana/packages/mana-common/src/uint.ts b/packages/libro-common/src/mana-common/uint.ts similarity index 100% rename from mana/packages/mana-common/src/uint.ts rename to packages/libro-common/src/mana-common/uint.ts diff --git a/mana/packages/mana-common/src/uri.spec.ts b/packages/libro-common/src/mana-common/uri.spec.ts similarity index 98% rename from mana/packages/mana-common/src/uri.spec.ts rename to packages/libro-common/src/mana-common/uri.spec.ts index 6d03c9aa..c7bb1a66 100644 --- a/mana/packages/mana-common/src/uri.spec.ts +++ b/packages/libro-common/src/mana-common/uri.spec.ts @@ -2,7 +2,7 @@ import assert from 'assert'; import { VscodeURI } from './vscode-uri'; -import { URI } from './'; +import { URI } from '.'; describe('URI', () => { it('#toSting', async () => { diff --git a/mana/packages/mana-common/src/uri.ts b/packages/libro-common/src/mana-common/uri.ts similarity index 100% rename from mana/packages/mana-common/src/uri.ts rename to packages/libro-common/src/mana-common/uri.ts diff --git a/mana/packages/mana-common/src/utils.spec.ts b/packages/libro-common/src/mana-common/utils.spec.ts similarity index 90% rename from mana/packages/mana-common/src/utils.spec.ts rename to packages/libro-common/src/mana-common/utils.spec.ts index f17f40c2..097ee199 100644 --- a/mana/packages/mana-common/src/utils.spec.ts +++ b/packages/libro-common/src/mana-common/utils.spec.ts @@ -1,6 +1,6 @@ import assert from 'assert'; -import { isPlainObject, getPropertyDescriptor } from './'; +import { isPlainObject, getPropertyDescriptor } from '.'; describe('Utils', () => { it('#plainObject', async () => { diff --git a/mana/packages/mana-common/src/utils.ts b/packages/libro-common/src/mana-common/utils.ts similarity index 100% rename from mana/packages/mana-common/src/utils.ts rename to packages/libro-common/src/mana-common/utils.ts diff --git a/mana/packages/mana-common/src/valueTypes.ts b/packages/libro-common/src/mana-common/valueTypes.ts similarity index 100% rename from mana/packages/mana-common/src/valueTypes.ts rename to packages/libro-common/src/mana-common/valueTypes.ts diff --git a/mana/packages/mana-common/src/vscode-uri/char-code.ts b/packages/libro-common/src/mana-common/vscode-uri/char-code.ts similarity index 100% rename from mana/packages/mana-common/src/vscode-uri/char-code.ts rename to packages/libro-common/src/mana-common/vscode-uri/char-code.ts diff --git a/mana/packages/mana-common/src/vscode-uri/index.ts b/packages/libro-common/src/mana-common/vscode-uri/index.ts similarity index 79% rename from mana/packages/mana-common/src/vscode-uri/index.ts rename to packages/libro-common/src/mana-common/vscode-uri/index.ts index 134cd453..532adeff 100644 --- a/mana/packages/mana-common/src/vscode-uri/index.ts +++ b/packages/libro-common/src/mana-common/vscode-uri/index.ts @@ -3,9 +3,9 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { URI } from './uri'; -import type { UriComponents } from './uri'; -import { Utils } from './utils'; +import { URI } from './uri.js'; +import type { UriComponents } from './uri.js'; +import { Utils } from './utils.js'; export { URI as VscodeURI, Utils as VscodeUriUtils }; export type { UriComponents }; diff --git a/mana/packages/mana-common/src/vscode-uri/platform.ts b/packages/libro-common/src/mana-common/vscode-uri/platform.ts similarity index 100% rename from mana/packages/mana-common/src/vscode-uri/platform.ts rename to packages/libro-common/src/mana-common/vscode-uri/platform.ts diff --git a/mana/packages/mana-common/src/vscode-uri/uri.ts b/packages/libro-common/src/mana-common/vscode-uri/uri.ts similarity index 99% rename from mana/packages/mana-common/src/vscode-uri/uri.ts rename to packages/libro-common/src/mana-common/vscode-uri/uri.ts index 53050448..372afc12 100644 --- a/mana/packages/mana-common/src/vscode-uri/uri.ts +++ b/packages/libro-common/src/mana-common/vscode-uri/uri.ts @@ -4,8 +4,8 @@ *--------------------------------------------------------------------------------------------*/ 'use strict'; -import { CharCode } from './char-code'; -import { isWindows } from './platform'; +import { CharCode } from './char-code.js'; +import { isWindows } from './platform.js'; const _schemePattern = /^\w[\w\d+.-]*$/; const _singleSlashStart = /^\//; diff --git a/mana/packages/mana-common/src/vscode-uri/utils.ts b/packages/libro-common/src/mana-common/vscode-uri/utils.ts similarity index 98% rename from mana/packages/mana-common/src/vscode-uri/utils.ts rename to packages/libro-common/src/mana-common/vscode-uri/utils.ts index 731af354..ec2a0a7e 100644 --- a/mana/packages/mana-common/src/vscode-uri/utils.ts +++ b/packages/libro-common/src/mana-common/vscode-uri/utils.ts @@ -5,8 +5,8 @@ import { posix } from 'path-browserify'; -import { CharCode } from './char-code'; -import type { URI } from './uri'; +import { CharCode } from './char-code.js'; +import type { URI } from './uri.js'; const posixPath = posix; const slash = '/'; diff --git a/mana/packages/mana-common/src/wait-until-event.spec.ts b/packages/libro-common/src/mana-common/wait-until-event.spec.ts similarity index 94% rename from mana/packages/mana-common/src/wait-until-event.spec.ts rename to packages/libro-common/src/mana-common/wait-until-event.spec.ts index f8f80dd7..f143263c 100644 --- a/mana/packages/mana-common/src/wait-until-event.spec.ts +++ b/packages/libro-common/src/mana-common/wait-until-event.spec.ts @@ -1,8 +1,8 @@ import assert from 'assert'; -import { WaitUntilEvent } from './'; -import { Emitter } from './'; -import { Deferred } from './'; +import { WaitUntilEvent } from '.'; +import { Emitter } from '.'; +import { Deferred } from '.'; describe('wait until event', () => { it('#wait until', async () => { diff --git a/mana/packages/mana-common/src/wait-until-event.ts b/packages/libro-common/src/mana-common/wait-until-event.ts similarity index 100% rename from mana/packages/mana-common/src/wait-until-event.ts rename to packages/libro-common/src/mana-common/wait-until-event.ts