501 Commits

Author SHA1 Message Date
Abraham Guo
3c9aea3ed1
enable @typescript-eslint/no-unused-vars (#57123) 2024-01-29 11:31:51 -08:00
Jake Bailey
2e3b8af85e
Remove use of deprecated context.parserServices (#57128) 2024-01-22 11:40:13 -08:00
Jake Bailey
1982349339
Update dependencies to latest compatible versions (#56561)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2024-01-19 12:44:01 -08:00
Jake Bailey
b334e073d5
Bump TS devDep to 5.3, hack dtsBundler to remove new comments (#56554) 2023-11-27 09:26:24 -08:00
Jake Bailey
cfd05d7a2a
Remove open-cherry-pick-pr.mjs (#56498) 2023-11-22 10:25:30 -08:00
Jake Bailey
d33917fb02
Remove a few unused scripts (#55824) 2023-11-15 16:37:54 -08:00
Ron Buckton
e1ef69d99e
pass 'detached:true' for diff tool (#56293) 2023-11-03 11:18:21 -04:00
Jake Bailey
bd902ea410
Add pre-commit dprint hook, fix post-checkout hook (#55799) 2023-09-20 13:39:19 -07:00
Jake Bailey
47e4448d57
Fix playright browser installs due to upstream breaking change (#55740) 2023-09-14 08:44:55 -07:00
Jake Bailey
4b177a186a
Ensure readJson in build throws when errors are present (#55466) 2023-09-06 11:19:33 -07:00
Jake Bailey
0f91f7dff6
Run dprint on json (#55602) 2023-09-01 15:26:01 -07:00
Sampo Kivistö
ec2bd4e252
perf: replace String and Array indexOf method calls with includes method call (#55482) 2023-08-25 11:27:55 -07:00
Jake Bailey
76f3f47b8b
Remove use of fs-extra (#55468) 2023-08-23 16:42:45 -07:00
Jimmy Wärting
3a22d3aded
Remove the dependency of "del" (#55112)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-23 16:42:37 -07:00
Jake Bailey
12d9f04d33
Remove perf-result-post (#55470) 2023-08-23 16:11:30 -07:00
Jake Bailey
b5557271a5
Make sure emitted d.ts files are LF, not CRLF (#55407) 2023-08-16 16:42:56 -07:00
Jake Bailey
5e8c261b6a
dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Jake Bailey
7eece9f798
Remove RWC runner and related infrastructure (#55187) 2023-08-07 14:35:15 -07:00
Jake Bailey
6a96b9767e
Enable eslint rule no-useless-escape (#55138) 2023-07-28 16:02:38 -07:00
Josh Goldberg ✨
0ae8ca11d2
Updated typescript-eslint to v6 (#54693)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-07-14 15:36:10 -07:00
Ron Buckton
913e556373
Add --coverage option to build scripts for tests (#54499) 2023-06-02 16:00:47 -04:00
Jake Bailey
ac55b297b7
Upgrade "boolean-trivia" lint to new "argument-trivia" lint that uses type info, has quick fixes, etc. (#53002) 2023-03-23 16:26:39 -07:00
Jake Bailey
9ccf47fec5
Move smoke test package script into scripts (#53245) 2023-03-14 15:27:07 -07:00
Jake Bailey
edc343d733
Add custom GHA report for package size (#53241) 2023-03-14 09:23:51 -07:00
Jake Bailey
3f4d16a25e
Remove lib folder (LKG) and use node_modules for building (#52226) 2023-03-07 15:34:47 -08:00
Jake Bailey
a6be79d535
Remove old test262 and dt runner infra (#53125) 2023-03-07 11:59:47 -08:00
Jake Bailey
74e61d36ad
Fix script compile (#53136) 2023-03-07 08:55:50 -08:00
Mateusz Burzyński
9f8a160d53
Attach commit as package.json#gitHead in prerelease versions (#47932) 2023-03-07 08:35:16 -08:00
Jake Bailey
c97ddac60d
Run lint in parallel with runtests-parallel (#52945)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-02-27 11:06:20 -08:00
Jake Bailey
6fe711f85a
Remove unused eslint-disable directives (#52987) 2023-02-27 11:01:37 -08:00
Jake Bailey
2a8436c529
Use eslint-plugin-simple-import-sort (#52090) 2023-02-02 14:36:21 -08:00
Jake Bailey
3d38971b7f
Fix error in herebyfile after comparison strictness change (#52376) 2023-01-23 13:49:26 -08:00
Jake Bailey
91822db8e0
Remove doc folder (old archived spec and assets), word2md script (#51791) 2023-01-05 13:49:00 -08:00
Jake Bailey
4ac75fa2b6
Remove emitDeclarationOnly hack now that build mode supports it as a flag (#51795) 2022-12-06 16:02:23 -08:00
Jake Bailey
703652cebf
Remove some files from the repo root (#51446) 2022-12-06 13:42:54 -08:00
Jake Bailey
2d2a4343b8
Reformat imports to be one identifier per line (#51565) 2022-11-17 13:42:18 -08:00
Jake Bailey
8eed2ca2dd
Consistently respect --no-typecheck flag in build (#51575) 2022-11-17 12:44:39 -08:00
Ron Buckton
e67b06e909
Simplistic watch mode for runtests (#51461)
* Simplistic watch mode for runtests

* Use esbuild WatchMode object for testRunner updates

* switch AbortController to CancelToken
2022-11-09 15:07:08 -05:00
Jake Bailey
0993c017ba
Fix JSDoc eslint rule for properties and methods (#51462) 2022-11-08 16:35:10 -08:00
Jake Bailey
d237468cda
Add --no-typecheck option for runtests/runtests-parallel/min/local (#51460) 2022-11-08 15:39:04 -08:00
Jake Bailey
b4715d3891
Replace eslint-plugin-jsdoc by extending local jsdoc-format rule, saving ~20% of our linting time (#51438) 2022-11-08 13:59:48 -08:00
Jake Bailey
6a3b4991f0
Remove leftover todo from mjs/cjs transition (#51453) 2022-11-08 12:23:30 -08:00
Jake Bailey
acfe7ac6d2 Remove mkdirp
If our build scripts target Node 10+, we can use the builtin mkdir
function in recursive mode instead.
2022-11-07 13:35:48 -08:00
Jake Bailey
bbc906dea3 Don't use needsUpdate for quick tasks
needsUpdate may be wrong when the branch changes; these ones are now so
fast thanks to being pure JS that we can just always run their contents
and be sure that the outputs are right.
2022-11-07 13:35:48 -08:00
Jake Bailey
aec2761d31 Modernize localize script, use new XML library
This file is pretty much the same as it was when it was committed in
2017; these days, we can write clearer code with async/await and new FS
APIs.

Additionally, we can improve the performance of this script by using a
newer/faster/maintained XML library. This will enable us to run the
script unconditionally in a later commit.
2022-11-07 13:35:48 -08:00
Jake Bailey
394c4ae68b Use jsonc-parser instead of LKG compiler in build
Profiling the build roughly half of the time spent loading the
build is spent importing typescript.js, for this one function.

Since this stack is already adding required devDependencies, switch
readJson to use jsonc-parser (published by the VS Code team), rather
than importing the entire LKG typescript.js library.
2022-11-07 13:35:48 -08:00
Jake Bailey
3cd72e76b2 Change build system to hereby
This eliminates a significant number of dependencies, eliminating all
npm audit issues, speeding up `npm ci` by 20%, and overall making the
build faster (faster startup, direct code is faster than streams, etc)
and clearer to understand.

I'm finding it much easier to make build changes for the module
transform with this; I can more clearly indicate task dependencies and
prevent running tasks that don't need to be run.

Given we're changing our build process entirely (new deps, new steps),
it seems like this is a good time to change things up.
2022-11-07 13:35:48 -08:00
Jake Bailey
c65142244c Add dts bundling
This adds a "small" d.ts bundler script. This script is very basic,
using Node printing to produce its output. Generally speaking, this is
inadvisable as it completely disregards name shadowing, globals, etc.
However, in our case, we don't care about the globals, and we can opt to
restructure our codebase in order to avoid conflict, which we largely
had to do anyway when we were namespaces and everything was in scope.
2022-11-07 13:35:48 -08:00
Jake Bailey
4139807e75 Add build via esbuild
This configures the existing build tasks to use esbuild by default. If
using the plain files is desired, passing `--bundle=false` will build
using plain files and still produce a runnable system.

This is only a basic build; a more efficient build is provided later
when gulp is replaced by hereby.
2022-11-07 13:34:44 -08:00
Jake Bailey
6dfa4299d7 Remove typescriptServices, protocol.d.ts, typescript_standalone.d.ts
This is the same as TypeScript PR 51026.
2022-11-07 13:34:44 -08:00