std-env 3.3.1 → 3.3.2

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/dist/index.cjs CHANGED
@@ -77,7 +77,7 @@ const isCI = toBoolean(envShim.CI) || providerInfo.ci !== false;
77
77
  const hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);
78
78
  const hasWindow = typeof window !== "undefined";
79
79
  const isDebug = toBoolean(envShim.DEBUG);
80
- const isTest = toBoolean(envShim.TEST);
80
+ const isTest = nodeENV === "test" || toBoolean(envShim.TEST);
81
81
  const isProduction = nodeENV === "production";
82
82
  const isDevelopment = nodeENV === "dev" || nodeENV === "development";
83
83
  const isMinimal = toBoolean(envShim.MINIMAL) || isCI || isTest || !hasTTY;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare type ProviderName = "" | "appveyor" | "azure_pipelines" | "azure_static" | "appcircle" | "bamboo" | "bitbucket" | "bitrise" | "buddy" | "buildkite" | "circle" | "cirrus" | "cloudflare_pages" | "codebuild" | "codefresh" | "drone" | "drone" | "dsari" | "github_actions" | "gitlab" | "gocd" | "layerci" | "hudson" | "jenkins" | "magnum" | "netlify" | "nevercode" | "render" | "sail" | "semaphore" | "screwdriver" | "shippable" | "solano" | "strider" | "teamcity" | "travis" | "vercel" | "appcenter" | "codesandbox" | "stackblitz" | "stormkit" | "cleavr";
2
- declare type ProviderInfo = {
1
+ type ProviderName = "" | "appveyor" | "azure_pipelines" | "azure_static" | "appcircle" | "bamboo" | "bitbucket" | "bitrise" | "buddy" | "buildkite" | "circle" | "cirrus" | "cloudflare_pages" | "codebuild" | "codefresh" | "drone" | "drone" | "dsari" | "github_actions" | "gitlab" | "gocd" | "layerci" | "hudson" | "jenkins" | "magnum" | "netlify" | "nevercode" | "render" | "sail" | "semaphore" | "screwdriver" | "shippable" | "solano" | "strider" | "teamcity" | "travis" | "vercel" | "appcenter" | "codesandbox" | "stackblitz" | "stormkit" | "cleavr";
2
+ type ProviderInfo = {
3
3
  name: ProviderName;
4
4
  [meta: string]: any;
5
5
  };
package/dist/index.mjs CHANGED
@@ -75,7 +75,7 @@ const isCI = toBoolean(envShim.CI) || providerInfo.ci !== false;
75
75
  const hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);
76
76
  const hasWindow = typeof window !== "undefined";
77
77
  const isDebug = toBoolean(envShim.DEBUG);
78
- const isTest = toBoolean(envShim.TEST);
78
+ const isTest = nodeENV === "test" || toBoolean(envShim.TEST);
79
79
  const isProduction = nodeENV === "production";
80
80
  const isDevelopment = nodeENV === "dev" || nodeENV === "development";
81
81
  const isMinimal = toBoolean(envShim.MINIMAL) || isCI || isTest || !hasTTY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "std-env",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Detect current Javascript environment",
5
5
  "repository": "unjs/std-env",
6
6
  "license": "MIT",
@@ -14,23 +14,25 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
- "devDependencies": {
18
- "@types/node": "^18.11.9",
19
- "c8": "^7.12.0",
20
- "eslint": "^8.27.0",
21
- "eslint-config-unjs": "^0.0.2",
22
- "jiti": "^1.16.0",
23
- "standard-version": "^9.5.0",
24
- "typescript": "^4.8.4",
25
- "unbuild": "^0.9.4",
26
- "vitest": "^0.25.2"
27
- },
28
- "packageManager": "pnpm@7.13.4",
29
17
  "scripts": {
30
18
  "build": "unbuild",
31
19
  "dev": "vitest",
32
- "lint": "eslint --ext .ts .",
33
- "release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
20
+ "lint": "eslint --ext .ts . && prettier -c src test",
21
+ "prepack": "unbuild",
22
+ "release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
34
23
  "test": "pnpm lint && vitest run"
35
- }
36
- }
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^18.11.18",
27
+ "c8": "^7.12.0",
28
+ "changelogen": "^0.4.1",
29
+ "eslint": "^8.33.0",
30
+ "eslint-config-unjs": "^0.1.0",
31
+ "jiti": "^1.16.2",
32
+ "prettier": "^2.8.3",
33
+ "typescript": "^4.9.5",
34
+ "unbuild": "^1.1.1",
35
+ "vitest": "^0.28.3"
36
+ },
37
+ "packageManager": "pnpm@7.25.0"
38
+ }