Skip to content

Commit

Permalink
feat: require TypeScript module resolution compatible exports map (#55)
Browse files Browse the repository at this point in the history
* feat: **BREAKING** require TypeScript module resolution compatible exports map

* chore: update build artifacts

* test: update test fixtures

* chore: update github action artifact

* chore: remove the github action stuff which is no longer used

* chore: add changeset

* feat: add bootstrap command for easily adding all relevant keys/values to the package.json files

* fix: make check for identifying a single package repository more robust

* fix: adjust boostrap preset

* fix: update package.json validation

* fix: please webpack module resolution

* chore: drop bundling and restructure output files

* fix: regex expression

* fix: exclude test files from being copied over to the final package

* feat: add jest resolver to bob

* chore: increase timeout

* chore: remove the prepack command

* chore: change wording

* chore: add bob check command

* fix: use correct esm target

* feat: add timeout for require/import checks

* chore: fix cli support

* fix: run timeout after module got loaded

* fix: cover copy functionality with tests
  • Loading branch information
n1ru4l authored Jun 27, 2022
1 parent 59ead17 commit ae0b4b2
Show file tree
Hide file tree
Showing 41 changed files with 1,236 additions and 3,617 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
}
6 changes: 6 additions & 0 deletions .changeset/twenty-planets-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"bob-the-bundler": major
---

Require specifying typescript fields in the package.json exports map for typescript modules support.
Learn more on the [TypeScript 4.7 release notes](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing).
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage/
dist/
public/
*.map
.bob
1 change: 0 additions & 1 deletion action/action.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions action/command.d.ts

This file was deleted.

19 changes: 0 additions & 19 deletions action/commands/affected.d.ts

This file was deleted.

6 changes: 0 additions & 6 deletions action/commands/build.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions action/commands/pack-flat.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions action/commands/prepack.d.ts

This file was deleted.

19 changes: 0 additions & 19 deletions action/commands/run.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions action/commands/runify.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions action/commands/validate.d.ts

This file was deleted.

26 changes: 0 additions & 26 deletions action/config.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions action/index.d.ts

This file was deleted.

Loading

0 comments on commit ae0b4b2

Please sign in to comment.