@dotenvx/dotenvx-ops 0.36.1 → 0.37.1

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
@@ -2,7 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- [Unreleased](https://github.com/dotenvx/dotenvx-ops/compare/v0.36.1...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx-ops/compare/v0.37.1...main)
6
+
7
+ ## [0.37.1](https://github.com/dotenvx/dotenvx-ops/compare/v0.37.0...v0.37.1) (2026-03-26)
8
+
9
+ ### Changed
10
+
11
+ * Fix display of version on install.sh script output
12
+
13
+ ## [0.37.0](https://github.com/dotenvx/dotenvx-ops/compare/v0.36.1...v0.37.0) (2026-03-26)
14
+
15
+ ### Added
16
+
17
+ * Add postinstall message ([#31](https://github.com/dotenvx/dotenvx-ops/pull/31))
6
18
 
7
19
  ## [0.36.1](https://github.com/dotenvx/dotenvx-ops/compare/v0.36.0...v0.36.1) (2026-03-13)
8
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "0.36.1",
2
+ "version": "0.37.1",
3
3
  "name": "@dotenvx/dotenvx-ops",
4
- "description": "KEYS OFF COMPUTER by dotenvx",
4
+ "description": "Secrets for developers–from the creator of `dotenv` and `dotenvx`",
5
5
  "author": "@motdotla",
6
6
  "keywords": [
7
7
  "dotenv",
@@ -32,6 +32,7 @@
32
32
  "dotenvx-ops": "./src/cli/dotenvx-ops.js"
33
33
  },
34
34
  "scripts": {
35
+ "postinstall": "node ./src/cli/postinstall.js",
35
36
  "standard": "standard",
36
37
  "standard:fix": "standard --fix",
37
38
  "test": "tap run --allow-empty-coverage --disable-coverage --timeout=60000",
@@ -0,0 +1,16 @@
1
+ const packageJson = require('./../lib/helpers/packageJson')
2
+ const path = require('path')
3
+
4
+ const commandName = 'dotenvx-ops'
5
+ const isGlobalInstall = process.env.npm_config_global === 'true' || process.env.npm_config_location === 'global'
6
+
7
+ let installPath = commandName
8
+ if (isGlobalInstall && process.env.npm_config_prefix) {
9
+ const binaryName = process.platform === 'win32' ? `${commandName}.cmd` : commandName
10
+ installPath = process.platform === 'win32'
11
+ ? path.join(process.env.npm_config_prefix, binaryName)
12
+ : path.join(process.env.npm_config_prefix, 'bin', binaryName)
13
+ }
14
+
15
+ console.log(`⛨ installed (${packageJson.version}:${installPath})`)
16
+ console.log('⮕ next run [dotenvx-ops login] and then [dotenvx encrypt]')