Commit 41f6e4d
committed
fix: add index.mjs wrapper so default import works without import attributes
Previously the '.' export pointed directly at registry.json, requiring
consumers to write `import x from '@framers/agentos-skills/registry.json'
with { type: 'json' }` (Node 22+) or the deprecated assert syntax.
Bare `import x from '@framers/agentos-skills'` failed with
'needs an import attribute of type: json'.
The new index.mjs reads registry.json via fs at runtime so it works on
every supported Node version without flags or attributes.1 parent 2af96b6 commit 41f6e4d
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments