0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/cli/tests/testdata
Bartek Iwańczuk 4d1a14ca7f
feat: auto-discover package.json for npm dependencies (#17272)
This commits adds auto-discovery of "package.json" file when running
"deno run" and "deno task" subcommands. In case of "deno run" the
"package.json" is being looked up starting from the directory of the
script that is being run, stopping early if "deno.json(c)" file is found
(ie. FS tree won't be traversed "up" from "deno.json").

When "package.json" is discovered the "--node-modules-dir" flag is
implied, leading to creation of local "node_modules/" directory - we
did that, because most tools relying on "package.json" will expect
"node_modules/" directory to be present (eg. Vite). Additionally 
"dependencies" and "devDependencies" specified in the "package.json"
are downloaded on startup. 

This is a stepping stone to supporting bare specifier imports, but
the actual integration will be done in a follow up commit.

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2023-02-20 19:14:06 +01:00
..
assets refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
bench refactor: remove Deno.core (#16881) 2023-01-24 18:54:10 +01:00
benches refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
bundle feat: Deprecate 'deno bundle' subcommand (#17695) 2023-02-14 02:13:44 +01:00
cache perf: more efficient deno cache and npm package info usage (#16592) 2022-11-11 11:33:57 -05:00
cert Revert "test: fix flaky deno_land_unsafe_ssl test (#17357)" (#17368) 2023-01-12 15:25:20 +01:00
check feat: support node built-in module imports (#17264) 2023-01-24 09:05:54 -05:00
commonjs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
compile fix(compile): ensure import map is used when specified in deno config file (#16990) 2022-12-08 11:50:09 -05:00
coverage refactor: deno_graph 0.43 upgrade (#17692) 2023-02-09 22:00:23 -05:00
doc chore: update deno_doc (#16515) 2022-11-02 18:51:37 +01:00
dynamic_import refactor: integrate deno_graph into CLI (#12369) 2021-10-11 08:26:22 +11:00
encoding
eval refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
fmt feat(fmt): make semi-colon option a boolean (#17527) 2023-01-25 15:06:00 -05:00
import_assertions upgrade: v8 10.4.132.5 (#14874) 2022-06-15 12:30:19 -04:00
import_maps feat: embed import map in the config file (#17478) 2023-01-25 21:13:40 +01:00
info feat(unstable/npm): deno info --json support for npm specifiers (#16472) 2022-10-31 10:25:46 -04:00
inspector feat: add --inspect-wait flag (#17001) 2022-12-12 15:33:30 +01:00
install feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
jsx feat: suggest adding a "node:" prefix for bare specifiers that look like built-in Node modules (#17519) 2023-01-24 15:14:49 -05:00
lint fix: upgrade deno_ast to 0.23 (#17269) 2023-01-04 18:54:54 -05:00
lsp feat: add more variants to Deno.build.os (#17340) 2023-02-11 14:25:45 +01:00
malformed_config feat: auto-discover config file (#13313) 2022-01-17 20:10:17 -05:00
module_graph
npm feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
repl refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
run feat: auto-discover package.json for npm dependencies (#17272) 2023-02-20 19:14:06 +01:00
runtime refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
subdir fix(cli): bundle command support shebang file (#17113) 2023-01-03 16:19:28 +00:00
task fix(task): output encoding issues on windows (#16794) 2022-11-24 19:37:02 -05:00
test refactor: deno_graph 0.43 upgrade (#17692) 2023-02-09 22:00:23 -05:00
tls
tsc
tsc2
type_definitions
types refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
vendor refactor: make resolver required (#17783) 2023-02-15 11:30:54 -05:00
webcrypto fix(ext/crypto): decode id-RSASSA-PSS with default params (#12147) 2021-10-01 11:14:16 +02:00
webgpu refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
workers fix(cli/graph_util): don't append referrer info for root module errors (#17730) 2023-02-11 10:36:29 -05:00
cat.ts chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
echo.ts
echo_server.ts chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
error_cause_recursive_aggregate.ts feat(cli): show error cause recursion information (#16384) 2022-10-26 15:37:45 +02:00
error_cause_recursive_aggregate.ts.out feat(cli): show error cause recursion information (#16384) 2022-10-26 15:37:45 +02:00
error_cause_recursive_tail.ts fix: add error cause in recursive cause tail (#16306) 2022-10-16 21:16:46 +02:00
error_cause_recursive_tail.ts.out feat(cli): show error cause recursion information (#16384) 2022-10-26 15:37:45 +02:00
navigator_language.ts feat: introduce navigator.language (#12322) 2022-10-18 15:33:35 +02:00
navigator_languages.ts feat: introduce navigator.language (#12322) 2022-10-18 15:33:35 +02:00
symlink_to_subdir