mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
7b5bc87f29
This changes the design of the manifest.json file to have a separate "folders" map for mapping hashed directories. This allows, for example, to add files in a folder like `http_localhost_8000/#testing_5de71/` and have them be resolved automatically as long as their remaining components are identity-mappable to the file system (not hashed). It also saves space in the manifest.json file by only including the hashed directory instead of each descendant file. ``` // manifest.json { "folders": { "https://localhost/NOT_MAPPABLE/": "localhost/#not_mappable_5cefgh" }, "modules": { "https://localhost/folder/file": { "headers": { "content-type": "application/javascript" } }, } } // folder structure localhost - folder - #file_2defn (note: I've made up the hashes in these examples) - #not_mappable_5cefgh - mod.ts - etc.ts - more_files.ts ``` |
||
---|---|---|
.. | ||
CAPITALS | ||
redirects | ||
subdir2 | ||
amd_like.js | ||
auto_print_hello.ts | ||
circular1.ts | ||
circular2.ts | ||
comment.ts | ||
config.json | ||
emittable.d.ts | ||
evil_remote_import.js | ||
export_types.ts | ||
foo_types.d.ts | ||
form_urlencoded.txt | ||
import.mts | ||
indirect_import_error.js | ||
indirect_throws.js | ||
json_1.json | ||
json_2.json | ||
json_3.json | ||
jsx_import_source_no_pragma.tsx | ||
main.ts | ||
mismatch_ext.ts | ||
mod.mjs | ||
mod1.ts | ||
mod2.ts | ||
mod3.js | ||
mod4.js | ||
mod5.mjs | ||
mod6.js | ||
mod7.js | ||
mod8.js | ||
more_decorators.ts | ||
mt_application_ecmascript.j2.js | ||
mt_application_ecmascript_jsx.j2.jsx | ||
mt_application_x_javascript.j4.js | ||
mt_application_x_javascript_jsx.j4.jsx | ||
mt_application_x_typescript.t4.ts | ||
mt_application_x_typescript_tsx.t4.tsx | ||
mt_javascript.js | ||
mt_javascript_jsx.jsx | ||
mt_text_ecmascript.j3.js | ||
mt_text_ecmascript_jsx.j3.jsx | ||
mt_text_javascript.j1.js | ||
mt_text_javascript_jsx.j1.jsx | ||
mt_text_typescript.t1.ts | ||
mt_text_typescript_tsx.t1.tsx | ||
mt_video_mp2t.t3.ts | ||
mt_video_mp2t_tsx.t3.tsx | ||
mt_video_vdn.t2.ts | ||
mt_video_vdn_tsx.t2.tsx | ||
no_ext | ||
no_js_ext | ||
polyfill.ts | ||
print_hello.ts | ||
shebang_file.js | ||
single_module.ts | ||
test_worker_basic.js | ||
throws.js | ||
tla.ts | ||
type_and_code.ts | ||
type_error.ts | ||
type_reference.d.ts | ||
type_reference.js | ||
types.d.mts | ||
unknown_ext.deno |