New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

remote-ts

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-ts

An easy way to remotely add local typescript files across projects.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

remote-ts

Why?

I had a project which required types from another project. So I created this simple CLI tool to copy the types from the other project to my project. It works by copying the types from the other project to a .remote-ts folder in my project. Enjoy. 😊

Usage

  • Write the import path to the TS file you want to import Make sure the import path is a relative path to .remote-ts which would be generated after running the CLI.
import { myTSVariable } from "./.remote-ts/my-private-project/path-to-file.ts";
//       ^? string

console.log(myTSVariable); // "Hello World!"

Run the CLI to copy the code from your my-private-project folder to your project.

npx remote-ts sync

This library requires you to have all of your personal code projects in individual folders all under a root projects folder. If you haven't run the CLI before, it will ask you where your collection projects are located, and this is how it will infer to your projects.

FAQ

How do I reset the root project directory?

npx remote-ts reset-root

This will allow you to re-enter the root project directory.

Keywords

remote

FAQs

Package last updated on 25 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts