Commit Graph

10 Commits

Author SHA1 Message Date
Andrew Branch
1ad066ac05 Ignore files outside of DT repo for module resolution when detecting used files (#625) 2023-02-28 15:30:59 -08:00
Michał Dudak
d2599f93e0 Update tar and add tests (#446) 2022-05-04 07:57:29 -07:00
Jack Bates
575fd10bc8 Use valid semvers internally (#436)
* Update test position after upgrading Prettier

* Use valid semvers internally
2022-04-21 14:26:08 -07:00
Federico Panico
61bc3462d6 Fix remove minor version number from package name (#275)
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.
2021-06-15 09:20:32 -05:00
Federico Panico
05b41ea595 Fix: Allow /* in versioned mappings. (#231)
* 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>
2021-04-08 10:17:38 -07:00
Federico Panico
fd4be462c3 fix: parser fails with older scoped packages. (#208)
* 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>
2021-03-05 13:59:19 -05:00
Nathan Shively-Sanders
f62f726c9a Map "next" to latest TS version
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.
2020-04-28 10:53:05 -07:00
Andrew Branch
06b7371736 Use eslint and prettier 2020-03-05 11:26:50 -08:00
Andrew Branch
52840bfe0a Get publisher building and tests passing 2020-03-04 17:51:48 -08:00
Andrew Branch
ed92171619 Update imports for publisher 2020-03-04 17:22:59 -08:00