Skip to content

Commit

Permalink
fix: change internal import paths to match how they will be used exte…
Browse files Browse the repository at this point in the history
…rnally
  • Loading branch information
ersimont committed Nov 1, 2020
1 parent b00b1d2 commit 1020f8f
Show file tree
Hide file tree
Showing 184 changed files with 202 additions and 211 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-suite.yml
Expand Up @@ -35,4 +35,6 @@ jobs:

- run: npx ts-node scripts/build-libs

- run: npx ts-node scripts/lint-all
- run: yarn lint
- run: yarn eslint
- run: npx ts-node scripts/dtslint-all
2 changes: 1 addition & 1 deletion projects/app-state/src/lib/child-store.ts
@@ -1,4 +1,4 @@
import { clone, isEmpty, omit } from 'micro-dash';
import { clone, isEmpty, omit } from '@s-libs/micro-dash';
import { Client, Store } from './index';

/** @hidden */
Expand Down
4 changes: 2 additions & 2 deletions projects/app-state/src/lib/store.spec.ts
@@ -1,5 +1,5 @@
import { cloneDeep, identity, noop, pick } from 'micro-dash';
import { expectSingleCallAndReset } from 'ng-dev';
import { cloneDeep, identity, noop, pick } from '@s-libs/micro-dash';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { skip, take } from 'rxjs/operators';
import { InnerState, TestState } from '../test-helpers/test-state';
import { RootStore } from './root-store';
Expand Down
4 changes: 2 additions & 2 deletions projects/app-state/src/lib/store.ts
@@ -1,5 +1,5 @@
import { CallableObject } from 'js-core';
import { clone, every, forOwn } from 'micro-dash';
import { CallableObject } from '@s-libs/js-core';
import { clone, every, forOwn } from '@s-libs/micro-dash';
import { Observable, Subscriber } from 'rxjs';
import { ChildStore } from './index';

Expand Down
6 changes: 3 additions & 3 deletions projects/app-state/src/lib/utils/spread-object-store.ts
@@ -1,7 +1,7 @@
import { isSetEqual } from 'js-core';
import { keys } from 'micro-dash';
import { isSetEqual } from '@s-libs/js-core';
import { keys } from '@s-libs/micro-dash';
import { Observable } from 'rxjs';
import { mapAndCacheObjectElements } from 'rxjs-core';
import { mapAndCacheObjectElements } from '@s-libs/rxjs-core';
import { filter } from 'rxjs/operators';
import { Store } from '../index';

Expand Down
4 changes: 2 additions & 2 deletions projects/app-state/src/lib/utils/undo-manager.spec.ts
@@ -1,6 +1,6 @@
import { fakeAsync, tick } from '@angular/core/testing';
import { isEqual } from 'micro-dash';
import { expectSingleCallAndReset } from 'ng-dev';
import { isEqual } from '@s-libs/micro-dash';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { RootStore } from '../root-store';
import { UndoManager, UndoOrRedo } from './undo-manager';

Expand Down
2 changes: 1 addition & 1 deletion projects/app-state/src/lib/utils/undo-manager.ts
@@ -1,4 +1,4 @@
import { Debouncer } from 'js-core';
import { Debouncer } from '@s-libs/js-core';
import { Observable, ReplaySubject } from 'rxjs';
import { distinctUntilChanged } from 'rxjs/operators';
import { Store } from '../index';
Expand Down
2 changes: 1 addition & 1 deletion projects/app-state/src/performance/wide-performance.ts
@@ -1,4 +1,4 @@
import { times } from 'micro-dash';
import { times } from '@s-libs/micro-dash';
import { Subscription } from 'rxjs';
import { Store } from '../public-api';
import { CounterState } from './counter-state';
Expand Down
6 changes: 3 additions & 3 deletions projects/app-state/src/typing-tests/tsconfig.json
Expand Up @@ -11,9 +11,9 @@

"baseUrl": "../lib",
"paths": {
"js-core": ["../../../../dist/js-core"],
"micro-dash": ["../../../../dist/micro-dash"],
"rxjs-core": ["../../../../dist/rxjs-core"]
"@s-libs/js-core": ["../../../../dist/js-core"],
"@s-libs/micro-dash": ["../../../../dist/micro-dash"],
"@s-libs/rxjs-core": ["../../../../dist/rxjs-core"]
}
}
}
2 changes: 1 addition & 1 deletion projects/integration/src/app/api-tests/app-state.spec.ts
Expand Up @@ -5,7 +5,7 @@ import {
spreadObjectStore$,
Store,
UndoManager,
} from 'app-state';
} from '@s-libs/app-state';

