# @theorchard/frontend-cli

## 4.3.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@2.1.7

## 4.3.0

### Minor Changes

-   Suggest the upgrade command for the detected package manager instead of always yarn

## 4.2.7

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-core@3.1.0
    -   @theorchard/frontend-cli-i18n@2.1.6

## 4.2.6

### Patch Changes

-   SEC: lodash from 4.17.23 to 4.18.1
-   Updated dependencies
    -   @theorchard/frontend-cli-core@3.0.2
    -   @theorchard/frontend-cli-i18n@2.1.5

## 4.2.5

### Patch Changes

-   SEC: lodash-es from 4.17.23 to 4.18.1
-   Updated dependencies
    -   @theorchard/frontend-cli-core@3.0.1
    -   @theorchard/frontend-cli-i18n@2.1.4

## 4.2.4

### Patch Changes

-   Fix support for node 22+

## 4.2.3

### Patch Changes

-   CLI name, version, and description are now read directly from `package.json` instead of being resolved at runtime via a hardcoded `node_modules` path in `createContext` from `frontend-cli-core`, which was unreliable.
-   Updated dependencies
    -   @theorchard/frontend-cli-core@3.0.0
    -   @theorchard/frontend-cli-i18n@2.1.3

## 4.2.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-core@2.1.1
    -   @theorchard/frontend-cli-i18n@2.1.2

## 4.2.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-core@2.1.0
    -   @theorchard/frontend-cli-i18n@2.1.1

## 4.2.0

### Minor Changes

-   Set minimal node version requirement to v20

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@2.1.0
    -   @theorchard/frontend-cli-webpack@2.1.0

## 4.1.0

### Minor Changes

-   Remove transitive got dependency to address security vulnerabilities

## 4.0.5

### Patch Changes

-   Bump lodash to 4.17.23 to fix vulnerabilities
-   Updated dependencies
    -   @theorchard/frontend-cli-core@2.0.2
    -   @theorchard/frontend-cli-i18n@2.0.9

## 4.0.4

### Patch Changes

-   Fix plugin loading in pnpm

## 4.0.3

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@2.0.8

## 4.0.2

### Patch Changes

-   Add explicit node to tsconfig types

## 4.0.1

### Patch Changes

-   Fix version cache corruption when fetching remote versions fails

## 4.0.0

### Major Changes

The default dependency on `frontend-cli-webpack` has been removed.
You must either add a dev dependency on `frontend-cli-webpack` or `frontend-cli-vite`.

To continue using webpack, run `yarn add -D @theorchard/frontend-cli-webpack`.

## 3.1.12

### Patch Changes

-   Add support of Win32 paths

## 3.1.11

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-webpack@2.0.4

## 3.1.10

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@2.0.7

## 3.1.9

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-webpack@2.0.3

## 3.1.8

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-webpack@2.0.2

## 3.1.7

### Patch Changes

-   @theorchard/frontend-cli-i18n@2.0.6

## 3.1.6

### Patch Changes

-   @theorchard/frontend-cli-i18n@2.0.5

## 3.1.5

### Patch Changes

-   @theorchard/frontend-cli-i18n@2.0.4

## 3.1.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@2.0.3

## 3.1.3

### Patch Changes

-   @theorchard/frontend-cli-i18n@2.0.2

## 3.1.2

### Patch Changes

-   Fixes a bug where dynamically loading dotenv sometimes hangs.

## 3.1.1

### Patch Changes

-   Fixes an issue where the plugins were imported using logic only available in node 20.
-   Updated dependencies
    -   @theorchard/frontend-cli-core@2.0.1
    -   @theorchard/frontend-cli-webpack@2.0.1
    -   @theorchard/frontend-cli-i18n@2.0.1

## 3.1.0

### Minor Changes

-   Restricted to NodeJS >= 18
-   Package is now exposed as an ESM module.
-   Updated dependencies
    -   @theorchard/frontend-cli-core@2.0.0
    -   @theorchard/frontend-cli-i18n@2.0.0
    -   @theorchard/frontend-cli-webpack@2.0.0

## 3.0.12

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-core@1.1.3
    -   @theorchard/frontend-cli-i18n@1.17.3
    -   @theorchard/frontend-cli-webpack@1.1.6

