Skip to content

Commit

Permalink
babel-types copy d.ts file for deprecated ast node creators into lib …
Browse files Browse the repository at this point in the history
…folder
  • Loading branch information
zxbodya committed Dec 1, 2020
1 parent 69d768d commit a42aee4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ prepublish:
IS_PUBLISH=true $(MAKE) test
# We don't want to publish TS-related files yet, except for @babel/types
rm -f packages/*/lib/**/*.d.ts{,.map}
cp packages/babel-types/src/builders/generated/deprecated.d.ts packages/babel-types/lib/builders/generated/deprecated.d.ts
rm -f codemods/*/lib/**/*.d.ts{,.map}
rm -f eslint/*/lib/**/*.d.ts{,.map}
$(MAKE) clean-tsconfig
Expand Down
2 changes: 2 additions & 0 deletions packages/babel-types/lib/builders/generated/deprecated.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// exports with old naming are not expected to be used from typescript
export {};

0 comments on commit a42aee4

Please sign in to comment.