Skip to content

Commit a5afc8f

Browse files
committed
Use type generator binary instead of gulp script.
The type generator can now verify types all by itself, so it's simpler to just use this flag than to integrate with gulp. Also bump package-lock to pick up latest Analyzer release, which fixes a bug that was causing the type generator to throw an exception relating to enqueueDebouncer.
1 parent 7791ee9 commit a5afc8f

4 files changed

Lines changed: 1698 additions & 3224 deletions

File tree

gulpfile.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,6 @@ gulp.task('generate-externs', gulp.series('clean', async () => {
115115
await fs.writeFile('externs/closure-types.js', `${header}${declarations}`);
116116
}));
117117

118-
gulp.task('generate-typescript', async () => {
119-
let genTs = require('@polymer/gen-typescript-declarations').generateDeclarations;
120-
await del(['**/*.d.ts', '!interfaces.d.ts', '!node_modules/**']);
121-
const config = await fs.readJson(path.join(__dirname, 'gen-tsd.json'));
122-
const files = await genTs(__dirname, config);
123-
for (const [filePath, contents] of files) {
124-
await fs.outputFile(path.join(__dirname, filePath), contents);
125-
}
126-
});
127-
128118
const runClosureOnly = ({lintOnly}) => () => {
129119
let entry, splitRx, joinRx, addClosureTypes;
130120

@@ -274,7 +264,6 @@ gulp.task('lint-eslint', function() {
274264
gulp.task('lint', gulp.series('lint-eslint'));
275265

276266
// TODO(timvdlippe): Add back `'generate-externs',` once we can generate externs again
277-
gulp.task('generate-types', gulp.series('generate-typescript'));
278267

279268
gulp.task('update-version', () => {
280269
return gulp.src('lib/utils/boot.js')

0 commit comments

Comments
 (0)