@flatjs/evolve 1.8.1-next.79 → 1.8.1-next.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.80
4
+
5
+ ### Patch Changes
6
+
7
+ - 9bb0721: Add `release version`
8
+
3
9
  ## 1.8.1-next.79
4
10
 
5
11
  ### Patch Changes
@@ -2,7 +2,13 @@ import { type WebpackPlugin } from '../../create-webpack/types.js';
2
2
  import { type FlatEvolveOptions } from '../../types/types-options.js';
3
3
  /**
4
4
  * The DefinePlugin replaces variables in your code with other values or expressions at compile time.
5
- * `__SENTRY_DEBUG__`,`process.env.FLAT_BUILD_DATE`, `process.env.FLAT_COMMIT_HASH`, `process.env.FLAT_BRANCH_NAME`
5
+ * ```ts
6
+ * `__SENTRY_DEBUG__`
7
+ * `process.env.FLAT_BUILD_DATE`
8
+ * `process.env.FLAT_COMMIT_HASH`
9
+ * `process.env.FLAT_BRANCH_NAME`
10
+ * `process.env.FLAT_RELEASE_VERSION`
11
+ * ```
6
12
  * @returns
7
13
  */
8
14
  export declare const createBuiltinDefineVariables: (serveMode: boolean, evolveOptions: FlatEvolveOptions) => Promise<WebpackPlugin[]>;
@@ -1 +1 @@
1
- import{getLastCommitHash,gitBranchName}from"@armit/git";import webpack from"webpack";export const createBuiltinDefineVariables=async(e,i)=>{const t=await getLastCommitHash(),n=await gitBranchName();return[new webpack.DefinePlugin({__SENTRY_DEBUG__:e,"process.env.FLAT_BUILD_DATE":JSON.stringify((new Date).toISOString()),"process.env.FLAT_COMMIT_HASH":JSON.stringify(t),"process.env.FLAT_BRANCH_NAME":JSON.stringify(n),...i.pluginOptions.definePlugin})]};
1
+ import{getLastCommitHash,gitBranchName}from"@armit/git";import webpack from"webpack";export const createBuiltinDefineVariables=async(e,i)=>{const t=await getLastCommitHash(),n=await gitBranchName();return[new webpack.DefinePlugin({__SENTRY_DEBUG__:e,"process.env.FLAT_BUILD_DATE":JSON.stringify((new Date).toISOString()),"process.env.FLAT_COMMIT_HASH":JSON.stringify(t),"process.env.FLAT_BRANCH_NAME":JSON.stringify(n),"process.env.FLAT_RELEASE_VERSION":JSON.stringify(i.ci?.releaseVersion||t),...i.pluginOptions.definePlugin})]};
@@ -15,4 +15,9 @@ export type FlatEvolveCI = {
15
15
  * @default `master`
16
16
  */
17
17
  basedBranch: string;
18
+ /**
19
+ * The release version will setup to `process.env.FLAT_RELEASE_VERSION`
20
+ * @default ''
21
+ */
22
+ releaseVersion?: string;
18
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.79",
3
+ "version": "1.8.1-next.80",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {