Skip to content

Commit

Permalink
fix: packaging .d.ts files (google#6327)
Browse files Browse the repository at this point in the history
* fix: dts files not being properly included

* fix: hand crafted declaration files pointing to the wrong things
  • Loading branch information
BeksOmega authored Aug 8, 2022
1 parent f07b06b commit c8dd01a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/gulpfiles/package_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};
Expand Down
2 changes: 1 addition & 1 deletion typings/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
* @author samelh@google.com (Sam El-Husseini)
*/

export * from './declarations/core/blockly';
export * from './core/blockly';
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit c8dd01a

Please sign in to comment.