タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

TypeScriptとnodejsとarticleに関するefclのブックマーク (3)

  • How we migrated our Rush.js monorepo to Node type stripping — Calm Blog

    Introduction Sometimes an epiphany comes after years of hard work. Other times, it's more like an asteroid crashing into you from the cosmos. My epiphany came shortly after a coworker posted an article about Node type stripping, which is a way to skip transpilation and run TypeScript files natively in Node. We started chatting about the significant impact this change could have on developer produc

    How we migrated our Rush.js monorepo to Node type stripping — Calm Blog
    efcl
    efcl 2025/09/09
    TypeSccriptで書かれたNode.jsアプリケーションのコードベースをどのようにtype strippingに移行したかについて。 monorepoと`node_modules`にコードがあるため、`node --experimental-strip-types`が効かないが、`--conditions`で参照するパスを解決し
  • Node.js Type Stripping Explained

    In August 2024 Node.js introduced a new experimental feature, Type Stripping, aimed at addressing a longstanding challenge in the Node.js ecosystem: running TypeScript with no configuration. Enabled by default in Node.js v23.6.0, this feature is on its way to becoming stable. This article explores the motivations behind this feature, the problems it solves, and its implications for the Node.js com

    Node.js Type Stripping Explained
    efcl
    efcl 2025/01/16
    Node.jsのTypeScriptサポートに対するアプローチについて。 また、今後のTypeScriptチームとの取り組みやロードマップについて
  • Node.jsで型安全な環境変数を扱うスニペット

    Node.js で型安全な環境変数を扱うスニペットを作りました。 next devのようなアプリケーションの起動、Playwright でのテストなどコマンドごとに渡したい環境変数のセットが異なるケースがあります。 この場合に環境変数をまとめたものを定義して、それをコマンドごとに読み込むセットを変えたいことがあります。 次のようにベタ書きしてもいいのですが、渡したい環境変数が増えると管理が大変になります。 NEXT_PUBLIC_LOCALHOST_URL=http://localhost:3000 NEXT_PUBLIC_API_URL=http://localhost:3001 NEXT_PUBLIC_IS_TEST_MODE=false FOO="bar" next dev そのため、.envのような環境変数をまとめたファイルを使いたくなります。 Node.js は--env-fil

    Node.jsで型安全な環境変数を扱うスニペット
    efcl
    efcl 2024/08/24
    Node.jsで環境変数をTypeScript定義、コマンドに対して環境変数のセットを型安全に渡す方法について
  • 1