Shared utilities for the Epic Workshop ecosystem.
npm install @epic-web/workshop-utilsShared utilities for the Epic Workshop ecosystem.
This package is primarily consumed by the Epic Workshop App, the epicshop CLI,
and related tooling. It exposes many subpath exports (for example@epic-web/workshop-utils/config.server).
``bash`
npm install @epic-web/workshop-utils
Any module with .server in the import path is server-only and must not be
imported into browser/client bundles.
Examples of server-only entrypoints:
- @epic-web/workshop-utils/config.server@epic-web/workshop-utils/db.server
- @epic-web/workshop-utils/git.server
-
Some tools import the env initializer for side effects:
`js`
import '@epic-web/workshop-utils/init-env'
`js
import { getErrorMessage } from '@epic-web/workshop-utils/utils'
try {
// ...
} catch (error) {
console.error(getErrorMessage(error))
}
`
This package uses explicit subpath exports. The canonical list is the exportspackage.json
map in .
Repository:
https://github.com/epicweb-dev/epicshop/tree/main/packages/workshop-utils/package.json
- Repo docs: https://github.com/epicweb-dev/epicshop/tree/main/docs`
GPL-3.0-only.