Commit Graph

29 Commits

Author SHA1 Message Date
Jack Bates
90eac4dbf8 Use pacote second attempt (#483)
* Use cached npm metadata

* Simply read the npm cache

* Use pacote
2022-06-28 10:51:02 -07:00
Andrew Branch
cbb1d4d1fa Revert "Use cached npm info (#451)" (#480)
* Revert "Use cached npm info (#451)"

This reverts commit e246b08817.

* Fix package.json version
2022-06-09 13:34:46 -07:00
Jack Bates
e246b08817 Use cached npm info (#451)
* Registry API no longer needs %2f-encoding

* Use cached npm info

* Simply read the npm cache

* Delete create-search-index.ts

* Use pacote
2022-06-09 11:41:21 -07:00
Jack Bates
a63b04ecb2 Upgrade prettier to parse template literal types (#438) 2022-04-21 11:41:58 -07:00
Andrew Branch
c558d97b34 Make dtslint config consistent with monorepo (#407)
* Make dtslint config consistent with monorepo

* Update and consolidate typescript devDependencies
2022-02-17 09:42:15 -08:00
Nathan Shively-Sanders
1abe9382a7 Update eslint in order to update ansi-regex (#340) 2021-11-02 08:47:34 -07:00
Andrew Branch
f4ab92acab Update dependencies (#313)
* Run yarn-audit-fix

* Upgrade underscore

* Upgrade lerna

* Replace npm-registry-client with @qiwi/npm-registry-client

* Upgrade y18n

* Stub missing types
2021-09-13 17:05:42 -07:00
Nathan Shively-Sanders
0c9257237f Allow passthrough anywhere. (#226)
Turns out that passthroughs need to be allowed anywhere.

Since you can only add passthroughs to `./node_modules`, you can only
add passthroughs to things in package.json, which means that that file
remains the security bottleneck.
2021-03-29 10:48:46 -07:00
Andrew Branch
5061974f41 Move publisher to Azure Functions (#221)
* 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
2021-03-25 09:57:18 -07:00
Nathan Shively-Sanders
8718815809 update linter too 2020-11-21 09:32:36 -08:00
Nathan Shively-Sanders
0fd844661a Update typescript
This allows the publisher to understand template literal types
2020-11-21 08:55:59 -08:00
Andrew Branch
a295c35177 Have bot run prettier after PRs, remove from linter 2020-11-13 10:36:10 -08:00
Nathan Shively-Sanders
04847a0bff Fix retag script path in package.json (#62) 2020-06-16 08:31:29 -07:00
Nathan Shively-Sanders
a0f10b6dd6 Set up CI with Azure Pipelines (#27)
* 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
2020-06-03 16:03:11 -07:00
Andrew Branch
6370b7e0eb Fix cross-project editor support 2020-05-19 15:09:43 -07:00
Nathan Shively-Sanders
4dbb646c0a Merge branch 'master' into add-retag 2020-05-04 13:46:59 -07:00
Andrew Branch
8ac92e5229 Fix build errors after dependency version changes or something 2020-05-04 11:47:17 -07:00
Andrew Branch
c37ed3cc74 Use yarn workspaces 2020-05-04 11:22:55 -07:00
Nathan Shively-Sanders
048fed67c8 Fix errors, run both npm and github 2020-04-30 10:39:53 -07:00
Andrew Branch
a6e4d27f2f Disable npm ci for now because it doesn’t really work 2020-04-27 13:51:34 -07:00
Andrew Branch
28b799e69b Finish(?) combined implementation 2020-04-24 15:03:52 -07:00
Andrew Branch
150f3c3cb5 Adopt changes from Microsoft repo template 2020-04-03 10:28:00 -07:00
Andrew Branch
f7d8963aac Prepare for moving to DefinitelyTyped org 2020-03-05 16:00:48 -08:00
Andrew Branch
1be91ac543 Lerna bootstrap in prepare 2020-03-05 12:18:11 -08: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
cd961cdb2e Incorporate header-parser and get jest working 2020-03-04 11:33:24 -08:00
Andrew Branch
cdc63cc6e8 WIP 2020-03-04 10:55:43 -08:00
Andrew Branch
21fb5dfae6 Initial commit 2020-03-03 14:07:57 -08:00