@elek-io/core 0.14.1 → 0.14.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/browser/index.browser.d.ts +774 -1142
- package/dist/node/index.node.d.ts +785 -1153
- package/dist/node/index.node.js +72 -2
- package/dist/node/index.node.js.map +1 -1
- package/package.json +21 -21
package/dist/node/index.node.js
CHANGED
|
@@ -8,7 +8,75 @@ var __export = (target, all) => {
|
|
|
8
8
|
import Fs7 from "fs-extra";
|
|
9
9
|
|
|
10
10
|
// package.json
|
|
11
|
-
var
|
|
11
|
+
var package_default = {
|
|
12
|
+
name: "@elek-io/core",
|
|
13
|
+
version: "0.14.2",
|
|
14
|
+
description: "Handles core functionality of elek.io Projects like file IO and version control.",
|
|
15
|
+
homepage: "https://elek.io",
|
|
16
|
+
repository: "https://github.com/elek-io/core",
|
|
17
|
+
bugs: {
|
|
18
|
+
url: "https://github.com/elek-io/core/issues"
|
|
19
|
+
},
|
|
20
|
+
type: "module",
|
|
21
|
+
files: [
|
|
22
|
+
"dist/node",
|
|
23
|
+
"dist/browser"
|
|
24
|
+
],
|
|
25
|
+
exports: {
|
|
26
|
+
".": {
|
|
27
|
+
node: {
|
|
28
|
+
import: {
|
|
29
|
+
types: "./dist/node/index.node.d.ts",
|
|
30
|
+
default: "./dist/node/index.node.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
import: {
|
|
34
|
+
types: "./dist/browser/index.browser.d.ts",
|
|
35
|
+
default: "./dist/browser/index.browser.js"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
scripts: {
|
|
40
|
+
lint: "tsc",
|
|
41
|
+
dev: "vitest",
|
|
42
|
+
test: "vitest run",
|
|
43
|
+
coverage: "vitest run --coverage",
|
|
44
|
+
build: "tsup",
|
|
45
|
+
release: "changeset publish"
|
|
46
|
+
},
|
|
47
|
+
dependencies: {
|
|
48
|
+
"@hono/node-server": "1.15.0",
|
|
49
|
+
"@hono/swagger-ui": "0.5.2",
|
|
50
|
+
"@hono/zod-openapi": "0.19.9",
|
|
51
|
+
"@sindresorhus/slugify": "2.2.1",
|
|
52
|
+
"fs-extra": "11.3.0",
|
|
53
|
+
hono: "4.8.4",
|
|
54
|
+
mime: "4.0.7",
|
|
55
|
+
"p-queue": "8.1.0",
|
|
56
|
+
semver: "7.7.2",
|
|
57
|
+
uuid: "11.1.0",
|
|
58
|
+
winston: "3.17.0",
|
|
59
|
+
"winston-daily-rotate-file": "5.0.0",
|
|
60
|
+
zod: "3.25.74"
|
|
61
|
+
},
|
|
62
|
+
devDependencies: {
|
|
63
|
+
"@changesets/cli": "2.29.5",
|
|
64
|
+
"@faker-js/faker": "9.9.0",
|
|
65
|
+
"@tsconfig/node22": "22.0.2",
|
|
66
|
+
"@tsconfig/strictest": "2.0.5",
|
|
67
|
+
"@types/fs-extra": "11.0.4",
|
|
68
|
+
"@types/node": "22.16.0",
|
|
69
|
+
"@types/semver": "7.7.0",
|
|
70
|
+
"@types/uuid": "10.0.0",
|
|
71
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
72
|
+
tsup: "8.5.0",
|
|
73
|
+
typescript: "5.8.3",
|
|
74
|
+
vitest: "3.2.4"
|
|
75
|
+
},
|
|
76
|
+
peerDependencies: {
|
|
77
|
+
dugite: "2.7.1"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
12
80
|
|
|
13
81
|
// src/api/index.ts
|
|
14
82
|
import { serve } from "@hono/node-server";
|
|
@@ -3195,9 +3263,11 @@ var GitService = class {
|
|
|
3195
3263
|
"push.autoSetupRemote",
|
|
3196
3264
|
"true"
|
|
3197
3265
|
];
|
|
3266
|
+
const pullRebaseArgs = ["config", "--local", "pull.rebase", "true"];
|
|
3198
3267
|
await this.git(path, userNameArgs);
|
|
3199
3268
|
await this.git(path, userEmailArgs);
|
|
3200
3269
|
await this.git(path, autoSetupRemoteArgs);
|
|
3270
|
+
await this.git(path, pullRebaseArgs);
|
|
3201
3271
|
}
|
|
3202
3272
|
/**
|
|
3203
3273
|
* Type guard for GitCommit
|
|
@@ -4077,7 +4147,7 @@ var ElekIoCore = class {
|
|
|
4077
4147
|
entryService;
|
|
4078
4148
|
localApi;
|
|
4079
4149
|
constructor(props) {
|
|
4080
|
-
this.coreVersion = version;
|
|
4150
|
+
this.coreVersion = package_default.version;
|
|
4081
4151
|
const parsedProps = constructorElekIoCoreSchema.parse(props);
|
|
4082
4152
|
const defaults = {
|
|
4083
4153
|
log: {
|