{"id":15491535,"url":"https://github.com/tcodes0/esm-repl-reload-repro","last_synced_at":"2026-02-11T13:02:37.538Z","repository":{"id":40763208,"uuid":"275473514","full_name":"tcodes0/esm-repl-reload-repro","owner":"tcodes0","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-01T21:11:39.000Z","size":1249,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T10:57:41.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcodes0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-27T23:59:01.000Z","updated_at":"2020-06-27T23:59:31.000Z","dependencies_parsed_at":"2023-02-01T01:01:35.221Z","dependency_job_id":null,"html_url":"https://github.com/tcodes0/esm-repl-reload-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tcodes0/esm-repl-reload-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcodes0%2Fesm-repl-reload-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcodes0%2Fesm-repl-reload-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcodes0%2Fesm-repl-reload-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcodes0%2Fesm-repl-reload-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcodes0","download_url":"https://codeload.github.com/tcodes0/esm-repl-reload-repro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcodes0%2Fesm-repl-reload-repro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T07:54:10.817Z","updated_at":"2026-02-11T13:02:37.518Z","avatar_url":"https://github.com/tcodes0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decache esm node code reload repro\n\n1. clone this repo\n- ensure you have yarn installed\n2. run `yarn`\n3. run `yarn repl`\n\nexpect to see repl:\n``` shell\n~\u003e yarn repl\nyarn run v1.22.4\n$ yarn workspace @zet/repl start\n$ node --loader ts-node/esm --experimental-specifier-resolution=node --experimental-top-level-await --no-warnings index.ts --transpile-only -r tsconfig-paths/register index.ts\n\u003e { 'decache reloading module': '@zet/stuff' }\n\nINFO: Welcome to the REPL\n      .help \t\t see commands\n      global.watchers \t auto-reload watchers, if you need them\n      global.s \t\t saves results, also unwraps promises. Aliases: save\n      global.__ \t last saved result\n      global.__h \t history of all saved results. Aliases: __history\n      .lastReload \t last reload status\n      .r \t\t reload manually\n      .e or .exit \t leave :(\n      .c \t\t See available code on context\n      global.stuff \t stuff package\n\n\n\u003e\n```\n\n4. type `stuff` hit enter, expect to see this\n```\n\u003e stuff\n[Module] {\n  description: 'bar'\n}\n```\n\n5. modify `packages/stuff/index.ts` in some way, like changing `description` export to another string, like `foo`.\n- `{ 'decache reloading module': '@zet/stuff' }` will print, meaning the file change was picked up.\n6. type `stuff` hit enter, expect to see this (same as before)\n```\n\u003e stuff\n[Module] {\n  description: 'bar'\n}\n```\n\n## Wanted description to have value `foo` after reload event, but it had same value.\n\nCheck branch `working` and retry these steps to see it working.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcodes0%2Fesm-repl-reload-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcodes0%2Fesm-repl-reload-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcodes0%2Fesm-repl-reload-repro/lists"}