Bot releases are visible (Hide)
entrypoints
to Pridepack config. entrypoints
would allow packages to build with multiple entrypoints and ship with subpackages. Upon building, exports
and typesVersions
is automatically applied based on the given entrypoints
configuration. This change also drops the dependency of pridepack to generate bundles based on exports
field.outputDir
to Pridepack config. Defaults to dist
.startEntrypoint
to Pridepack config. With the introduction of entrypoints
, you can now provide which entrypoint to start with when running pridepack start
and pridepack dev
.import.meta.env
for env variablesmain
, module
and types
..env
with either .env.production
and .env.development
Published by lxsmnsyc about 3 years ago
react
and ink
for CLI. Now uses prompts
and ora
.process.env.NODE_ENV
for the builds, allowing the use of ESM bundle in CDNs.export
conditions.ts-jest
is no longer a peer dependency (due to conflict reasons). It is still the default transformer, but users need to install ts-jest
separately (if not installed previously).start
and dev
commands for templates like fastify
.plugins
option can now be a function (through pridepack.config.js
). When using a function, it can accept an object with the properties isDev
, isCJS
and isESM
.create
and init
commands now prompts users for package information. This also generates LICENSE
file.watch
now uses incremental mode ESBuild1.0.0
package.json
The following entrypoints must now be provided. ./esm
and ./cjs
entrypoints are optional.
{
"types": "dist/types/index.d.ts",
"main": "dist/cjs/production/index.js",
"module": "dist/esm/production/index.js",
"exports": {
".": {
"development": {
"require": "./dist/cjs/development/index.js",
"import": "./dist/esm/development/index.js"
},
"require": "./dist/cjs/production/index.js",
"import": "./dist/esm/production/index.js",
"types": "./dist/types/index.d.ts"
},
"./dev": {
"production": {
"require": "./dist/cjs/production/index.js",
"import": "./dist/esm/production/index.js"
},
"require": "./dist/cjs/development/index.js",
"import": "./dist/esm/development/index.js",
"types": "./dist/types/index.d.ts"
},
"./esm": {
"development": "./dist/esm/development/index.js",
"production": "./dist/esm/production/index.js",
"default": "./dist/esm/production/index.js",
"types": "./dist/types/index.d.ts"
},
"./cjs": {
"development": "./dist/cjs/development/index.js",
"production": "./dist/cjs/production/index.js",
"default": "./dist/cjs/production/index.js",
"types": "./dist/types/index.d.ts"
}
}
}
For scripts, if you are using a start command for running the index file (e.g. fastify-based templates), you may add the following to the scripts
field:
{
"start": "pridepack start",
"dev": "pridepack dev",
}
ts-jest
ts-jest
is still the default preset for pridepack test
, however, it is no longer a peer dependency. In this case, users needs to install ts-jest
as devDependency
. Templates have also been re-adjusted.
Published by lxsmnsyc about 3 years ago
This minor release adds the bot-discord
template contributed by @TheoryOfNekomata
Published by lxsmnsyc about 4 years ago
tsconfig
is parsed in the wrong way.