## 3.0.11

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-core@1.1.2
    -   @theorchard/frontend-cli-i18n@1.17.2
    -   @theorchard/frontend-cli-webpack@1.1.5

## 3.0.10

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.17.1

## 3.0.9

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.17.0

## 3.0.8

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.16.0

## 3.0.7

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.15.6

## 3.0.6

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-webpack@1.1.4

## 3.0.5

### Patch Changes

-   Fixed hook name output
-   Added validate task log message
-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.15.5

## 3.0.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.15.4

## 3.0.3

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-webpack@1.1.3

## 3.0.2

### Patch Changes

-   Outputs current task name
-   Updated dependencies
    -   @theorchard/frontend-cli-core@1.1.1
    -   @theorchard/frontend-cli-webpack@1.1.2
    -   @theorchard/frontend-cli-i18n@1.15.3

## 3.0.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-core@1.1.0
    -   @theorchard/frontend-cli-i18n@1.15.2
    -   @theorchard/frontend-cli-webpack@1.0.3

## 3.0.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-webpack@1.1.0

## 3.0.0

### Major Changes

frontend-cli has been reworked to support both Vite and Webpack.
Webpack is still the default engine, but can be swapped out using the new `@theorchard/frontend-cli-vite` package.

### Breaking Changes

Previously we automatically synced against POEditor when you ran the `frontend build` command. This is now removed, and you will need to explicitly run the `frontend i18n:sync` command before building. So to keep the previous behavior, change your package.json build script to:

```json
{
    "scripts": {
        "build": "frontend i18n:sync && frontend build"
    }
}
```

The options "enableLocaleWorkspace" and "enableLocaleTypescript" are deprecated and should be removed from frontend.json.

Typescript generation is now enabled by default for all projects.
Global formatting functions ($t and $tx) needs to be explicitly enabled using the following config:

```json
{
    "i18n": {
        "enableGlobalFormatters": true
    }
}
```

## 2.36.0

### Minor Changes

-   Adds support to output bundle manifest.

## 2.35.5

### Patch Changes

-   Removes the duplicate module package since it does not support node > 14.

## 2.35.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.14.0

## 2.35.3

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.13.0

## 2.35.2

### Patch Changes

-   Inline the `IGNORED_ERRORS` constant so it is available in the webpack runtime.

## 2.35.1

### Patch Changes

-   Ignore warnings about ResizeObserver so it does not show in the error overlay.

## 2.35.0

### Minor Changes

-   Fixed bug where the SWC loader did not respect the enableFastRefresh flag.
-   Updates webpack library dependencies.
-   Added "debug" prefix for debug log entries.

## 2.34.1

### Patch Changes

-   Removes timestamp from log output.
-   Fixes missing error messages from type checking.

## 2.34.0

### Minor Changes

-   Replaced argument `--log-level` with `--debug` flag.
-   Enabled HMR for swc-loader.
-   Fixes issue where HMR messages were not logged to the console.
-   Fixed noise from 3rd party libraries.
-   Added timestamp to console logs.
-   Updates webpack library dependencies.

## 2.33.1

### Patch Changes

-   Improve startup performance by deferring version checks.

## 2.33.0

### Minor Changes

-   Added new "enableSwcLoader" option to use SWC for transpiling typescript files.

## 2.32.2

### Patch Changes

-   Do not throw, but show a warning when using the --upload-source-maps flag and missing the SENTRY_AUTH_KEY env var.

## 2.32.1

### Patch Changes

-   Use "eval-source-map" for devtool in development.

## 2.32.0

### Minor Changes

-   Added support for presets providing server configuration.
-   Added missing entry point "-e" argument to the build task.
-   Allow pug files to be loaded from node_modules.
-   Fixed loading configuration multiple times when executing sub tasks.
-   Fixed preset not being defined in configuration.

## 2.31.1

### Patch Changes

-   Fixes a bug where "src/styles/index" was added to the resolved entries when using a custom entry point.

## 2.31.0

### Minor Changes

-   Includes the SentryWebpackPlugin to automatically push source maps to Sentry as part of the build.

## 2.30.0

### Minor Changes

