1. Use Error casts instead of type annotations to any.
2. Somehow stricter settings didn't apply to dtslint before.
3. Use tsc -b . in dtslint and dts-critic's `build` script.
Add support for minor versions when removing the version suffix from a
package name. E.g. @foo/bar@v27.1 should be @foo/bar, but currently the
regexp does not match the dot character.
* definition-parser: Use scoped names when testing mappings for relative
imports.
* miscellany/utils: When removing version number, keeps wildcard at the
end of mapping.
* miscellany/utils: When checking the existence of a version number,
catch those packages that include a wildcard path mapping.
Co-authored-by: Federico Panico <federicopanico@gmail.com>
* Functions MVP
* Actually commit root files
* Fix typo
* Enable remote build?
* Save temp directory as artifact?
* Blah
* Try to convince Oryx to use yarn
* Make independent tsconfig for deployed app
* Remote build doesn’t need to run tsc
* Whatever
* Functions have to be at the source root
* Add test function for fileshare
* Stooppppp
* SDFKLJSDFJKLDSFJKLSFDKLJ
* Make test HTTP trigger run the whole thing
* Set timeout to an hour
* Remove unused config
* App insights starts on its own, I think
* Update fs-extra
* Update node in dependencies
* Fix type error
* Use file lock, fix app insights
* Log response
* Bump timeout to 1:30
* Rename triggers for better alphabetical sort
* Update gitignore
* Update CI versions to latest two LTS
* Improve process logging + expectedFailures addition
1. Improve the error message in runWithChildProcesses to pass through
the failure reason.
2. Add mithril and mithril-global to expectedFailures, since I haven't
found a satisfactory way to make them pass on 4.3 in my two attempts at
DefinitelyTyped/DefinitelyTyped#51482 and
DefinitelyTyped/DefinitelyTyped#51765.
* yarn format
* fix: parser fails with older scoped packages.
Given a path mapping as
```
"paths": {
"@ckeditor/ckeditor5-utils": [
"ckeditor__ckeditor5-utils/v10"
]
}
```
definitions-parser failed to understand that `/v10` is not part of the
package name, and that the key of the mapping must be a scoped name.
* Resolve PR comments
- add test coverage
- simplify implementation
* Add test in definition-parser
* Use scopedPackageName in Error for missing mapping
Co-authored-by: Piotr Błażejewicz <peterblazejewicz@users.noreply.github.com>
* Add timeout to https.request.
I haven't looked at the source, but Stack Overflow claims there is no
timeout by default.
* change FetchOptions to intersect https.RequestOptions
* Add manual timeout to downloadAndExtractFile
Open question:
I'm not sure whether to add a clearTimeout call to `on("error", reject)`
* add rejectAndClearTimeout function
* Add timeout to downloadAndExtractFile
It's only used to download the tgz of DT's master.
I set the timeout to 1000 seconds and added an error-handling line? I
don't actually know how node's error handling works so I need to go and
learn the right way to do it.
* change error handling and run yarn format
* Set up CI with Azure Pipelines
[skip ci]
* Update azure-pipelines.yml for Azure Pipelines
* Update azure-pipelines.yml for Azure Pipelines
* Update azure-pipelines.yml for Azure Pipelines
Try the OTHER nondescript guid!
* Update azure-pipelines.yml for Azure Pipelines
Maybe the other guid doesn't have version 3?
* Update azure-pipelines.yml for Azure Pipelines
Try not specifying the version at all
* Update azure-pipelines.yml for Azure Pipelines
Version is required, so try version 1
* Update azure-pipelines.yml for Azure Pipelines
HA HA. Try it on Windows.
* Update azure-pipelines.yml for Azure Pipelines
Remove lint because windows is stupid
* Update azure-pipelines.yml for Azure Pipelines
Daring: don't install node_modules, then maybe we won't have any problems
* Update azure-pipelines.yml for Azure Pipelines
Try guardian export for logging error output
* Update azure-pipelines.yml for Azure Pipelines
* Update azure-pipelines.yml for Azure Pipelines
* talk around placeholder password
* Update azure-pipelines.yml for Azure Pipelines
Don't need to export results as an artifact after all.
* Update azure-pipelines.yml for Azure Pipelines
run `yarn tslint`
* add tslint (with failures intact)
* Disable non-security-related rules
1. prefer-type-cast: false, no-angle-bracket-type-assertion: true. `as`
postfix casts are better, actually.
2. no-relative-imports: there's no security reason to enforce this, and
internal relative imports are standard in JS.
3. no-single-line-block-comments: a rule created by the
vertical-line-feed lobby.
4. no-backbone-get-set-outside-model: this project doesn't use backbone.
5. function-name: change STATIC_METHOD name requirement to staticName,
because it is 2020, not 1989.
* Add tslint-microsoft-contrib and fix failures
1. disable import-name: This rule doesn't understand default imports and
doesn't seem to target security.
2. prefer-array-literal: Allow single-argument calls like `new
Array(12)`.
3. no-constant-condition: Allow `while (true)` loops.
4. disable no-function-expression: This rule isn't needed with type checking.
5. disable max-func-body-length: This rule doesn't understand nested functions.
I also disabled specific uses of rules:
1. function-name in types for fstream, since that's a dependency.
2. non-literal-fs-path for uses of the publisher's filesystem wrapper
type. The wrapper is created only on Definitely Typed directories, so
can't access files outside of that directory.
3. non-literal-fs-path for reading a log from disk.
* move tslint to subdirectory
* remove package-lock.json
* remove extraneous space
* move tslint to devDeps
* fix package.json syntax
typescript-installer.install accepts "next" so that it can install
`typescript@next`, but should install it to `typescript-installs/4.0/`
(to use the current `next` as an example).
perf (currently) and dtslint (soon) rely on
typescript-installer.typeScriptPath to do this translation as well, so
that's where I added the test.
2. Switch installAll to use shipped + next
3. Clean up some TODOs/comments.
I still need to update the step-by-step instructions at the top of
typescript-versions.