Catalog npm
PACKAGE EXPLORERView in registry

@0x706b/tsplus-installer

npm

Run `yarn add -D typescript @tsplus/installer` and add `tsplus-install` in your `package.json` scripts like:

Versions collected2
Direct dependencies29From release 0.0.190
Last observed20 Oct, 22:39 UTC

README

Current package documentation

Installation

Run yarn add -D typescript @tsplus/installer and add tsplus-install in your package.json scripts like:

{
    "scripts": {
        "postinstall": "tsplus-install"
    }
}

Additionally add a config like the following to be specified that tells the compiler how to map source files to traces and imports:

// tsplus.config.json
{
  "importMap": {
    "^(.*)/packages/([^/]*)/src(.*)/index\\.ts$": "@tsplus-test/$2$3",
    "^(.*)/packages/([^/]*)/src(.*)\\.ts$": "@tsplus-test/$2$3"
  },
  "traceMap": {
    "^(.*)/packages/([^/]*)/(.*)$": "(@tsplus-test/$2) $3"
  }
}

and linked to each tsconfig where either a main build happens or any project reference:

// tsconfig.json
{
  "compilerOptions": {
    "tsPlusConfig": "../../tsplus.config.json"
  }
}

Notes:

  • TS+ will add imports in your code and it will use fully qualified imports like @tsplus-tests/package/MyFile
  • It is your job to make sure every file is properly exported in your package.json exports.
  • Each file should correspond to a unique import, to avoid ending up with circular references as much as possible
  • It is advisable to use "typescript.preferences.importModuleSpecifier": "non-relative in vscode settings to ensure the IDE suggests the correct auto imports

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.190Registry latest25 Apr 202629
0.0.1898 Feb 202624

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0x706b/tsplus-installer

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:39 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:fb9359f5b7215b6da7e2ce69adf7b4788beecac3afe72a9d660953861ef06500