-   Add back old "pug" parameter to the "start" command. This allows specifying a custom HTML pug template.

## 2.29.2

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.12.1

## 2.29.1

### Patch Changes

-   Fix bug where the --public-path argument did not work

## 2.29.0

### Minor Changes

-   Add support for frontend.config.js files.

## 2.28.0

### Minor Changes

-   Added support to specify webpack "publicPath" in the build command.

## 2.27.8

### Minor Changes

-   Tasks are now loaded on demand speeding up initial execution.

### Patch Changes

-   Fixes a bug where the cli failed to be executed by npx.
-   Fix bug where the i18n task failed if "enableLocaleWorkspace" were enabled and no "modules" folder existed.
-   Fix broken "--log-level" argument. Specifying a log level of "debug" should now correctly output verbose information.

## 2.26.1

### Patch Changes

-   Make sure i18n watch mode is not enabled on build command.

## 2.26.0

### Minor Changes

-   Added support for configuring i18n options in frontend.config.json through a "i18n" property.

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.12.0

## 2.25.0

### Minor Changes

-   Change the default behavior for locale workspaces. Fragments are now keyed by the folder name it resides in.

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.11.0

## 2.24.0

### Minor Changes

-   Changed the default behavior for locale workspaces.

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.10.0

## 2.23.2

### Patch Changes

-   Fix module resolving with multiple "src" folders in path.

## 2.23.1

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.9.2

## 2.23.0

### Minor Changes

-   Ensures frontend.config.json is loaded before tasks and merged with command arguments.

## 2.22.1

### Patch Changes

-   Disable i18n root key.
-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.9.1

## 2.22.0

### Minor Changes

-   Tweaked the ModuleTypeCheckerPlugin to consume less CPU cycles.
-   Added better support for locale workspaces (frontend-cli-i18n).

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.9.0

## 2.21.0

### Minor Changes

-   Added new "enableModules" option to support "modules" directory with isolated app modules.

## 2.20.1

### Patch Changes

-   Add timeout to version checking

## 2.20.0

### Minor Changes

-   Upgraded Webpack to its latest version.
-   Outputs `yarn upgrade` command hint on outdated packages.

## 2.19.0

### Minor Changes

-   Add library analysis task

## 2.18.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.8.5

## 2.18.3

### Patch Changes

-   @theorchard/frontend-cli-i18n@1.8.4

## 2.18.2

### Patch Changes

-   @theorchard/frontend-cli-i18n@1.8.3

## 2.18.1

### Patch Changes

-   @theorchard/frontend-cli-i18n@1.8.2

## 2.18.0

### Minor Changes

-   Enables watch mode in the dev-server task when typescript option is enabled.

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.8.1

## 2.17.0

### Minor Changes

-   New and improved progress bar.
-   Stops reporting progress after process has been signaled to exit.
-   Updated dependencies on:
    -   Webpack and dev-server
    -   React fast-refresh
    -   Forked typescript checking
    -   caniuse db

## 2.16.1

### Patch Changes

-   Fix broken -p --port option.

## 2.16.0

### Minor Changes

-   Updated Webpack bundle configuration to improve app code splitting.

## 2.15.5

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.8.0

## 2.15.4

### Patch Changes

-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.7.0

## 2.15.3

### Patch Changes

-   Fixed a bug where using the "--disable-locale-sync" flag would not initialize the repo.
-   Updated dependencies
    -   @theorchard/frontend-cli-i18n@1.6.0

## 2.15.2

### Patch Changes

-   Updated dependencies []
    -   @theorchard/frontend-cli-i18n@1.5.2

## 2.15.1

### Patch Changes

-   Updated dependencies []
    -   @theorchard/frontend-cli-i18n@1.5.1

## 2.15.0

### Minor Changes

-   Add support for generating locale files in typescript.

### Patch Changes

-   Updated dependencies []
    -   @theorchard/frontend-cli-i18n@1.5.0

## 2.14.1

### Patch Changes

-   Updated dependencies []
    -   @theorchard/frontend-cli-i18n@1.4.0

## 2.14.0

### Minor Changes

-   Switch to use the new `frontend-cli-i18n` package for syncing and managing translation files.

