Skip to content

Commit ae0b4b2

Browse files
authored
feat: require TypeScript module resolution compatible exports map (#55)
* 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
1 parent 59ead17 commit ae0b4b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1236
-3617
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"baseBranch": "master",
88
"updateInternalDependencies": "patch",
99
"ignore": []
10-
}
10+
}

.changeset/twenty-planets-stare.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"bob-the-bundler": major
3+
---
4+
5+
Require specifying typescript fields in the package.json exports map for typescript modules support.
6+
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).

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ coverage/
55
dist/
66
public/
77
*.map
8+
.bob

action/action.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

action/command.d.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

action/commands/affected.d.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

action/commands/build.d.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

action/commands/pack-flat.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

action/commands/prepack.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

action/commands/run.d.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)