11 lines
615 B
TypeScript
11 lines
615 B
TypeScript
/**
|
|
* The plugin's own version, as a constant in the code.
|
|
*
|
|
* Not read from package.json at run time: naming that file relative to the module (a URL built
|
|
* from the module's own address) in server code makes a bundler treat the file as an ASSET — Turbopack copied the plugin's whole
|
|
* package.json (dependency lists, scripts, the registry address) into the site's public
|
|
* `/_next/static/media/`. Written by `node scripts/write-version.mjs` (the `version` script of
|
|
* package.json runs it on `pnpm version …`); test/version.test.ts fails when the two differ.
|
|
*/
|
|
export const PLUGIN_VERSION = '1.17.1'
|