开发者社区> 镜像站> NPM> @platform/ts
@platform/ts
TypesScript build, prepare and publish toolchain.
Last updated 7 days ago by philcockfield .
MIT · Original npm · Tarball · package.json
$ cnpm install @platform/ts 
SYNC missed versions from official npm registry.

Module License: MIT NPM

ts

TypesScript build, prepare and publish toolchain.

Provides:

  • Command line for building, linting, preparing for publish and ultimately publishing.
  • Produces CommonJS and modern ESM transpiled builds.
  • Publishes to NPM from the distribution older, removing unnecesary pathing into the module from consumers (eg. '@my-modules/lib/...` is avoided).

Commands

Adds the ts command to your module's bin. You can optionally use the following scripts in you package.json:

{
  "scripts: {
    "test": "ts test",
    "tdd": "ts test --watch",
    "lint": "ts lint",
    "build": "ts build",
    "prepare": "ts prepare",
  }
}

To build without ESM module compilation:

{
  "scripts: {
    "build": "ts build --no-esm",
  }
}

ESModules

When setting the main of package.json make sure to not include the .js file extensions allowing environments that as using ESModule's to infer the .msj version.

{
  "name": "my-module",
  "main": "index",
  "types": "index.d.ts"
}

References:

Current Tags

  • 4.1.0                                ...           latest (7 days ago)

131 Versions

  • 4.1.0                                ...           7 days ago
  • 4.0.6                                ...           24 days ago
  • 4.0.4                                ...           24 days ago
  • 4.0.2                                ...           2 months ago
  • 4.0.1                                ...           2 months ago
  • 4.0.0                                ...           3 months ago
  • 3.9.5                                ...           5 months ago
  • 3.9.3                                ...           6 months ago
  • 3.9.2                                ...           6 months ago
  • 3.9.1                                ...           6 months ago
  • 3.7.29                                ...           6 months ago
  • 3.7.28                                ...           6 months ago
  • 3.7.27                                ...           6 months ago
  • 3.7.26                                ...           6 months ago
  • 3.7.25                                ...           6 months ago
  • 3.7.24                                ...           6 months ago
  • 3.7.23                                ...           6 months ago
  • 3.7.22                                ...           6 months ago
  • 3.7.21                                ...           6 months ago
  • 3.7.20                                ...           9 months ago
  • 3.7.19                                ...           9 months ago
  • 3.7.17                                ...           9 months ago
  • 3.7.15                                ...           9 months ago
  • 3.7.14                                ...           9 months ago
  • 3.7.12                                ...           10 months ago
  • 3.7.11                                ...           10 months ago
  • 3.7.10                                ...           10 months ago
  • 3.7.9                                ...           a year ago
  • 3.7.7                                ...           a year ago
  • 3.7.6                                ...           a year ago
  • 3.7.5                                ...           a year ago
  • 3.7.4                                ...           a year ago
  • 3.7.2                                ...           a year ago
  • 3.7.0                                ...           a year ago
  • 3.5.6                                ...           a year ago
  • 3.5.4                                ...           a year ago
  • 3.5.1                                ...           a year ago
  • 3.5.0                                ...           a year ago
  • 3.4.39                                ...           a year ago
  • 3.4.38                                ...           a year ago
  • 3.4.35                                ...           a year ago
  • 3.4.33                                ...           a year ago
  • 3.4.32                                ...           a year ago
  • 3.4.30                                ...           a year ago
  • 3.4.28                                ...           a year ago
  • 3.4.26                                ...           a year ago
  • 3.4.25                                ...           2 years ago
  • 3.4.24                                ...           2 years ago
  • 3.4.23                                ...           2 years ago
  • 3.4.22                                ...           2 years ago
  • 3.4.21                                ...           2 years ago
  • 3.4.18                                ...           2 years ago
  • 3.4.17                                ...           2 years ago
  • 3.4.16                                ...           2 years ago
  • 3.4.15                                ...           2 years ago
  • 3.4.14                                ...           2 years ago
  • 3.4.13                                ...           2 years ago
  • 3.4.12                                ...           2 years ago
  • 3.4.11                                ...           2 years ago
  • 3.4.10                                ...           2 years ago
  • 3.4.9                                ...           2 years ago
  • 3.4.8                                ...           2 years ago
  • 3.4.7                                ...           2 years ago
  • 3.4.6                                ...           2 years ago
  • 3.4.5                                ...           2 years ago
  • 3.4.4                                ...           2 years ago
  • 3.4.3                                ...           2 years ago
  • 3.4.2                                ...           2 years ago
  • 3.4.1                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 3.3.75                                ...           2 years ago
  • 3.3.74                                ...           2 years ago
  • 3.3.73                                ...           2 years ago
  • 3.3.71                                ...           2 years ago
  • 3.3.70                                ...           2 years ago
  • 3.3.69                                ...           2 years ago
  • 3.3.67                                ...           2 years ago
  • 3.3.66                                ...           2 years ago
  • 3.3.65                                ...           2 years ago
  • 3.3.64                                ...           2 years ago
  • 3.3.63                                ...           2 years ago
  • 3.3.62                                ...           2 years ago
  • 3.3.61                                ...           2 years ago
  • 3.3.60                                ...           2 years ago
  • 3.3.59                                ...           2 years ago
  • 3.3.57                                ...           2 years ago
  • 3.3.56                                ...           2 years ago
  • 3.3.55                                ...           2 years ago
  • 3.3.54                                ...           2 years ago
  • 3.3.53                                ...           2 years ago
  • 3.3.51                                ...           2 years ago
  • 3.3.50                                ...           2 years ago
  • 3.3.42                                ...           2 years ago
  • 3.3.41                                ...           2 years ago
  • 3.3.40                                ...           2 years ago
  • 3.3.39                                ...           2 years ago
  • 3.3.38                                ...           2 years ago
  • 3.3.37                                ...           2 years ago
  • 3.3.36                                ...           2 years ago
  • 3.3.35                                ...           2 years ago
  • 3.3.34                                ...           2 years ago
  • 3.3.33                                ...           2 years ago
  • 3.3.32                                ...           2 years ago
  • 3.3.31                                ...           2 years ago
  • 3.3.30                                ...           2 years ago
  • 3.3.29                                ...           2 years ago
  • 3.3.28                                ...           2 years ago
  • 3.3.27                                ...           2 years ago
  • 3.3.26                                ...           2 years ago
  • 3.3.25                                ...           2 years ago
  • 3.3.22                                ...           2 years ago
  • 3.3.21                                ...           2 years ago
  • 3.3.20                                ...           2 years ago
  • 3.3.19                                ...           2 years ago
  • 3.3.18                                ...           2 years ago
  • 3.3.17                                ...           2 years ago
  • 3.3.16                                ...           2 years ago
  • 3.3.15                                ...           2 years ago
  • 3.3.12                                ...           2 years ago
  • 3.3.11                                ...           2 years ago
  • 3.3.10                                ...           2 years ago
  • 3.3.9                                ...           2 years ago
  • 3.3.8                                ...           2 years ago
  • 3.3.7                                ...           2 years ago
  • 3.3.6                                ...           2 years ago
  • 3.3.5                                ...           2 years ago
  • 3.3.4                                ...           2 years ago
  • 3.3.3                                ...           2 years ago
  • 3.3.2                                ...           2 years ago
  • 3.3.1                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 5
This Month 5
Last Day 5
Last Week 11
Last Month 41
Dependencies (4)
Dev Dependencies (1)