Skip to content

Commit

Permalink
wip: at a good spot to stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Chau Tran authored and Chau Tran committed Mar 9, 2022
1 parent 5fe3f93 commit 6b2b957
Show file tree
Hide file tree
Showing 110 changed files with 3,936 additions and 428 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
}
]
}
],
"@typescript-eslint/no-explicit-any": 0
]
}
},
{
Expand Down
8 changes: 7 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"singleQuote": true,
"tabWidth": 4,
"printWidth": 80
"printWidth": 80,
"overrides": [
{
"files": [".prettierrc", ".swcrc"],
"options": { "parser": "json" }
}
]
}
20 changes: 20 additions & 0 deletions migrations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"migrations": [
{
"cli": "nx",
"version": "13.8.5-beta.1",
"description": "Renames @nrwl/js:node to @nrwl/node:node",
"factory": "./src/migrations/update-13-8-5/update-node-executor",
"package": "@nrwl/js",
"name": "update-node-executor"
},
{
"cli": "nx",
"version": "13.8.5-beta.1",
"description": "Adjust .swcrc to .lib.swcrc",
"factory": "./src/migrations/update-13-8-5/update-swcrc",
"package": "@nrwl/js",
"name": "update-swcrc"
}
]
}
13 changes: 5 additions & 8 deletions old/packages/classes/src/lib/utils/explore-metadata.util.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import type { PrimitiveExtended } from '@automapper/core';
import { isDefined } from '@automapper/core';
import {
AUTOMAP_PROPERTIES_METADATA_KEY,
AUTOMAPPER_METADATA_FACTORY_KEY,
} from '../constants';
import type { ClassInstanceStorage, ClassMetadataStorage } from '../storages';
import type { Constructible } from '../types';
import type {PrimitiveExtended} from '@automapper/core';
import {isDefined} from '@automapper/core';
import {AUTOMAP_PROPERTIES_METADATA_KEY, AUTOMAPPER_METADATA_FACTORY_KEY,} from '../constants';
import type {ClassInstanceStorage, ClassMetadataStorage} from '../storages';
import type {Constructible} from '../types';

export function exploreMetadata(
metadataStorage: ClassMetadataStorage,
Expand Down
15 changes: 4 additions & 11 deletions old/packages/classes/src/lib/utils/instantiate.util.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import type { Dictionary } from '@automapper/core';
import {
get,
isDateConstructor,
isDefined,
isEmpty,
isPrimitiveConstructor,
setMutate,
} from '@automapper/core';
import type { ClassInstanceStorage, ClassMetadataStorage } from '../storages';
import type { Constructible } from '../types';
import type {Dictionary} from '@automapper/core';
import {get, isDateConstructor, isDefined, isEmpty, isPrimitiveConstructor, setMutate,} from '@automapper/core';
import type {ClassInstanceStorage, ClassMetadataStorage} from '../storages';
import type {Constructible} from '../types';

/**
* Recursively instantiate a model with its metadata
Expand Down
4 changes: 2 additions & 2 deletions old/packages/pojos/src/lib/utils/instantiate.util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Dictionary } from '@automapper/core';
import type {Dictionary} from '@automapper/core';
import {
get,
isDateConstructor,
Expand All @@ -8,7 +8,7 @@ import {
isPrimitiveConstructor,
setMutate,
} from '@automapper/core';
import { PojosMetadataStorage } from '../storages';
import {PojosMetadataStorage} from '../storages';

export function instantiate<TModel extends Dictionary<TModel>>(
metadataStorage: PojosMetadataStorage,
Expand Down
Loading

0 comments on commit 6b2b957

Please sign in to comment.