gdcore-tools 2.0.0-beta2 → 2.0.0-beta3
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/package.json +10 -4
- package/src/open_project.js +1 -1
- package/types/index.d.ts +1 -1
- package/types/open_project.d.ts +1 -1
- package/dist/lib/libGD.d.cts +0 -5
- package/dist/loaders.d.cts +0 -2
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdcore-tools",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-beta3",
|
|
4
4
|
"description": "A package of GDevelop's Core library with additional helper tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
|
-
"exports":
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./types/index.d.ts",
|
|
11
|
+
"default": "./src/index.js"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
"repository": {
|
|
9
16
|
"type": "git",
|
|
10
17
|
"url": "git+https://github.com/arthuro555/gdcore-tools.git"
|
|
@@ -31,7 +38,6 @@
|
|
|
31
38
|
"homepage": "https://github.com/arthuro555/gdcore-tools#readme",
|
|
32
39
|
"devDependencies": {
|
|
33
40
|
"typescript": "^5.3.3",
|
|
34
|
-
"@octokit/request": "^5.4.12",
|
|
35
41
|
"@types/minimist": "^1.2.5",
|
|
36
42
|
"@types/node": "^18.17.0",
|
|
37
43
|
"esbuild": "^0.18.17",
|
|
@@ -48,4 +54,4 @@
|
|
|
48
54
|
"postinstall": "patch-package",
|
|
49
55
|
"build": "node ./build/build.mjs"
|
|
50
56
|
}
|
|
51
|
-
}
|
|
57
|
+
}
|
package/src/open_project.js
CHANGED
|
@@ -101,7 +101,7 @@ const writeAndCheckFile = async (
|
|
|
101
101
|
await rename(tmp, path);
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
/** @returns {(project: gd.Project) => Promise<void>} */
|
|
104
|
+
/** @returns {(project: gd.Project, pathToProjectFile?: string) => Promise<void>} */
|
|
105
105
|
export const createProjectSaver = (
|
|
106
106
|
/** @type {{gd: typeof import("../gd.js"), split: (object: any, opts: {pathSeparator: string, getArrayItemReferenceName: (object: Object, currentReference: string) => string, shouldSplit: (path: string) => boolean, isReferenceMagicPropertyName: string}) => {reference: string, object: {}}[], getSlugifiedUniqueNameFromProperty: (propertyName: string) => (object: Object, currentReference: string) => string}} */ {
|
|
107
107
|
gd,
|
package/types/index.d.ts
CHANGED
|
@@ -20,4 +20,4 @@ export const loadProject: (projectFilePath: string) => Promise<import("../gd.js"
|
|
|
20
20
|
* @param {string} [pathToProjectFile]
|
|
21
21
|
* @returns {Promise<void>}
|
|
22
22
|
*/
|
|
23
|
-
export const saveProject: (project: import("../gd.js").Project) => Promise<void>;
|
|
23
|
+
export const saveProject: (project: import("../gd.js").Project, pathToProjectFile?: string | undefined) => Promise<void>;
|
package/types/open_project.d.ts
CHANGED
|
@@ -22,4 +22,4 @@ export function createProjectSaver({ gd, split, getSlugifiedUniqueNameFromProper
|
|
|
22
22
|
object: {};
|
|
23
23
|
}[];
|
|
24
24
|
getSlugifiedUniqueNameFromProperty: (propertyName: string) => (object: Object, currentReference: string) => string;
|
|
25
|
-
}): (project: gd.Project) => Promise<void>;
|
|
25
|
+
}): (project: gd.Project, pathToProjectFile?: string) => Promise<void>;
|
package/dist/lib/libGD.d.cts
DELETED
package/dist/loaders.d.cts
DELETED