## 2.13.0

### Minor Changes

-   Bump fork-ts-checker-notifier-webpack-plugin package

## 2.12.0

### Minor Changes

-   Add back worker-loader

## 2.11.0

### Minor Changes

-   Remove worker-loader, since it is natively supported by Webpack 5.

### Patch Changes

-   Updated dependencies []
    -   @theorchard/babel-preset-frontend@1.0.5

## 2.10.1

### Patch Changes

-   Add https argument to the start command

## 2.10.0

### Minor Changes

-   Support configuring the dev server through a "devServer" config option in custom webpack.config.js files.

## 2.9.1

### Patch Changes

-   Fix types and watchFiles option

## 2.9.0

### Minor Changes

-   Add `raw-loader` for loading text files.
-   Put suite libraries in its own suite bundle.

## 2.8.0

### Minor Changes

-   Upgrade webpack, webpack-dev-server and plugins/loaders.

## 2.7.0

### Minor Changes

-   Updated browserslist db

## 2.6.0

### Minor Changes

-   Added new task `express-server` to host the content in the build folder.
    The `frontend start --production` command is an alias for running `frontend build` and `frontend express-server`.

## 2.5.3

### Patch Changes

-   Don't show table of updates if there are none.

## 2.5.2

### Patch Changes

-   Defer reporting on available updates until the next run.

## 2.5.1

### Patch Changes

-   Ignore 'workspace:\*' packages in version checks.

## 2.5.0

### Minor Changes

-   Checks and warns about available updates for `@orchard` or `@theorchard` namespaced dependencies in client package.json.
-   Outputs error details when LOG_LEVEL=debug

## 2.4.5

### Patch Changes

-   Updated PageNav and PageSwitch components.
-   Clear identity cache on errors.

## 2.4.4

### Patch Changes

-   Add support for enabling ts-loader

## 2.4.3

### Patch Changes

-   Make compatible with pnpm environment
-   Updated dependencies []
    -   @theorchard/babel-preset-frontend@1.0.4

## 2.4.2

### Patch Changes

-   Fix --disable-global-scope flag

## 2.4.0

### Patch Changes

-   Add support for term file fragments
-   Treeshake translation files based on terms defined in default.json

## 2.3.3

### Patch Changes

-   Support invoking the cli using npx

## 2.3.2

### Patch Changes

-   Add i18n options:
    -   --disable-global-scope: Does not register locales in window.ORCHARD_LOCALES.
    -   --enable-ts-index: Generate a typescript index file (locale/index.ts).

## 2.3.1

### Patch Changes

-   Show duplicated packages when using analyse flag (-a)

## 2.3.0

### Minor Changes

-   Allow dynamically imported dependencies to be split into separate chunks

## 2.2.3

### Patch Changes

-   Add source maps to production builds
-   Add support for `frontend.local.json` config file.

## 2.2.1

### Patch Changes

-   Fixate sass to patch version

## 2.2.0

### Minor Changes

-   The autogenerated locale/index.js file will no longer import `@theorchard/suite-localization` or `@orchard/frontend-localization`. The locales are instead stored globally as window.ORCHARD_LOCALES.

## 2.1.3

### Patch Changes

-   Add support to use suite-localization
-   Remove obsolete init task

## 2.1.2

### Patch Changes

-   Update html index output to use suffix instead of prefix. `overdrive-index.html` => `index-overdrive.html`

## 2.1.1

### Patch Changes

-   Add option to control index.html prefix
-   Sets "enablePersistentCache" option to default "true"

## 2.1.0

### Minor Changes

-   Add option to generate multiple html files

## 2.0.26

### Patch Changes

-   Bump versions for webpack and fast-refresh

## 2.0.25

### Patch Changes

-   Fix bug were the build task does not validate missing POEDITOR env vars.
-   Bumps webpack and fork-ts-checker plugins.

## 2.0.24

### Patch Changes

-   Fix invalid watch options

## 2.0.23

### Patch Changes

-   Exclude node_modules from webpack dev server watch options

## 2.0.22

### Patch Changes

-   Bump webpack version to 5.24.4

## 2.0.21

### Patch Changes

-   Update jest preset to ignore .jsw files
