Nguyen Thanh Dat
e2d742b86d
fix(dev-command): the script is the token after run, not any token
...
Scanning every candidate token fixed the npm-config bypass but blocked valid
commands: `npm run run dev` runs a script called `run` with `dev` as its
argument, and `npm run build dev` passes `dev` to build. Both were refused
outside tmux.
Anchor on the keyword instead. With a `run`, the script is the token right
after it and everything later is that script's argument. Without one
(`pnpm dev`), the first bare token is the script — held rather than returned,
because a `run` further along proves it was an option value, which is what
keeps `npm --userconfig /tmp/npmrc run dev` blocked without needing to know
npm's whole config surface.
2026-08-24 11:53:55 +07:00
..
2026-06-20 17:30:52 -04:00
2026-07-08 17:12:48 -04:00
2026-06-16 02:08:14 -04:00
2026-08-13 18:29:21 -04:00
2026-08-13 18:03:37 -04:00
2026-06-07 13:00:08 +08:00
2026-08-12 00:34:15 -04:00
2026-06-07 13:00:08 +08:00
2026-08-12 18:12:49 -04:00
2026-04-01 16:09:54 -07:00
2026-08-13 16:42:51 -04:00
2026-06-07 13:00:08 +08:00
2026-07-26 03:20:15 -07:00
2026-07-27 11:11:29 -07:00
2026-07-26 03:20:15 -07:00
2026-08-06 15:39:49 -04:00
2026-08-12 00:43:58 -04:00
2026-08-12 00:43:58 -04:00
2026-08-12 00:43:58 -04:00
2026-08-13 17:30:38 -04:00
2026-08-06 15:39:49 -04:00
2026-07-23 19:28:55 -07:00
2026-05-11 23:44:06 -04:00
2026-04-30 02:19:57 -04:00
2026-08-24 11:53:55 +07:00
2026-05-11 02:53:28 -04:00
2026-08-04 21:42:25 -04:00
2026-06-11 14:05:42 -04:00
2026-05-17 20:32:09 -04:00
2026-08-06 15:39:49 -04:00
2026-08-12 18:41:33 -04:00
2026-08-13 16:42:51 -04:00
2026-08-06 15:39:49 -04:00
2026-03-20 01:38:13 -07:00
2026-08-13 16:42:51 -04:00
2026-08-13 18:02:06 -04:00
2026-08-13 16:42:51 -04:00
2026-08-13 18:03:37 -04:00
2026-08-06 15:39:49 -04:00
2026-08-10 21:46:24 -04:00
2026-08-07 14:53:13 -04:00
2026-06-29 15:55:01 -07:00
2026-07-27 11:11:29 -07:00
2026-04-05 14:37:28 -07:00
2026-07-26 02:46:59 -07:00
2026-08-08 17:06:18 -04:00
2026-08-13 16:42:51 -04:00
2026-08-15 21:47:57 -04:00
2026-05-11 03:35:42 -04:00
2026-03-14 12:55:25 -07:00
2026-02-12 15:57:20 -08:00
2026-07-19 19:39:23 +02:00
2026-08-06 15:39:49 -04:00
2026-07-17 17:11:09 -04:00
2026-07-25 22:21:27 -07:00
2026-06-29 15:54:49 -07:00
2026-06-07 13:27:00 +08:00
2026-06-07 13:27:00 +08:00
2026-05-19 04:57:10 -04:00
2026-03-24 23:08:27 -04:00
2026-07-03 21:10:45 -07:00
2026-03-07 14:47:49 -08:00
2026-07-28 21:32:42 -04:00
2026-08-06 15:39:49 -04:00
2026-08-06 15:39:49 -04:00
2026-03-18 03:03:31 -07:00
2026-08-04 00:27:33 -04:00
2026-06-07 13:27:00 +08:00
2026-07-28 21:32:42 -04:00