├── .config ├── .github ├── dreg_logo_transparent.png └── workflows │ └── deploys.yml ├── .vscode └── settings.json ├── README.md ├── analyzer ├── README.md ├── analyzer.ts ├── checkIfSane.ts ├── deps.ts ├── determineFullModuleName.ts ├── diveFile.ts ├── getEntry.ts ├── getReferences.ts ├── mod.ts ├── sanityCheck.ts ├── spinner.ts └── tests │ ├── fixtures │ └── requireSyntax │ │ ├── exports.js │ │ ├── importRequire.ts │ │ ├── moduleExports.js │ │ ├── require.js │ │ └── requireExport.js │ └── sandbox.ts ├── fly.prod.toml ├── fly.toml ├── polyfill ├── chalk.ts ├── fs.ts ├── path.ts ├── process.ts └── supports-color.ts ├── registry.json ├── registry.ts ├── runtime ├── README.md ├── deps.ts ├── getSource.ts ├── handlePolyfills.ts ├── handleRegistryRequest.ts ├── mod.ts ├── runtimeRegistry.ts └── types │ └── registry.ts ├── scripts.yml ├── scripts └── generateRegistryTs.ts ├── server.ts ├── utils ├── constants.ts ├── deps.ts ├── determineLocalDepExtension.ts ├── esmSyntaxNodes.ts ├── fetchPj.ts ├── generateRegistryEntry.ts ├── getDependencyMap.ts ├── isRegistryEntry.ts ├── replaceExportAssignment.ts ├── replaceImportEqualsDecl.ts └── resolveDependencyMap.ts └── vendor └── clispinners ├── deps.ts ├── mod.ts ├── spinners.ts └── util.ts /.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/.config -------------------------------------------------------------------------------- /.github/dreg_logo_transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/.github/dreg_logo_transparent.png -------------------------------------------------------------------------------- /.github/workflows/deploys.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/.github/workflows/deploys.yml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/README.md -------------------------------------------------------------------------------- /analyzer/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/README.md -------------------------------------------------------------------------------- /analyzer/analyzer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/analyzer.ts -------------------------------------------------------------------------------- /analyzer/checkIfSane.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /analyzer/deps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/deps.ts -------------------------------------------------------------------------------- /analyzer/determineFullModuleName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/determineFullModuleName.ts -------------------------------------------------------------------------------- /analyzer/diveFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/diveFile.ts -------------------------------------------------------------------------------- /analyzer/getEntry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/getEntry.ts -------------------------------------------------------------------------------- /analyzer/getReferences.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/getReferences.ts -------------------------------------------------------------------------------- /analyzer/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/mod.ts -------------------------------------------------------------------------------- /analyzer/sanityCheck.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/sanityCheck.ts -------------------------------------------------------------------------------- /analyzer/spinner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/spinner.ts -------------------------------------------------------------------------------- /analyzer/tests/fixtures/requireSyntax/exports.js: -------------------------------------------------------------------------------- 1 | exports.foo = ""; 2 | -------------------------------------------------------------------------------- /analyzer/tests/fixtures/requireSyntax/importRequire.ts: -------------------------------------------------------------------------------- 1 | import x = require("./moduleExports"); 2 | -------------------------------------------------------------------------------- /analyzer/tests/fixtures/requireSyntax/moduleExports.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /analyzer/tests/fixtures/requireSyntax/require.js: -------------------------------------------------------------------------------- 1 | var x = require("./moduleExports"); 2 | -------------------------------------------------------------------------------- /analyzer/tests/fixtures/requireSyntax/requireExport.js: -------------------------------------------------------------------------------- 1 | var x = require("./exports").foo; 2 | -------------------------------------------------------------------------------- /analyzer/tests/sandbox.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/analyzer/tests/sandbox.ts -------------------------------------------------------------------------------- /fly.prod.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/fly.prod.toml -------------------------------------------------------------------------------- /fly.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/fly.toml -------------------------------------------------------------------------------- /polyfill/chalk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/polyfill/chalk.ts -------------------------------------------------------------------------------- /polyfill/fs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/polyfill/fs.ts -------------------------------------------------------------------------------- /polyfill/path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/polyfill/path.ts -------------------------------------------------------------------------------- /polyfill/process.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/polyfill/process.ts -------------------------------------------------------------------------------- /polyfill/supports-color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/polyfill/supports-color.ts -------------------------------------------------------------------------------- /registry.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/registry.json -------------------------------------------------------------------------------- /registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/registry.ts -------------------------------------------------------------------------------- /runtime/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/README.md -------------------------------------------------------------------------------- /runtime/deps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/deps.ts -------------------------------------------------------------------------------- /runtime/getSource.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/getSource.ts -------------------------------------------------------------------------------- /runtime/handlePolyfills.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/handlePolyfills.ts -------------------------------------------------------------------------------- /runtime/handleRegistryRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/handleRegistryRequest.ts -------------------------------------------------------------------------------- /runtime/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/mod.ts -------------------------------------------------------------------------------- /runtime/runtimeRegistry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/runtimeRegistry.ts -------------------------------------------------------------------------------- /runtime/types/registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/runtime/types/registry.ts -------------------------------------------------------------------------------- /scripts.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/scripts.yml -------------------------------------------------------------------------------- /scripts/generateRegistryTs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/scripts/generateRegistryTs.ts -------------------------------------------------------------------------------- /server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/server.ts -------------------------------------------------------------------------------- /utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/constants.ts -------------------------------------------------------------------------------- /utils/deps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/deps.ts -------------------------------------------------------------------------------- /utils/determineLocalDepExtension.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/determineLocalDepExtension.ts -------------------------------------------------------------------------------- /utils/esmSyntaxNodes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/esmSyntaxNodes.ts -------------------------------------------------------------------------------- /utils/fetchPj.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/fetchPj.ts -------------------------------------------------------------------------------- /utils/generateRegistryEntry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/generateRegistryEntry.ts -------------------------------------------------------------------------------- /utils/getDependencyMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/getDependencyMap.ts -------------------------------------------------------------------------------- /utils/isRegistryEntry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/isRegistryEntry.ts -------------------------------------------------------------------------------- /utils/replaceExportAssignment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/replaceExportAssignment.ts -------------------------------------------------------------------------------- /utils/replaceImportEqualsDecl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/replaceImportEqualsDecl.ts -------------------------------------------------------------------------------- /utils/resolveDependencyMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/utils/resolveDependencyMap.ts -------------------------------------------------------------------------------- /vendor/clispinners/deps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/vendor/clispinners/deps.ts -------------------------------------------------------------------------------- /vendor/clispinners/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/vendor/clispinners/mod.ts -------------------------------------------------------------------------------- /vendor/clispinners/spinners.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/vendor/clispinners/spinners.ts -------------------------------------------------------------------------------- /vendor/clispinners/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denofn/dreg/HEAD/vendor/clispinners/util.ts --------------------------------------------------------------------------------