0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-20 12:22:52 -05:00
Commit graph

1243 commits

Author SHA1 Message Date
Marvin Hagemeister
280d10e801 WIP 2024-12-10 04:33:33 +01:00
David Sherret
da3a676d1c
fix: do not error when subpath has an @ symbol (#27290)
Closes https://github.com/denoland/deno/issues/27243
2024-12-09 13:19:08 -08:00
Marvin Hagemeister
4365959f0c WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
4d3767bdb0 WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
d8897bdd3e WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
f0a2614304 WIP 2024-12-06 21:31:28 +01:00
Marvin Hagemeister
c734214c41 WIP 2024-12-06 21:31:28 +01:00
Nathan Whitaker
ffac282805
fix(install): use locked version of jsr package when fetching exports (#27237)
Fixes #27193.
2024-12-05 18:55:35 +00:00
Marvin Hagemeister
f098dd02f7
fix(task): --recursive option not working (#27183)
We didn't handle the `--recursive` option properly in `deno task`. This
PR addresses that.

Fixes https://github.com/denoland/deno/issues/27174
2024-12-05 19:00:35 +01:00
Marvin Hagemeister
120b3811eb
fix(task): don't panic with filter on missing task argument (#27180)
We were panicing when running `deno task --filter foo` without a task
argument.

Fixes https://github.com/denoland/deno/issues/27177
2024-12-04 13:06:09 +01:00
Marvin Hagemeister
a14820586f fix: only invoke lint plugin runner when there are plugins 2024-12-04 12:08:19 +01:00
Bartek Iwańczuk
78dc5b8fe9
remove dead code 2024-12-04 04:33:13 +01:00
Bartek Iwańczuk
026a5d952a
optimize callign to js 2024-12-04 04:30:32 +01:00
Bartek Iwańczuk
3588e75c6c
comment out type decls, capture more fns 2024-12-04 03:29:05 +01:00
Bartek Iwańczuk
052a035c23
plugins can be authored in TS 2024-12-04 02:59:39 +01:00
Bartek Iwańczuk
3e1e46d4b1
almost working with regular cli worker 2024-12-04 02:37:04 +01:00
Bartek Iwańczuk
106b1f135c
load plugins from a config file 2024-12-04 01:43:19 +01:00
Bartek Iwańczuk
c2ac42485f
Merge branch 'main' into lint_plugins 2024-12-04 01:04:37 +01:00
Bartek Iwańczuk
42d9936ef8
wip 2024-12-04 00:31:58 +01:00
Marvin Hagemeister
d5b63bb642
fix(task): only pass args to root task (#27213)
When we run `deno task` with args like `deno task foo arg` the argument
should only be passed to the root task, not to its dependencies.

Fixes https://github.com/denoland/deno/issues/27206
2024-12-03 16:35:46 +01:00
Marvin Hagemeister
5a950e5cf0 drop!: temporary disable lint cache 2024-12-03 15:34:39 +01:00
Marvin Hagemeister
77526ca036 fix: show correct specifier in error output 2024-12-03 15:34:27 +01:00
Bartek Iwańczuk
37bafdc66a
remove debug log, lint 2024-12-03 13:56:47 +01:00
Bartek Iwańczuk
1217314cc7
build on stable rust 2024-12-03 13:56:30 +01:00
Marvin Hagemeister
f3745f95f4 feat: add source() method 2024-12-03 13:45:31 +01:00
Bartek Iwańczuk
a15c1165d6
remove some prints 2024-12-03 03:38:43 +01:00
Bartek Iwańczuk
fb47288f90
correctly report 2024-12-03 03:11:26 +01:00
Bartek Iwańczuk
5a6c12861f
add basic traversal 2024-12-03 02:51:29 +01:00
Bartek Iwańczuk
53936eda11
fix(fmt): stable formatting of HTML files with JS (#27164)
Closes https://github.com/denoland/deno/issues/26407
Closes https://github.com/denoland/deno/issues/26763
Closes https://github.com/denoland/deno/issues/26560
Closes https://github.com/denoland/deno/issues/26744
Closes https://github.com/denoland/deno/issues/27030
2024-12-03 02:04:55 +01:00
Bartek Iwańczuk
439d43e5fb
don't dump ast 2024-12-02 22:04:45 +01:00
Bartek Iwańczuk
dea3219dbe
measure how long i takes to run 2024-12-02 19:20:12 +01:00
Bartek Iwańczuk
f9291e419f
basic range 2024-12-02 18:29:30 +01:00
Bartek Iwańczuk
0b3697148b
cleanup 2024-12-02 18:16:58 +01:00
Bartek Iwańczuk
5639379e45
declarative 2024-12-02 17:00:49 +01:00
Bartek Iwańczuk
c9fa293b9d
load plugins from a flag 2024-12-02 15:34:53 +01:00
Bartek Iwańczuk
7f45875211
first diagnostic from a plugin! 2024-12-02 02:27:30 +01:00
Bartek Iwańczuk
bc00517f9e
req -> resp 2024-12-02 01:57:49 +01:00
Bartek Iwańczuk
1fdcbd926a
PluginRunner and PluginRunnerProxy 2024-12-02 01:38:54 +01:00
Bartek Iwańczuk
99d70c9529
actually pass AST to plugin 2024-12-01 14:26:15 +01:00
Bartek Iwańczuk
49c2d9e2bb
add visitor 2024-12-01 05:14:46 +01:00
Bartek Iwańczuk
1eb4862a36
some basic structure 2024-12-01 04:53:47 +01:00
Bartek Iwańczuk
7e8e4ae99b
basic execution 2024-12-01 03:40:59 +01:00
Bartek Iwańczuk
79b5c3e625
basic plugin loading 2024-12-01 03:21:16 +01:00
Bartek Iwańczuk
1d49b3cb0f
fix: support workspace:^ and workspace:~ version constraints (#27096)
This commit adds support for understanding "workpace:^"
and "workspace:~" version constraints in npm/pnpm workspaces.

This is done by upgrading various crates to their latest versions.

Closes https://github.com/denoland/deno/issues/26726

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2024-11-30 00:54:26 +01:00
David Sherret
f6248601f4
fix(task): forward signals to spawned sub-processes on unix (#27141)
Closes https://github.com/denoland/deno/issues/18445
2024-11-29 17:36:43 -05:00
Marvin Hagemeister
3553aa9132
fix(publish): error on missing name field (#27131)
This PR improves the error output on publish when the `name` filed is
missing:

```json
{
  "exports": "./mod.ts",
  "version": "0.0.1"
}
```

Before:

```sh
deno publish --dry-run
error: You did not specify an entrypoint in file:///Users/marvinh/dev/test/deno-pkg-timers/deno.json. Add `exports` mapping in the configuration file, eg:
{
  "name": "@scope/name",
  "version": "0.0.0",
  "exports": "<path_to_entrypoint>"
}
```

After:

```sh
deno publish --dry-run
error: Missing 'name' field in 'file:///Users/marvinh/dev/test/deno-pkg-timers/deno.json'.
```

Fixes https://github.com/denoland/deno/issues/27116
2024-11-28 18:11:36 +01:00
Marvin Hagemeister
026bbc4a9e
fix(init): support scoped npm packages (#27128)
The naming scheme for create npm packages varies depending on whether
they are scoped or not. We only supported unscoped packages prior to
this PR. This PR adds support for all the following cases which npm
supports:

- `foo` -> `create-foo`
- `@foo/bar` -> `@foo/create-bar`
- `@foo` -> `@foo/create`
- `@foo@2.0.0` -> `@foo/create@2.0.0`
- `@foo/bar@2.0.0` -> `@foo/create-bar@2.0.0`

See https://docs.npmjs.com/cli/v8/commands/npm-init#description

Fixes https://github.com/denoland/deno/issues/27127
2024-11-28 15:07:32 +01:00
Luca Casonato
32e260d55a
fix: support bun specifiers in JSR publish (#24588)
Fixes https://github.com/denoland/deno/issues/26989

---------

Co-authored-by: Nathan Whitaker <nathan@deno.com>
2024-11-28 14:51:24 +01:00
Nathan Whitaker
76daa03aa9
fix(info): resolve bare specifier pointing to workspace member (#27020)
Fixes https://github.com/denoland/deno/issues/26721

Previously, we were applying only the import map, which would result in
`@scope/foo` expanding to (e.g.) `jsr:@scope/foo@1.0.0`. Since that
didn't exist it would error and fail to resolve.
2024-11-27 13:54:26 -08:00
Bartek Iwańczuk
93adf37bdf
fix(task): strip ansi codes and control chars when printing tasks (#27100) 2024-11-27 15:54:15 +00:00