describe('app-state', () => {
it('has RootStore', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/integration/src/app/api-tests/js-core.spec.ts
Expand Up @@ -23,7 +23,7 @@ import {
toCsv,
wrapFunction,
wrapMethod,
} from 'js-core';
} from '@s-libs/js-core';

describe('js-core', () => {
it('has TimeUnit', () => {
Expand Down
@@ -1,4 +1,4 @@
import { NasModelModule } from 'ng-app-state';
import { NasModelModule } from '@s-libs/ng-app-state';

describe('ng-app-state', () => {
it('has NasModelModule', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/integration/src/app/api-tests/ng-core.spec.ts
Expand Up @@ -4,7 +4,7 @@ import {
InjectableSuperclass,
provideValueAccessor,
WrappedFormControlSuperclass,
} from 'ng-core';
} from '@s-libs/ng-core';

describe('ng-core', () => {
it('has DirectiveSuperclass', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/integration/src/app/api-tests/ng-dev.spec.ts
Expand Up @@ -8,7 +8,7 @@ import {
marbleTest,
precompileForTests,
trimLeftoverStyles,
} from 'ng-dev';
} from '@s-libs/ng-dev';

describe('ng-dev', () => {
it('has AngularContext', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/integration/src/app/api-tests/rxjs-core.spec.ts
Expand Up @@ -11,7 +11,7 @@ import {
skipAfter,
SubscriptionManager,
withHistory,
} from 'rxjs-core';
} from '@s-libs/rxjs-core';

describe('rxjs-core', () => {
it('has SubscriptionManager', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/functions/wrap-function.spec.ts
@@ -1,4 +1,4 @@
import { expectSingleCallAndReset } from 'ng-dev';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { wrapFunction } from './wrap-function';

describe('wrapFunction()', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/functions/wrap-method.spec.ts
@@ -1,4 +1,4 @@
import { expectSingleCallAndReset } from 'ng-dev';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { wrapMethod } from './wrap-method';

describe('wrapMethod()', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/is-defined.ts
@@ -1,4 +1,4 @@
import { isUndefined } from 'micro-dash';
import { isUndefined } from '@s-libs/micro-dash';

/**
* Checks if `value` is anything other than `undefined`.
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/migration-manager.spec.ts
@@ -1,4 +1,4 @@
import { expectSingleCallAndReset } from 'ng-dev';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { MigrationManager, VersionedObject } from './migration-manager';
import { Persistence } from './persistence';

Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/objects/is-equal-at-depth.ts
@@ -1,4 +1,4 @@
import { keys } from 'micro-dash';
import { keys } from '@s-libs/micro-dash';

/**
* Performs a deep comparison between two values to determine if they are equivalent, up to the given depth. Once that depth is reached, remaining values are compared using `Object.is()`.
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/objects/map-as-keys.spec.ts
@@ -1,4 +1,4 @@
import { expectCallsAndReset } from 'ng-dev';
import { expectCallsAndReset } from '@s-libs/ng-dev';
import { mapAsKeys } from './map-as-keys';

describe('mapAsKeys()', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/objects/map-to-object.spec.ts
@@ -1,4 +1,4 @@
import { expectCallsAndReset } from 'ng-dev';
import { expectCallsAndReset } from '@s-libs/ng-dev';
import { mapToObject } from './map-to-object';

describe('mapToObject()', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/objects/map-to-object.ts
@@ -1,4 +1,4 @@
import { transform } from 'micro-dash';
import { transform } from '@s-libs/micro-dash';
import { ArrayIteratee, Nil, ObjectIteratee } from '../interfaces';

/**
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/time/debouncer.spec.ts
@@ -1,5 +1,5 @@
import { fakeAsync, tick } from '@angular/core/testing';
import { expectSingleCallAndReset } from 'ng-dev';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { Debouncer } from './debouncer';

describe('Debouncer', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/time/deferred.spec.ts
@@ -1,4 +1,4 @@
import { expectSingleCallAndReset } from 'ng-dev';
import { expectSingleCallAndReset } from '@s-libs/ng-dev';
import { Deferred } from './deferred';

describe('Deferred', () => {
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/time/time-utils.ts
@@ -1,4 +1,4 @@
import { last } from 'micro-dash';
import { last } from '@s-libs/micro-dash';
import { mapAsKeys } from '../objects/map-as-keys';
import { roundToMultipleOf } from '../round-to-multiple-of';

Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/lib/to-csv.ts
@@ -1,4 +1,4 @@
import { toString } from 'micro-dash';
import { toString } from '@s-libs/micro-dash';

/**
* Converts a 2D array to a csv string. Values are converted using micro-dash's `toString()`.
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/typing-tests/assert.dts-spec.ts
@@ -1,4 +1,4 @@
import { identity, isString } from 'micro-dash';
import { identity, isString } from '@s-libs/micro-dash';
import { assert } from '../public-api';

const v = '' as string | Date;
Expand Down
2 changes: 1 addition & 1 deletion projects/js-core/src/typing-tests/tsconfig.json
Expand Up @@ -10,6 +10,6 @@
"target": "es2015",

"baseUrl": "../lib",
"paths": { "micro-dash": ["../../../../dist/micro-dash"] }
"paths": { "@s-libs/micro-dash": ["../../../../dist/micro-dash"] }
}
}
@@ -1,4 +1,4 @@
import { noop } from 'micro-dash';
import { noop } from '@s-libs/micro-dash';
import { wrapFunction } from '../public-api';

class O {
Expand Down
2 changes: 1 addition & 1 deletion projects/micro-dash-sizes/src/app/array/chunk.microdash.ts
@@ -1,4 +1,4 @@
import { chunk } from 'micro-dash';
import { chunk } from '@s-libs/micro-dash';

console.log(chunk([1, 2]));
console.log(chunk([1, 2], 3));
@@ -1,3 +1,3 @@
import { compact } from 'micro-dash';
import { compact } from '@s-libs/micro-dash';

compact([]);
@@ -1,3 +1,3 @@
import { concat } from 'micro-dash';
import { concat } from '@s-libs/micro-dash';

console.log(concat([], 1, [2], [3]));
@@ -1,3 +1,3 @@
import { difference } from 'micro-dash';
import { difference } from '@s-libs/micro-dash';

console.log(difference([1, 2], [1]));
@@ -1,3 +1,3 @@
import { flatten } from 'micro-dash';
import { flatten } from '@s-libs/micro-dash';

flatten([]);
@@ -1,3 +1,3 @@
import { initial } from 'micro-dash';
import { initial } from '@s-libs/micro-dash';

console.log(initial([1, 2]));
2 changes: 1 addition & 1 deletion projects/micro-dash-sizes/src/app/array/last.microdash.ts
@@ -1,3 +1,3 @@
import { last } from 'micro-dash';
import { last } from '@s-libs/micro-dash';

console.log(last([1, 2]));
@@ -1,3 +1,3 @@
import { pullAll } from 'micro-dash';
import { pullAll } from '@s-libs/micro-dash';

console.log(pullAll([1], [1]));
@@ -1,4 +1,4 @@
import { pullAt } from 'micro-dash';
import { pullAt } from '@s-libs/micro-dash';

console.log(
pullAt([1, 2, 3], 1),
Expand Down
2 changes: 1 addition & 1 deletion projects/micro-dash-sizes/src/app/array/pull.microdash.ts
@@ -1,3 +1,3 @@
import { pull } from 'micro-dash';
import { pull } from '@s-libs/micro-dash';

pull([1], 1);
@@ -1,3 +1,3 @@
import { remove } from 'micro-dash';
import { remove } from '@s-libs/micro-dash';

remove([1], () => true);
@@ -1,3 +1,3 @@
import { sortedIndex } from 'micro-dash';
import { sortedIndex } from '@s-libs/micro-dash';

console.log(sortedIndex([1, 2], 3), sortedIndex(null, NaN));
2 changes: 1 addition & 1 deletion projects/micro-dash-sizes/src/app/array/union.microdash.ts
@@ -1,3 +1,3 @@
import { union } from 'micro-dash';
import { union } from '@s-libs/micro-dash';

console.log(union([1], [2]));
@@ -1,3 +1,3 @@
import { uniqBy } from 'micro-dash';
import { uniqBy } from '@s-libs/micro-dash';

console.log(uniqBy([1, 1, 2], (v) => v));
2 changes: 1 addition & 1 deletion projects/micro-dash-sizes/src/app/array/uniq.microdash.ts
@@ -1,3 +1,3 @@
import { uniq } from 'micro-dash';
import { uniq } from '@s-libs/micro-dash';

console.log(uniq([1]));
@@ -1,3 +1,3 @@
import { without } from 'micro-dash';
import { without } from '@s-libs/micro-dash';

without([1, 2, 3], 1, 3);
@@ -1,3 +1,3 @@
import { zipObject } from 'micro-dash';
import { zipObject } from '@s-libs/micro-dash';

console.log(zipObject(['a'], [1]));
2 changes: 1 addition & 1 deletion projects/micro-dash-sizes/src/app/array/zip.microdash.ts
@@ -1,3 +1,3 @@
import { zip } from 'micro-dash';
import { zip } from '@s-libs/micro-dash';

console.log(zip([1], null, [2]), zip());
@@ -1,4 +1,4 @@
import { every } from 'micro-dash';
import { every } from '@s-libs/micro-dash';

console.log(
every([1], () => true),
Expand Down
@@ -1,4 +1,4 @@
import { filter } from 'micro-dash';
import { filter } from '@s-libs/micro-dash';

filter([1], () => true);
filter({ a: 1 }, () => false);
@@ -1,4 +1,4 @@
import { find } from 'micro-dash';
import { find } from '@s-libs/micro-dash';

find([1, 2, 3], (n) => n === 2, 1);
find({ a: 1, b: 2, c: 3 }, (n) => n === 2);
@@ -1,4 +1,4 @@
import { flatMap } from 'micro-dash';
import { flatMap } from '@s-libs/micro-dash';

console.log(
flatMap([1, 2, 3], (n) => [n, n]),
Expand Down
@@ -1,4 +1,4 @@
import { forEachRight } from 'micro-dash';
import { forEachRight } from '@s-libs/micro-dash';

forEachRight([], () => {});
forEachRight({}, () => {});
@@ -1,4 +1,4 @@
import { forEach } from 'micro-dash';
import { forEach } from '@s-libs/micro-dash';

forEach([], () => {});
forEach({}, () => {});
@@ -1,3 +1,3 @@
import { groupBy } from 'micro-dash';
import { groupBy } from '@s-libs/micro-dash';

console.log(groupBy([1, 2, 3], () => 'a'));
@@ -1,4 +1,4 @@
import { includes } from 'micro-dash';
import { includes } from '@s-libs/micro-dash';

console.log(
includes([1, 2, 3], 2, 1),
Expand Down
@@ -1,4 +1,4 @@
import { keyBy } from 'micro-dash';
import { keyBy } from '@s-libs/micro-dash';

keyBy([], () => 'a');
keyBy({}, () => 'a');
@@ -1,4 +1,4 @@
import { map } from 'micro-dash';
import { map } from '@s-libs/micro-dash';

map([1], () => {});
map({ a: 1 }, () => {});
@@ -1,4 +1,4 @@
import { reduceRight } from 'micro-dash';
import { reduceRight } from '@s-libs/micro-dash';

reduceRight([], () => {});
reduceRight({ a: 1 }, (key) => key);
@@ -1,4 +1,4 @@
import { reduce } from 'micro-dash';
import { reduce } from '@s-libs/micro-dash';

reduce([], () => {});
reduce({ a: 1 }, (key) => key);
@@ -1,2 +1,2 @@
import { sample } from 'micro-dash';
import { sample } from '@s-libs/micro-dash';
console.log(sample([1, 2]), sample({ a: 1, b: 2 }));
@@ -1,2 +1,2 @@
import { size } from 'micro-dash';
import { size } from '@s-libs/micro-dash';
console.log(size([1, 2]), size({ a: 1, b: 2 }), size('hi'));
@@ -1,4 +1,4 @@
import { some } from 'micro-dash';
import { some } from '@s-libs/micro-dash';

console.log(
some([1], () => true),
Expand Down

0 comments on commit 1020f8f

Please sign in to comment.