fix!: rename os-env to envosman due to npm conflict

This commit is contained in:
Amin Yahyaabadi 2024-08-16 02:52:11 -07:00
parent a4b28aacb7
commit d3b2f3531c
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
42 changed files with 98 additions and 97 deletions

View File

@ -14,6 +14,7 @@ words:
- aarch - aarch
- hadolint - hadolint
- aminya - aminya
- envosman
- applellvm - applellvm
- biome - biome
- biomejs - biomejs

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -103,7 +103,7 @@
"npm-check-updates": "^17.0.6", "npm-check-updates": "^17.0.6",
"npm-run-all2": "^6.2.2", "npm-run-all2": "^6.2.2",
"numerous": "1.0.3", "numerous": "1.0.3",
"os-env": "workspace:*", "envosman": "workspace:*",
"p-timeout": "^6.1.2", "p-timeout": "^6.1.2",
"parcel": "2.12.0", "parcel": "2.12.0",
"path-exists": "^5.0.0", "path-exists": "^5.0.0",
@ -149,7 +149,7 @@
"mri", "mri",
"msvc-dev-cmd", "msvc-dev-cmd",
"numerous", "numerous",
"os-env", "envosman",
"path-exists", "path-exists",
"patha", "patha",
"retry-as-promised", "retry-as-promised",

View File

@ -1,4 +1,4 @@
<h1 align="center">os-env</h1> <h1 align="center">envosman</h1>
<p> <p>
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" /> <img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
<img src="https://img.shields.io/badge/node-%3E%3D12-blue.svg" /> <img src="https://img.shields.io/badge/node-%3E%3D12-blue.svg" />
@ -12,7 +12,7 @@
## Install ## Install
```sh ```sh
npm install --save os-env npm install --save envosman
``` ```
## Usage ## Usage

View File

