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 CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "gdcore-tools",
3
- "version": "2.0.0-beta2",
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": "./src/index.js",
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
+ }
@@ -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>;
@@ -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>;
@@ -1,5 +0,0 @@
1
- export = initializeGDevelopJs;
2
- declare function initializeGDevelopJs(initializeGDevelopJs: any): any;
3
- declare namespace initializeGDevelopJs {
4
- export { initializeGDevelopJs };
5
- }
@@ -1,2 +0,0 @@
1
- declare const _exports: any;
2
- export = _exports;