Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
c214a2d
Rename `types` to `thirs-party-types`
Jan 2, 2023
6dd2f61
Copy `index.d.ts` from `@types/prettier`
Jan 2, 2023
8ebe6f9
Make public APIs async
Jan 2, 2023
78143d1
Add missing `formatAST`
Jan 2, 2023
6b0ad37
Fix `CustomParser`
Jan 2, 2023
9f47737
Fix `Parser.parse` signature
Jan 2, 2023
c4ae339
Add comment
Jan 2, 2023
02252ce
Add `standalonw.d.ts`
Jan 2, 2023
ba22cdd
first implement
Jan 6, 2023
1ba3e37
Fix path
Jan 7, 2023
ef57115
Add missing parser `.d.ts`
Jan 7, 2023
1a51066
Fix
Jan 9, 2023
f484d0c
Fix path
Jan 20, 2023
3c3307c
Introduce valid tests
Jan 20, 2023
e6d03a7
Add unit tests for dts files
Jan 21, 2023
f65ae80
Add unit tests
Jan 21, 2023
e8fe765
Simplify unit testing
Jan 21, 2023
3a67a9e
Tweaks structures
Jan 21, 2023
1796fbb
Revert needless change
Jan 21, 2023
83b3496
Fix types path
Jan 21, 2023
61151eb
Introduce `ts-expect`
Jan 21, 2023
1bad2f2
Fix doc utils api
Jan 21, 2023
95c5865
Add AstPath API
Jan 21, 2023
b92f929
Fix API
Jan 21, 2023
d9e7714
Fix tests
Jan 21, 2023
7064f46
Fix changelog
Jan 21, 2023
73a1a2a
Move dts
Feb 5, 2023
228c001
Update module specifiers
Feb 5, 2023
8eb2a99
Remove generate dts config file
Feb 5, 2023
cc5586f
Update build scripts
Feb 5, 2023
f72c25e
Fix type errors
Feb 5, 2023
b73e3e8
Refactor with namespace imports
Feb 5, 2023
887e862
Update comments
Feb 5, 2023
d732f31
Fix build script
Feb 5, 2023
baba6de
Improve build script
fisker Feb 14, 2023
62c997b
`typing` -> `types`
fisker Feb 14, 2023
11d1c82
Clean up
fisker Feb 14, 2023
18d8014
Minor tweak
fisker Feb 14, 2023
7af13d0
Minor tweak
fisker Feb 14, 2023
1d60730
Modify `exports` field
fisker Feb 14, 2023
f58384c
Fix paths in builder
Feb 20, 2023
2c680ad
Refactor
Feb 20, 2023
53b7907
Refactor
Feb 20, 2023
99db4bd
Address review
Feb 20, 2023
d1ab837
Update changelog
Feb 20, 2023
7b4e39f
Address reviews
Feb 20, 2023
4e91996
Remove `since` from tests
Feb 20, 2023
173cb5e
Improve utils type def
Feb 20, 2023
ff9e431
Mark deprecated methods
Feb 20, 2023
7b351ce
Address review
Feb 20, 2023
aa519c9
Move docs types
Feb 20, 2023
9465ed1
Address review
Feb 20, 2023
59e9e88
Update c8 config
Feb 20, 2023
1743161
Minor tweak
fisker Feb 21, 2023
d1cea96
Merge branch 'next' into dts
Feb 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modify exports field
  • Loading branch information
fisker committed Feb 14, 2023
commit 1d6073058b3c6225eb04d551bdd54c625be69063
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"exports": {
".": {
"require": "./src/index.cjs",
"types": "./src/index.d.ts",
"default": "./src/index.js"
},
"./*": "./*"
Expand Down
3 changes: 2 additions & 1 deletion scripts/build/build-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ async function buildPackageJson({ file, files }) {
packageJson.exports = {
".": {
require: "./index.cjs",
types: "./index.d.ts",
default: "./index.mjs",
},
"./*": "./*",
Expand All @@ -32,6 +33,7 @@ async function buildPackageJson({ file, files }) {
file.isPlugin ? `./plugins/${basename}` : `./${basename}`,
{
require: `./${file.output.file}`,
types: `./${file.output.file.replace(/\.js$/, ".d.ts")}`,
default: `./${file.output.file.replace(/\.js$/, ".mjs")}`,
},
];
Expand Down Expand Up @@ -73,7 +75,6 @@ async function buildPackageJson({ file, files }) {
"node -e \"assert.equal(require('.').version, require('..').version)\"",
};
packageJson.files = files.map(({ output: { file } }) => file).sort();
packageJson.types = "./index.d.ts";

await writeJson(path.join(DIST_DIR, file.output.file), packageJson);
}
Expand Down