David Sherret
d2d62b6312
refactor(npm): add CliNodeResolver ( #18742 )
2023-04-17 15:36:23 -04:00
David Sherret
9c255b2843
refactor: ProcState::build
-> ProcState::from_flags
( #18672 )
2023-04-12 14:54:28 -04:00
David Sherret
d07aa4a072
refactor(npm): use deno_npm and deno_semver ( #18602 )
2023-04-06 18:46:44 -04:00
David Sherret
84bafd11d5
fix: lazily surface errors in package.json deps parsing ( #17974 )
...
Closes #17941
2023-03-03 18:27:05 -04:00
David Sherret
033b70af19
fix(npm): lazily install package.json dependencies only when necessary ( #17931 )
...
This lazily does an "npm install" when any package name matches what's
found in the package.json or when running a script from package.json
with deno task.
Part of #17916
Closes #17928
2023-02-24 19:35:43 -05:00
Bartek Iwańczuk
4773d07974
feat(task): adjust warning ( #17904 )
...
Put it on a single line and remove coloring.
2023-02-23 20:43:18 +01:00
Bartek Iwańczuk
214bdbbc2b
feat(task): add warning about package.json scripts support ( #17900 )
2023-02-23 16:41:28 +01:00
David Sherret
b15f9e60a0
feat(task): support scripts in package.json ( #17887 )
...
This is a super basic initial implementation. We don't create a
`node_modules/.bin` folder at the moment and add it to the PATH like we
should which is necessary to make command name resolution in the
subprocess work properly (ex. you run a script that launches another
script that then tries to launch an "npx command"... this won't work
atm).
Closes #17492
2023-02-22 22:45:35 -05:00
David Sherret
f5840bdcd3
chore: upgrade to Rust 1.67 ( #17548 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-27 10:43:16 -05:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
David Sherret
2d4c46c975
refactor: create util folder, move nap_sym to napi/sym, move http_cache to cache folder ( #16857 )
2022-11-28 17:28:54 -05:00
Bartek Iwańczuk
23bb0abc23
feat(task): remove warning about being unstable ( #16281 )
...
`deno task` has been in use for a few months now. It was very
well received and there are not many complaints. I feel like
this warning might be discouraging for some users and we don't
really plan to make drastic changes to it (besides adding support
for globs in unspecified future).
2022-10-18 14:39:04 +02:00
David Sherret
872dc9b1df
feat(unstable/task): add INIT_CWD
env var ( #16110 )
2022-10-15 16:46:28 -04:00
David Sherret
8c4420c005
refactor: rename RootConfig
to CliOptions
( #15007 )
2022-06-29 11:51:11 -04:00
David Sherret
01adbb1efb
refactor: add RootConfig
( #14985 )
2022-06-28 16:45:55 -04:00
David Sherret
e1c90963fb
refactor: create args
folder ( #14982 )
2022-06-27 16:54:09 -04:00
Kayla Washburn
94068b7109
feat(task): add --cwd
flag for configuring the working directory ( #14823 )
2022-06-08 15:30:16 -06:00
David Sherret
748aff1e94
feat(task): add unstable warning to deno task
( #13966 )
2022-03-15 21:24:07 -04:00
Bartek Iwańczuk
9d9e60b694
feat(task): log task script ( #13922 )
...
Logs task name and associated script with additional args.
This is disabled if "--quiet/-q" flag is present.
2022-03-12 02:35:18 +01:00
Bartek Iwańczuk
5ebaa7943a
feat(task): allow colons in task name ( #13918 )
2022-03-11 18:22:45 -05:00
Bartek Iwańczuk
47f22777be
feat: "deno task" subcommand ( #13725 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-03-10 20:56:14 -05:00