♻️(typescript) move tokens sources to absolute import
Relatives import are quite ugly and reduces readability, but hard to say that Typescript handles it very well for compilation time, but nothing for runtime. That's why I had to add tsc-alias to the build script. Please see this issue for more details. https://github.com/Microsoft/TypeScript/issues/15479 Furthermore, some configuration was needed for Jest to work well.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import path from "path";
|
||||
import * as fs from "fs";
|
||||
import deepmerge from "deepmerge";
|
||||
import { ConfigShape } from "TokensGenerator";
|
||||
import { workPath } from "Paths";
|
||||
import Config from "./Config";
|
||||
import { ConfigShape } from "./TokensGenerator";
|
||||
import { workPath } from "./Paths";
|
||||
|
||||
const getLocalConfig = async () => {
|
||||
const filename = Config.configurationFilenames
|
||||
|
||||
Reference in New Issue
Block a user