puse / machina

Proof-of-concept browser automation toolkit :construction:
Mozilla Public License 2.0
1 stars 0 forks source link

Alias root source path for better TS imports #43

Closed antaranyan closed 1 year ago

antaranyan commented 1 year ago

Should resolve #42

antaranyan commented 1 year ago

Seems it doesn't compile as expected, so CLI executable fails with:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/twitter-adapter-playwright' imported from /home/mushegh/Projects/machina/build/cli/commands/details.js

and if we check compiled details.js it starts with

import { UserProfileViewAdapter } from "@/twitter-adapter-playwright/UserProfileViewAdapter.js";
import { obtainingUserDetails } from "@/twitter-api/ObtainingUserDetails.js";