fix: packaging .d.ts files (#6327)

* fix: dts files not being properly included

* fix: hand crafted declaration files pointing to the wrong things
This commit is contained in:
Beka Westberg
2022-08-08 21:32:03 +00:00
committed by GitHub
parent f07b06b6d5
commit c8dd01ac87
3 changed files with 3 additions and 3 deletions

View File

@@ -389,7 +389,7 @@ function packageDTS() {
'typings/msg/msg.d.ts',
];
return gulp.src(handwrittenSrcs, {base: 'typings'})
.pipe(gulp.src(`${BUILD_DIR}/${TYPINGS_BUILD_DIR}/**/*.d.ts`))
.pipe(gulp.src(`${TYPINGS_BUILD_DIR}/**/*.d.ts`))
.pipe(gulp.replace('AnyDuringMigration', 'any'))
.pipe(gulp.dest(RELEASE_DIR));
};

2
typings/core.d.ts vendored
View File

@@ -9,4 +9,4 @@
* @author samelh@google.com (Sam El-Husseini)
*/
export * from './declarations/core/blockly';
export * from './core/blockly';

2
typings/index.d.ts vendored
View File

@@ -9,6 +9,6 @@
* @author samelh@google.com (Sam El-Husseini)
*/
export * from './declarations/core/blockly';
export * from './core/blockly';
export * as libraryBlocks from './blocks'; // Handcrafted file.
export const JavaScript: any;