Skip to content

Commit 130831c

Browse files
committed
chore(release): v1.0.0
1 parent efa4921 commit 130831c

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @devscast/config
2+
3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- Initial Release

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devscast/config",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
55
"source": "./src/index.ts",
66
"main": "./dist/index.js",

tests/dotenv.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import path from "path";
55
import Dotenv, { FormatError, PathError } from "@/dotenv";
66

77
const isWindows = process.platform === "win32";
8+
const isMacos = process.platform === "darwin";
89

910
function withTmpDir(fn: (dir: string) => void | Promise<void>) {
1011
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "dotenv-"));
@@ -42,7 +43,7 @@ describe("Dotenv.parse format errors", () => {
4243
['_=FOO', "Invalid character in variable name"],
4344
];
4445

45-
if (!isWindows) {
46+
if (!isWindows && !isMacos) {
4647
cases.push(['FOO=$((1dd2))', "Issue expanding a command"]);
4748
}
4849

@@ -178,7 +179,7 @@ describe("Dotenv.parse happy paths", () => {
178179
expect(d.parse(data)).toEqual(expected);
179180
});
180181

181-
if (!isWindows) {
182+
if (!isWindows && !isMacos) {
182183
const cmdCases: Array<[string, Record<string,string>]> = [
183184
['FOO=$(echo foo)', { FOO: 'foo' }],
184185
['FOO=$((1+2))', { FOO: '3' }],
@@ -198,7 +199,7 @@ describe("Dotenv.parse happy paths", () => {
198199
const d = new Dotenv();
199200
let vals = d.parse("APP_ENV=dev\nTEST1=foo1_${APP_ENV}");
200201
expect(vals.TEST1).toBe("foo1_prod");
201-
if (!isWindows) {
202+
if (!isWindows && !isMacos) {
202203
vals = d.parse(`APP_ENV=dev\nTEST2=foo2_$(/bin/sh -c 'echo $APP_ENV')`);
203204
expect(vals.TEST2).toBe("foo2_prod");
204205
}

0 commit comments

Comments
 (0)