mirror of
https://github.com/google/blockly.git
synced 2026-02-15 03:50:21 +01:00
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:
@@ -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
2
typings/core.d.ts
vendored
@@ -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
2
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user