@dotenvx/dotenvx-ops 0.36.1 → 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 +7 -1
- package/package.json +3 -2
- package/src/cli/postinstall.js +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
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.
|
|
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))
|
|
6
12
|
|
|
7
13
|
## [0.36.1](https://github.com/dotenvx/dotenvx-ops/compare/v0.36.0...v0.36.1) (2026-03-13)
|
|
8
14
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.37.0",
|
|
3
3
|
"name": "@dotenvx/dotenvx-ops",
|
|
4
|
-
"description": "
|
|
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,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]')
|