@ -1,9 +1,9 @@
{ {
"name": "os-env", "name": "envosman",
"version": "1.0.0", "version": "1.0.0",
"description": "Manage environment variables, PATH, and rc files", "description": "Manage environment variables, PATH, and rc files",
"repository": "https://github.com/aminya/setup-cpp", "repository": "https://github.com/aminya/setup-cpp",
"homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/os-env", "homepage": "https://github.com/aminya/setup-cpp/tree/master/packages/envosman",
"license": "Apache-2.0", "license": "Apache-2.0",
"author": "Amin Yahyaabadi", "author": "Amin Yahyaabadi",
"main": "./dist/index.js", "main": "./dist/index.js",

View File

@ -43,8 +43,8 @@ export const sourceRCInRc = memoize(sourceRCInRc_, { isPromise: true })
async function addRCHeader(options: RcOptions) { async function addRCHeader(options: RcOptions) {
// a variable that prevents source rc from being called from .bashrc and .profile // a variable that prevents source rc from being called from .bashrc and .profile
const rcHeader = options.guard === undefined const rcHeader = options.guard === undefined
? "\n# Automatically Generated by os-env\n" ? "\n# Automatically Generated by envosman\n"
: `\n# Automatically Generated by os-env ${options.guard}\nexport SOURCE_${options.guard.toUpperCase()}RC=0\n` : `\n# Automatically Generated by envosman ${options.guard}\nexport SOURCE_${options.guard.toUpperCase()}RC=0\n`
if (await pathExists(options.rcPath)) { if (await pathExists(options.rcPath)) {
const rcContent = await readFile(options.rcPath, "utf8") const rcContent = await readFile(options.rcPath, "utf8")

View File

@ -20,7 +20,7 @@
"ci-info": "^4.0.0", "ci-info": "^4.0.0",
"path-exists": "^5.0.0", "path-exists": "^5.0.0",
"ci-log": "workspace:*", "ci-log": "workspace:*",
"os-env": "workspace:*", "envosman": "workspace:*",
"which": "4.0.0", "which": "4.0.0",
"execa": "^7.2.0", "execa": "^7.2.0",
"escape-string-regexp": "^5.0.0" "escape-string-regexp": "^5.0.0"

View File

@ -1,8 +1,8 @@
import { promises } from "fs" import { promises } from "fs"
import { execRoot } from "admina" import { execRoot } from "admina"
import { GITHUB_ACTIONS } from "ci-info" import { GITHUB_ACTIONS } from "ci-info"
import { sourceRC } from "os-env" import { sourceRC } from "envosman"
import type { RcOptions } from "os-env/dist/rc-file.js" import type { RcOptions } from "envosman/dist/rc-file.js"
const { appendFile } = promises const { appendFile } = promises
/** /**

View File

@ -92,6 +92,9 @@ importers:
dprint: dprint:
specifier: ^0.47.2 specifier: ^0.47.2
version: 0.47.2 version: 0.47.2
envosman:
specifier: workspace:*
version: link:packages/envosman
escape-path-with-spaces: escape-path-with-spaces:
specifier: ^1.0.2 specifier: ^1.0.2
version: 1.0.2 version: 1.0.2
@ -146,9 +149,6 @@ importers:
numerous: numerous:
specifier: 1.0.3 specifier: 1.0.3
version: 1.0.3 version: 1.0.3
os-env:
specifier: workspace:*
version: link:packages/os-env
p-timeout: p-timeout:
specifier: ^6.1.2 specifier: ^6.1.2
version: 6.1.2 version: 6.1.2
@ -231,23 +231,7 @@ importers:
specifier: ^4.0.0 specifier: ^4.0.0
version: 4.0.0 version: 4.0.0
packages/exec-powershell: packages/envosman:
dependencies:
'@types/node':
specifier: ^14
version: 14.18.63
execa:
specifier: ^7
version: 7.2.0
which:
specifier: ^4.0.0
version: 4.0.0
devDependencies:
'@types/which':
specifier: ^3.0.0
version: 3.0.3
packages/os-env:
dependencies: dependencies:
'@actions/core': '@actions/core':
specifier: ^1.10.1 specifier: ^1.10.1
@ -283,6 +267,22 @@ importers:
specifier: workspace:* specifier: workspace:*
version: link:../untildify-user version: link:../untildify-user
packages/exec-powershell:
dependencies:
'@types/node':
specifier: ^14
version: 14.18.63
execa:
specifier: ^7
version: 7.2.0
which:
specifier: ^4.0.0
version: 4.0.0
devDependencies:
'@types/which':
specifier: ^3.0.0
version: 3.0.3
packages/setup-apt: packages/setup-apt:
dependencies: dependencies:
'@types/node': '@types/node':
@ -297,15 +297,15 @@ importers:
ci-log: ci-log:
specifier: workspace:* specifier: workspace:*
version: link:../ci-log version: link:../ci-log
envosman:
specifier: workspace:*
version: link:../envosman
escape-string-regexp: escape-string-regexp:
specifier: ^5.0.0 specifier: ^5.0.0
version: 5.0.0 version: 5.0.0
execa: execa:
specifier: ^7.2.0 specifier: ^7.2.0
version: 7.2.0 version: 7.2.0
os-env:
specifier: workspace:*
version: link:../os-env
path-exists: path-exists:
specifier: ^5.0.0 specifier: ^5.0.0
version: 5.0.0 version: 5.0.0

View File

@ -1,9 +1,9 @@
import { tmpdir } from "os" import { tmpdir } from "os"
import path, { join } from "path" import path, { join } from "path"
import { mkdirP } from "@actions/io" import { mkdirP } from "@actions/io"
import { addPath } from "envosman"
import { execaSync } from "execa" import { execaSync } from "execa"
import { readFile } from "fs/promises" import { readFile } from "fs/promises"
import { addPath } from "os-env"
import { dirname } from "patha" import { dirname } from "patha"
import which from "which" import which from "which"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"

View File

@ -1,5 +1,5 @@
import { addPath } from "envosman"
import { execaSync } from "execa" import { execaSync } from "execa"
import { addPath } from "os-env"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"
import { dirname } from "patha" import { dirname } from "patha"
import which from "which" import which from "which"

View File

@ -1,7 +1,7 @@
import { join } from "path" import { join } from "path"
import { endGroup, notice, startGroup } from "@actions/core" import { endGroup, notice, startGroup } from "@actions/core"
import { error, info } from "ci-log" import { error, info } from "ci-log"
import { addEnv } from "os-env" import { addEnv } from "envosman"
import semverValid from "semver/functions/valid" import semverValid from "semver/functions/valid"
import { getSuccessMessage, rcOptions } from "./cli-options.js" import { getSuccessMessage, rcOptions } from "./cli-options.js"
import { setupGcc, setupMingw } from "./gcc/gcc.js" import { setupGcc, setupMingw } from "./gcc/gcc.js"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env" import { addPath } from "envosman"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js" import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -1,5 +1,5 @@
import { info, notice } from "ci-log" import { info, notice } from "ci-log"
import { addPath } from "os-env" import { addPath } from "envosman"
import { addExeExt, join } from "patha" import { addExeExt, join } from "patha"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"
import { setupGraphviz } from "../graphviz/graphviz.js" import { setupGraphviz } from "../graphviz/graphviz.js"

View File

@ -1,4 +1,4 @@
import { addEnv, addPath } from "os-env" import { addEnv, addPath } from "envosman"
import { GITHUB_ACTIONS } from "ci-info" import { GITHUB_ACTIONS } from "ci-info"
import { info, warning } from "ci-log" import { info, warning } from "ci-log"

View File

@ -1,4 +1,4 @@
import { addEnv } from "os-env" import { addEnv } from "envosman"
import semverMajor from "semver/functions/major" import semverMajor from "semver/functions/major"
import semverValid from "semver/functions/valid" import semverValid from "semver/functions/valid"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env" import { addPath } from "envosman"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js" import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -1,8 +1,8 @@
import { delimiter } from "path" import { delimiter } from "path"
import { GITHUB_ACTIONS } from "ci-info" import { GITHUB_ACTIONS } from "ci-info"
import { info, warning } from "ci-log" import { info, warning } from "ci-log"
import { addEnv } from "envosman"
import memoize from "micro-memoize" import memoize from "micro-memoize"
import { addEnv } from "os-env"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"
import { addExeExt, join } from "patha" import { addExeExt, join } from "patha"
import { addUpdateAlternativesToRc, installAptPack } from "setup-apt" import { addUpdateAlternativesToRc, installAptPack } from "setup-apt"

View File

@ -1,8 +1,8 @@
import { info } from "console" import { info } from "console"
import { execRoot } from "admina" import { execRoot } from "admina"
import { addPath } from "envosman"
import { execa } from "execa" import { execa } from "execa"
import { chmod, readFile, writeFile } from "fs/promises" import { chmod, readFile, writeFile } from "fs/promises"
import { addPath } from "os-env"
import { aptTimeout, hasNala, installAptPack, isAptPackRegexInstalled } from "setup-apt" import { aptTimeout, hasNala, installAptPack, isAptPackRegexInstalled } from "setup-apt"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"
import { DEFAULT_TIMEOUT } from "../installTool.js" import { DEFAULT_TIMEOUT } from "../installTool.js"

View File

@ -1,6 +1,6 @@
import { getExecOutput } from "@actions/exec" import { getExecOutput } from "@actions/exec"
import { error } from "ci-log" import { error } from "ci-log"
import { addEnv } from "os-env" import { addEnv } from "envosman"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"
export async function setupMacOSSDK() { export async function setupMacOSSDK() {

View File

@ -3,9 +3,9 @@
import { GITHUB_ACTIONS, isCI } from "ci-info" import { GITHUB_ACTIONS, isCI } from "ci-info"
import { error, info, success, warning } from "ci-log" import { error, info, success, warning } from "ci-log"
import { finalizeRC } from "envosman"
import * as numerous from "numerous" import * as numerous from "numerous"
import numerousLocale from "numerous/locales/en.js" import numerousLocale from "numerous/locales/en.js"
import { finalizeRC } from "os-env"
import * as timeDelta from "time-delta" import * as timeDelta from "time-delta"
import timeDeltaLocale from "time-delta/locales/en.js" import timeDeltaLocale from "time-delta/locales/en.js"
import { untildifyUser } from "untildify-user" import { untildifyUser } from "untildify-user"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env" import { addPath } from "envosman"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js" import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -1,4 +1,4 @@
import { addPath } from "os-env" import { addPath } from "envosman"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"
import { setupChocoPack } from "../utils/setup/setupChocoPack.js" import { setupChocoPack } from "../utils/setup/setupChocoPack.js"

View File

@ -1,5 +1,5 @@
import { execRootSync } from "admina" import { execRootSync } from "admina"
import { addPath } from "os-env" import { addPath } from "envosman"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"
import { hasDnf } from "../utils/env/hasDnf.js" import { hasDnf } from "../utils/env/hasDnf.js"

View File

@ -4,10 +4,10 @@ import { parse as pathParse } from "path"
import { getExecOutput } from "@actions/exec" import { getExecOutput } from "@actions/exec"
import { GITHUB_ACTIONS } from "ci-info" import { GITHUB_ACTIONS } from "ci-info"
import { info, warning } from "ci-log" import { info, warning } from "ci-log"
import { addPath } from "envosman"
import { execa } from "execa" import { execa } from "execa"
import { readdir } from "fs/promises" import { readdir } from "fs/promises"
import memoize from "micro-memoize" import memoize from "micro-memoize"
import { addPath } from "os-env"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"
import { addExeExt, dirname, join } from "patha" import { addExeExt, dirname, join } from "patha"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"

View File

@ -1,6 +1,6 @@
import { cacheDir, downloadTool, find } from "@actions/tool-cache" import { cacheDir, downloadTool, find } from "@actions/tool-cache"
import { info } from "ci-log" import { info } from "ci-log"
import { addPath } from "os-env" import { addPath } from "envosman"
import { join } from "patha" import { join } from "patha"
import { tmpdir } from "os" import { tmpdir } from "os"

View File

@ -1,7 +1,7 @@
/* eslint-disable require-atomic-updates */ /* eslint-disable require-atomic-updates */
import { info } from "ci-log" import { info } from "ci-log"
import { addPath } from "envosman"
import { execaSync } from "execa" import { execaSync } from "execa"
import { addPath } from "os-env"
import which from "which" import which from "which"
import { setupChocolatey } from "../../chocolatey/chocolatey.js" import { setupChocolatey } from "../../chocolatey/chocolatey.js"
import { rcOptions } from "../../cli-options.js" import { rcOptions } from "../../cli-options.js"

View File

@ -1,8 +1,8 @@
import { info } from "@actions/core" import { info } from "@actions/core"
import { addPath } from "envosman"
import { execa, execaSync } from "execa" import { execa, execaSync } from "execa"
import memoize from "micro-memoize" import memoize from "micro-memoize"
import { mkdirp } from "mkdirp" import { mkdirp } from "mkdirp"
import { addPath } from "os-env"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"
import { addExeExt, dirname, join } from "patha" import { addExeExt, dirname, join } from "patha"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"

View File

@ -1,7 +1,7 @@
import { grantUserWriteAccess } from "admina" import { grantUserWriteAccess } from "admina"
import { info, notice } from "ci-log" import { info, notice } from "ci-log"
import { addPath } from "envosman"
import { execaSync } from "execa" import { execaSync } from "execa"
import { addPath } from "os-env"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"
import { addShExt, addShRelativePrefix, dirname, join } from "patha" import { addShExt, addShRelativePrefix, dirname, join } from "patha"
import { installAptPack } from "setup-apt" import { installAptPack } from "setup-apt"

View File

@ -1,8 +1,8 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
import { info } from "ci-log" import { info } from "ci-log"
import { addEnv } from "envosman"
import { setupMSVCDevCmd } from "msvc-dev-cmd/lib.js" import { setupMSVCDevCmd } from "msvc-dev-cmd/lib.js"
import { addEnv } from "os-env"
import { pathExists } from "path-exists" import { pathExists } from "path-exists"
import { rcOptions } from "../cli-options.js" import { rcOptions } from "../cli-options.js"