From 66ae8e90727caebe01f576309213ff119da857da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bu=CC=80i=20Vie=CC=A3=CC=82t=20Tha=CC=80nh?= Date: Mon, 22 Apr 2019 13:47:24 +0700 Subject: [PATCH] git mv to prepare for lerna --- lerna.json | 7 +++---- package.json | 5 ++++- {src/classapplier => packages/classapplier/src}/index.ts | 0 {src/classapplier => packages/classapplier/src}/types.d.ts | 0 {src/core => packages/core/src}/DOMException.ts | 0 {src/core => packages/core/src}/api.ts | 0 {src/core => packages/core/src}/dom.ts | 0 {src/core => packages/core/src}/index.ts | 0 {src/core => packages/core/src}/internal/_.ts | 0 .../core/src}/internal/domrange/RangeIterator.ts | 0 {src/core => packages/core/src}/internal/domrange/_.ts | 0 {src/core => packages/core/src}/internal/domrange/index.ts | 0 {src/core => packages/core/src}/internal/domrange/part1.ts | 0 {src/core => packages/core/src}/internal/domrange/part2.ts | 0 {src/core => packages/core/src}/internal/domrange/util.ts | 0 {src/core => packages/core/src}/internal/index.ts | 0 {src/core => packages/core/src}/internal/wrappedrange.ts | 0 .../core/src}/internal/wrappedselection.ts | 0 {src/core => packages/core/src}/module.ts | 0 {src/core => packages/core/src}/types.d.ts | 0 {src/core => packages/core/src}/util.ts | 0 {src/highlighter => packages/highlighter/src}/index.ts | 0 {src/highlighter => packages/highlighter/src}/types.d.ts | 0 .../selectionsaverestore/src}/index.ts | 0 .../selectionsaverestore/src}/types.d.ts | 0 {src/serializer => packages/serializer/src}/crc32.ts | 0 {src/serializer => packages/serializer/src}/index.ts | 0 {src/serializer => packages/serializer/src}/types.d.ts | 0 {src => packages}/tsconfig.base.json | 0 {src/util => packages/util/src}/index.ts | 0 {src/util => packages/util/src}/types.d.ts | 0 src/tsconfig.json => tsconfig.json | 0 32 files changed, 7 insertions(+), 5 deletions(-) rename {src/classapplier => packages/classapplier/src}/index.ts (100%) rename {src/classapplier => packages/classapplier/src}/types.d.ts (100%) rename {src/core => packages/core/src}/DOMException.ts (100%) rename {src/core => packages/core/src}/api.ts (100%) rename {src/core => packages/core/src}/dom.ts (100%) rename {src/core => packages/core/src}/index.ts (100%) rename {src/core => packages/core/src}/internal/_.ts (100%) rename {src/core => packages/core/src}/internal/domrange/RangeIterator.ts (100%) rename {src/core => packages/core/src}/internal/domrange/_.ts (100%) rename {src/core => packages/core/src}/internal/domrange/index.ts (100%) rename {src/core => packages/core/src}/internal/domrange/part1.ts (100%) rename {src/core => packages/core/src}/internal/domrange/part2.ts (100%) rename {src/core => packages/core/src}/internal/domrange/util.ts (100%) rename {src/core => packages/core/src}/internal/index.ts (100%) rename {src/core => packages/core/src}/internal/wrappedrange.ts (100%) rename {src/core => packages/core/src}/internal/wrappedselection.ts (100%) rename {src/core => packages/core/src}/module.ts (100%) rename {src/core => packages/core/src}/types.d.ts (100%) rename {src/core => packages/core/src}/util.ts (100%) rename {src/highlighter => packages/highlighter/src}/index.ts (100%) rename {src/highlighter => packages/highlighter/src}/types.d.ts (100%) rename {src/selectionsaverestore => packages/selectionsaverestore/src}/index.ts (100%) rename {src/selectionsaverestore => packages/selectionsaverestore/src}/types.d.ts (100%) rename {src/serializer => packages/serializer/src}/crc32.ts (100%) rename {src/serializer => packages/serializer/src}/index.ts (100%) rename {src/serializer => packages/serializer/src}/types.d.ts (100%) rename {src => packages}/tsconfig.base.json (100%) rename {src/util => packages/util/src}/index.ts (100%) rename {src/util => packages/util/src}/types.d.ts (100%) rename src/tsconfig.json => tsconfig.json (100%) diff --git a/lerna.json b/lerna.json index d6707ca0..feb3c001 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,5 @@ { - "packages": [ - "packages/*" - ], - "version": "0.0.0" + "version": "2.1.0", + "npmClient": "yarn", + "useWorkspaces": true } diff --git a/package.json b/package.json index 3c02b78c..a48dc561 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,10 @@ { + "private": true, + "workspaces": [ + "packages/*" + ], "name": "rangy2", "description": "A cross-browser DOM range and selection library", - "version": "2.1.0", "author": { "name": "Tim Down", "email": "tim@timdown.co.uk", diff --git a/src/classapplier/index.ts b/packages/classapplier/src/index.ts similarity index 100% rename from src/classapplier/index.ts rename to packages/classapplier/src/index.ts diff --git a/src/classapplier/types.d.ts b/packages/classapplier/src/types.d.ts similarity index 100% rename from src/classapplier/types.d.ts rename to packages/classapplier/src/types.d.ts diff --git a/src/core/DOMException.ts b/packages/core/src/DOMException.ts similarity index 100% rename from src/core/DOMException.ts rename to packages/core/src/DOMException.ts diff --git a/src/core/api.ts b/packages/core/src/api.ts similarity index 100% rename from src/core/api.ts rename to packages/core/src/api.ts diff --git a/src/core/dom.ts b/packages/core/src/dom.ts similarity index 100% rename from src/core/dom.ts rename to packages/core/src/dom.ts diff --git a/src/core/index.ts b/packages/core/src/index.ts similarity index 100% rename from src/core/index.ts rename to packages/core/src/index.ts diff --git a/src/core/internal/_.ts b/packages/core/src/internal/_.ts similarity index 100% rename from src/core/internal/_.ts rename to packages/core/src/internal/_.ts diff --git a/src/core/internal/domrange/RangeIterator.ts b/packages/core/src/internal/domrange/RangeIterator.ts similarity index 100% rename from src/core/internal/domrange/RangeIterator.ts rename to packages/core/src/internal/domrange/RangeIterator.ts diff --git a/src/core/internal/domrange/_.ts b/packages/core/src/internal/domrange/_.ts similarity index 100% rename from src/core/internal/domrange/_.ts rename to packages/core/src/internal/domrange/_.ts diff --git a/src/core/internal/domrange/index.ts b/packages/core/src/internal/domrange/index.ts similarity index 100% rename from src/core/internal/domrange/index.ts rename to packages/core/src/internal/domrange/index.ts diff --git a/src/core/internal/domrange/part1.ts b/packages/core/src/internal/domrange/part1.ts similarity index 100% rename from src/core/internal/domrange/part1.ts rename to packages/core/src/internal/domrange/part1.ts diff --git a/src/core/internal/domrange/part2.ts b/packages/core/src/internal/domrange/part2.ts similarity index 100% rename from src/core/internal/domrange/part2.ts rename to packages/core/src/internal/domrange/part2.ts diff --git a/src/core/internal/domrange/util.ts b/packages/core/src/internal/domrange/util.ts similarity index 100% rename from src/core/internal/domrange/util.ts rename to packages/core/src/internal/domrange/util.ts diff --git a/src/core/internal/index.ts b/packages/core/src/internal/index.ts similarity index 100% rename from src/core/internal/index.ts rename to packages/core/src/internal/index.ts diff --git a/src/core/internal/wrappedrange.ts b/packages/core/src/internal/wrappedrange.ts similarity index 100% rename from src/core/internal/wrappedrange.ts rename to packages/core/src/internal/wrappedrange.ts diff --git a/src/core/internal/wrappedselection.ts b/packages/core/src/internal/wrappedselection.ts similarity index 100% rename from src/core/internal/wrappedselection.ts rename to packages/core/src/internal/wrappedselection.ts diff --git a/src/core/module.ts b/packages/core/src/module.ts similarity index 100% rename from src/core/module.ts rename to packages/core/src/module.ts diff --git a/src/core/types.d.ts b/packages/core/src/types.d.ts similarity index 100% rename from src/core/types.d.ts rename to packages/core/src/types.d.ts diff --git a/src/core/util.ts b/packages/core/src/util.ts similarity index 100% rename from src/core/util.ts rename to packages/core/src/util.ts diff --git a/src/highlighter/index.ts b/packages/highlighter/src/index.ts similarity index 100% rename from src/highlighter/index.ts rename to packages/highlighter/src/index.ts diff --git a/src/highlighter/types.d.ts b/packages/highlighter/src/types.d.ts similarity index 100% rename from src/highlighter/types.d.ts rename to packages/highlighter/src/types.d.ts diff --git a/src/selectionsaverestore/index.ts b/packages/selectionsaverestore/src/index.ts similarity index 100% rename from src/selectionsaverestore/index.ts rename to packages/selectionsaverestore/src/index.ts diff --git a/src/selectionsaverestore/types.d.ts b/packages/selectionsaverestore/src/types.d.ts similarity index 100% rename from src/selectionsaverestore/types.d.ts rename to packages/selectionsaverestore/src/types.d.ts diff --git a/src/serializer/crc32.ts b/packages/serializer/src/crc32.ts similarity index 100% rename from src/serializer/crc32.ts rename to packages/serializer/src/crc32.ts diff --git a/src/serializer/index.ts b/packages/serializer/src/index.ts similarity index 100% rename from src/serializer/index.ts rename to packages/serializer/src/index.ts diff --git a/src/serializer/types.d.ts b/packages/serializer/src/types.d.ts similarity index 100% rename from src/serializer/types.d.ts rename to packages/serializer/src/types.d.ts diff --git a/src/tsconfig.base.json b/packages/tsconfig.base.json similarity index 100% rename from src/tsconfig.base.json rename to packages/tsconfig.base.json diff --git a/src/util/index.ts b/packages/util/src/index.ts similarity index 100% rename from src/util/index.ts rename to packages/util/src/index.ts diff --git a/src/util/types.d.ts b/packages/util/src/types.d.ts similarity index 100% rename from src/util/types.d.ts rename to packages/util/src/types.d.ts diff --git a/src/tsconfig.json b/tsconfig.json similarity index 100% rename from src/tsconfig.json rename to tsconfig.json