mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00

* chore: remove critical circular dependencies * chore: fix tslint errors * chore: remove platform specific types from interfaces * chore: update unit tests polyfills * fix: incorrect null check * chore: update api.md file * test: improve test case * chore: apply comments * test: avoid page style leaks in tests
23 lines
1.1 KiB
TypeScript
23 lines
1.1 KiB
TypeScript
import "tslib";
|
|
|
|
import * as moduleAlias from "module-alias";
|
|
import * as path from "path";
|
|
|
|
const tnsCoreModules = path.resolve(__dirname, "..", "nativescript-core");
|
|
|
|
moduleAlias.addPath(tnsCoreModules);
|
|
moduleAlias.addAliases({
|
|
// NOTE: require("@nativescript/core/platform") with these aliases will work in node but fail in Angular AoT
|
|
"@nativescript/core/platform": path.resolve(__dirname, "polyfills", "platform"),
|
|
"@nativescript/core/file-system/file-system-access": path.resolve(__dirname, "polyfills", "file-system-access"),
|
|
"@nativescript/core/utils/utils": path.resolve(tnsCoreModules, "utils/utils-common"),
|
|
"./layout-helper": path.resolve(tnsCoreModules, "utils/layout-helper/layout-helper-common"),
|
|
"./mainthread-helper": path.resolve(__dirname, "polyfills", "mainthread-helper"),
|
|
"@nativescript/core/color": path.resolve(tnsCoreModules, "color/color-common"),
|
|
"@nativescript/core/ui/styling/font": path.resolve(tnsCoreModules, "ui/styling/font-common"),
|
|
"@nativescript/core/ui/styling/background": path.resolve(tnsCoreModules, "ui/styling/background-common"),
|
|
|
|
"@nativescript/core": tnsCoreModules,
|
|
"~": __dirname
|
|
});
|