Giter Club home page Giter Club logo

typescript-tools's Introduction

TypeScript Tools

Build Status

State of This Monorepo

This repository is not actively maintained.

These days I am using this style of monorepo less than I was before, so there is not enough return on investment to justify further maintenance of this repository.

For an alternative solution, see the Rust implementation of the typescript- tools.

The Problem

Whereas Lerna was created for managing JavaScript monorepos, TypeScript monorepos have additional requirements introduced by the compilation step.

Furthermore, Lerna is a tool that does a great many actions. The typescript-tools each aim to uphold the Unix philosophy: to do a single task well, and compose with other tools.

Goals

The goals of the typescript-tools are to give back the maximum amount of human time possibly; chiefly through stability and aggressive automation.

Acknowledgments

typescript-tools's People

Contributors

drgrove avatar ericcrosson avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

typescript-tools's Issues

Create intermediate tsconfig.settings.json files as necessary

Relevent when:

somebody makes a new directory for packages

e.g.

/packages/collection/a

where both collection and a are new directories. The necessary tsconfig.setting.json file should look like

{
    "extends": "../tsconfig.settings.json"
}

and live at /packages/collection/tsconfig.settings.json so that it is imported by /packages/collection/a/tsconfig.json.

Question: which package should take this responsibility? I guess it could a new package but we should consider the DX of opting in to these hooks

Create a tool to 'bootstrap --strict' selectively

use case: we need to pin only the "typescript" dependency version, no other versions, but bootstrap does not have a mechanism by which we can ensure this.

call the tool before bootstrapping and have it error out if versions of the designated packages are not hoistable (even when hoisting is not enabled)

typescript-build-linker: type error when lerna manifest is empty

> DEBUG=link typescript-build-linker
(node:421) UnhandledPromiseRejectionWarning: TypeError: fa is not a function
    at /builds/strong-roots-capital/stratos/node_modules/fp-ts/lib/Task.js:90:77
    at /builds/strong-roots-capital/stratos/node_modules/fp-ts/lib/Task.js:118:48
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Promise.all (index 0)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:421) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:421) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

add license files to repositories

lerna WARN ENOLICENSE Packages @typescript-tools/hoisted-packages, @typescript-tools/internal-dependencies, @typescript-tools/io-ts, @typescript-tools/lerna-utils, @typescript-tools/pin-lerna-package-versions, and @typescript-tools/use-hoisted-version are missing a license.

The automated release is failing 🚨

🚨 The automated release from the beta branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the beta branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


No npm token specified.

An npm token must be created and set in the NPM_TOKEN environment variable on your CI environment.

Please make sure to create an npm token and to set it in the NPM_TOKEN environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Create a release script

  • avoid independent clean/build of each package during publish

Something like fp-ts's release script to prohibit npm publish:

  • clean all
  • lint all
  • pin
  • build all
  • test all
  • publish

Don't publish with ncc

So split those dev dependencies back out, that happened in a recent commit

Necessary subtask: publish all packages maintained by the monorepo
And: revert the change to lerna:publish run script

Reasoning: many of these deps are installed for the underlying codebase, and this is doubling the size requirement of the overlapping deps

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Rate Limited

These updates are currently rate limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency eslint-plugin-fp-ts to v0.3.0
  • chore(deps): update dependency fast-check to v2.20.0
  • chore(deps): update dependency multi-semantic-release to v2.11.0
  • chore(deps): update dependency prettier to v2.5.1
  • chore(deps): update dependency typescript to v4.5.3
  • chore(deps): update typescript-eslint monorepo to v5.6.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency io-ts to ~2.2.0
  • chore(deps): update dependency ava-fast-check to v4
  • chore(deps): update dependency eslint to v8
  • chore(deps): update dependency eslint-config-prettier to v8
  • chore(deps): update dependency eslint-plugin-ava to v13
  • chore(deps): update dependency eslint-plugin-prettier to v4
  • chore(deps): update dependency lint-staged to v12
  • chore(deps): update dependency ts-node to v10
  • fix(deps): update dependency execa to v6
  • fix(deps): update dependency find-up to v6
  • fix(deps): update dependency ts-pattern to v3

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.