@dotenvx/dotenvx-ops 0.36.0 → 0.37.0

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.0...main)
5
+ [Unreleased](https://github.com/dotenvx/dotenvx-ops/compare/v0.37.0...main)
6
+
7
+ ## [0.37.0](https://github.com/dotenvx/dotenvx-ops/compare/v0.36.1...v0.37.0) (2026-03-26)
8
+
9
+ ### Added
10
+
11
+ * Add postinstall message ([#31](https://github.com/dotenvx/dotenvx-ops/pull/31))
12
+
13
+ ## [0.36.1](https://github.com/dotenvx/dotenvx-ops/compare/v0.36.0...v0.36.1) (2026-03-13)
14
+
15
+ ### Added
16
+
17
+ * Add on/off help ([#30](https://github.com/dotenvx/dotenvx-ops/pull/30))
6
18
 
7
19
  ## [0.36.0](https://github.com/dotenvx/dotenvx-ops/compare/v0.35.1...v0.36.0) (2026-03-13)
8
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "0.36.0",
2
+ "version": "0.37.0",
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",
@@ -6,7 +6,8 @@ function off () {
6
6
  try {
7
7
  const sesh = new Session()
8
8
  sesh.turnOff()
9
- console.log('ops: off')
9
+ logger.success('ops: off')
10
+ logger.help('⮕ check status with [dotenvx-ops status]')
10
11
  } catch (error) {
11
12
  logger.error(error.message)
12
13
  process.exit(1)
@@ -6,7 +6,8 @@ function on () {
6
6
  try {
7
7
  const sesh = new Session()
8
8
  sesh.turnOn()
9
- console.log('ops: on')
9
+ logger.success('ops: on')
10
+ logger.help('⮕ check status with [dotenvx-ops status]')
10
11
  } catch (error) {
11
12
  logger.error(error.message)
12
13
  process.exit(1)
@@ -0,0 +1,17 @@
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('')
17
+ console.log('⮕ next run [dotenvx-ops login] and then [dotenvx encrypt]')