Created
April 13, 2023 20:21
-
-
Save anthonyec/7e009b40e582a938ea45f89d26f5bdf9 to your computer and use it in GitHub Desktop.
TS Pack output for Vector2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
π©Ί Verifying Package.json... | |
Common JS Package Detected | |
β - Exports Common JS | |
β - Exported Common JS Correct File Extension | |
β - Exports ES Module | |
β - Exports Types for developers | |
Exporting types, while optional, aid developers who consume your library. | |
Add "types": "<dist folder>/<@types folder>/index.d.ts" to give them a hand! | |
β - Limited files packaged on release | |
To limit release size, only include build folder with "files" property. | |
Package.json and README.md will automatically be packaged. | |
i.e.: | |
{ | |
"files": ["dist"], | |
} | |
β - Additional bundler support - Root | |
Additional generations of bundler support can be added with "exports" in package.json. | |
A root exports property (".") informs the consuming resolver to use CJS or ESM. | |
i.e.: | |
{ | |
"exports": { | |
".": { | |
// [...] | |
} | |
} | |
} | |
β - Additional bundler support - Root Common JS | |
Inform bundlers to use the Common JS Bundle when using the keyword "require" | |
i.e.: | |
"exports": { | |
".": { | |
"require": "./<dist>/<common js folder>/index.cjs" | |
} | |
} | |
π¦ Verifying Pack Config... | |
β - Input file configured | |
Pack is using a default configuration for it's input file (src/index.ts) | |
β - Typescript configured | |
Pack is using a default configuration for it's typescript (tsconfig.json) | |
β - Input file found | |
β - tsconfig file found | |
β 230126_vector2 git:(main) β node_modules/.bin/ts-pack -d | |
π Running Pack: @anthonyec/vector2@0.0.1 | |
π©Ί Verifying Package.json... | |
Common JS Package Detected | |
β - Exports Common JS | |
β - Exported Common JS Correct File Extension | |
β - Exports ES Module | |
β - Exports Types for developers | |
β - Exported Types Correct File Extension | |
β - Limited files packaged on release | |
To limit release size, only include build folder with "files" property. | |
Package.json and README.md will automatically be packaged. | |
i.e.: | |
{ | |
"files": ["dist"], | |
} | |
β - Additional bundler support - Root | |
Additional generations of bundler support can be added with "exports" in package.json. | |
A root exports property (".") informs the consuming resolver to use CJS or ESM. | |
i.e.: | |
{ | |
"exports": { | |
".": { | |
// [...] | |
} | |
} | |
} | |
β - Additional bundler support - Root Common JS | |
Inform bundlers to use the Common JS Bundle when using the keyword "require" | |
i.e.: | |
"exports": { | |
".": { | |
"require": "./<dist>/<common js folder>/index.cjs" | |
} | |
} | |
β - Additional bundler support - Root Types | |
Inform bundlers to use the Types declaration file | |
i.e.: | |
"exports": { | |
".": { | |
"types": "./<dist>/<@types folder>/index.d.ts" | |
} | |
} | |
π¦ Verifying Pack Config... | |
β - Input file configured | |
Pack is using a default configuration for it's input file (src/index.ts) | |
β - Typescript configured | |
Pack is using a default configuration for it's typescript (tsconfig.json) | |
β - Input file found | |
β - tsconfig file found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment