bard-legends-framework 0.2.5 → 0.2.6

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,54 +1,60 @@
1
- {
2
- "name": "bard-legends-framework",
3
- "version": "0.2.5",
4
- "description": "Bard Legends Framework",
5
- "main": "dist/index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/sefabaser/Bard-Legends-Framework.git"
9
- },
10
- "author": "sefabaser",
11
- "license": "MIT",
12
- "bugs": {
13
- "url": "https://github.com/sefabaser/Bard-Legends-Framework/issues"
14
- },
15
- "prettier": {
16
- "printWidth": 130,
17
- "tabWidth": 2,
18
- "semicolons": true,
19
- "singleQuote": true,
20
- "trailingComma": "none",
21
- "arrowParens": "avoid"
22
- },
23
- "homepage": "https://github.com/sefabaser/Bard-Legends-Framework#readme",
24
- "scripts": {
25
- "clean-install": "cls && rm -rf node_modules && rm -rf package-lock.json && npm cache clean --force && npm install",
26
- "pretest": "cls",
27
- "test": "vitest",
28
- "build": "tsc",
29
- "lint": "eslint \"src/**/*.ts\" --fix",
30
- "deploy": "vitest run && npm run build && npm publish"
31
- },
32
- "dependencies": {
33
- "actions-lib": "1.7.4",
34
- "helpers-lib": "1.6.7",
35
- "p2": "0.7.1",
36
- "pixi-filters": "5.3.0",
37
- "pixi.js": "7.4.2",
38
- "reflect-metadata": "0.2.1"
39
- },
40
- "devDependencies": {
41
- "@types/p2": "0.7.44",
42
- "@typescript-eslint/eslint-plugin": "7.4.0",
43
- "@typescript-eslint/parser": "7.4.0",
44
- "eslint": "8.57.0",
45
- "eslint-config-prettier": "9.1.0",
46
- "eslint-plugin-import": "2.29.1",
47
- "eslint-plugin-no-null": "1.0.2",
48
- "eslint-plugin-sort-class-members": "1.20.0",
49
- "rollup-plugin-swc": "0.2.1",
50
- "tslib": "2.6.2",
51
- "typescript": "5.3.3",
52
- "vitest": "1.6.0"
53
- }
54
- }
1
+ {
2
+ "name": "bard-legends-framework",
3
+ "version": "0.2.6",
4
+ "description": "Bard Legends Framework",
5
+ "main": "dist/index.js",
6
+ "publishConfig": {
7
+ "main": "dist/index.js"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/sefabaser/Bard-Legends-Framework.git"
12
+ },
13
+ "author": "sefabaser",
14
+ "license": "MIT",
15
+ "bugs": {
16
+ "url": "https://github.com/sefabaser/Bard-Legends-Framework/issues"
17
+ },
18
+ "prettier": {
19
+ "printWidth": 130,
20
+ "tabWidth": 2,
21
+ "semicolons": true,
22
+ "singleQuote": true,
23
+ "trailingComma": "none",
24
+ "arrowParens": "avoid"
25
+ },
26
+ "homepage": "https://github.com/sefabaser/Bard-Legends-Framework#readme",
27
+ "scripts": {
28
+ "clean-install": "cls && rm -rf node_modules && rm -rf package-lock.json && npm cache clean --force && npm install",
29
+ "pretest": "cls",
30
+ "test": "vitest",
31
+ "build": "tsc",
32
+ "lint": "eslint \"src/**/*.ts\" --fix",
33
+ "deploy": "vitest run && npm run build && npm publish",
34
+ "prepack": "cp package.json package.json.bak && ts-node scripts/prepare-package-json.ts",
35
+ "postpack": "mv package.json.bak package.json"
36
+ },
37
+ "dependencies": {
38
+ "actions-lib": "1.7.4",
39
+ "helpers-lib": "1.6.7",
40
+ "p2": "0.7.1",
41
+ "pixi-filters": "5.3.0",
42
+ "pixi.js": "7.4.2",
43
+ "reflect-metadata": "0.2.1"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^20.12.11",
47
+ "@types/p2": "0.7.44",
48
+ "@typescript-eslint/eslint-plugin": "7.4.0",
49
+ "@typescript-eslint/parser": "7.4.0",
50
+ "eslint": "8.57.0",
51
+ "eslint-config-prettier": "9.1.0",
52
+ "eslint-plugin-import": "2.29.1",
53
+ "eslint-plugin-no-null": "1.0.2",
54
+ "eslint-plugin-sort-class-members": "1.20.0",
55
+ "rollup-plugin-swc": "0.2.1",
56
+ "tslib": "2.6.2",
57
+ "typescript": "5.3.3",
58
+ "vitest": "1.6.0"
59
+ }
60
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "bard-legends-framework",
3
+ "version": "0.2.6",
4
+ "description": "Bard Legends Framework",
5
+ "main": "src/index.ts",
6
+ "publishConfig": {
7
+ "main": "dist/index.js"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/sefabaser/Bard-Legends-Framework.git"
12
+ },
13
+ "author": "sefabaser",
14
+ "license": "MIT",
15
+ "bugs": {
16
+ "url": "https://github.com/sefabaser/Bard-Legends-Framework/issues"
17
+ },
18
+ "prettier": {
19
+ "printWidth": 130,
20
+ "tabWidth": 2,
21
+ "semicolons": true,
22
+ "singleQuote": true,
23
+ "trailingComma": "none",
24
+ "arrowParens": "avoid"
25
+ },
26
+ "homepage": "https://github.com/sefabaser/Bard-Legends-Framework#readme",
27
+ "scripts": {
28
+ "clean-install": "cls && rm -rf node_modules && rm -rf package-lock.json && npm cache clean --force && npm install",
29
+ "pretest": "cls",
30
+ "test": "vitest",
31
+ "build": "tsc",
32
+ "lint": "eslint \"src/**/*.ts\" --fix",
33
+ "deploy": "vitest run && npm run build && npm publish",
34
+ "prepack": "cp package.json package.json.bak && ts-node scripts/prepare-package-json.ts",
35
+ "postpack": "mv package.json.bak package.json"
36
+ },
37
+ "dependencies": {
38
+ "actions-lib": "1.7.4",
39
+ "helpers-lib": "1.6.7",
40
+ "p2": "0.7.1",
41
+ "pixi-filters": "5.3.0",
42
+ "pixi.js": "7.4.2",
43
+ "reflect-metadata": "0.2.1"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^20.12.11",
47
+ "@types/p2": "0.7.44",
48
+ "@typescript-eslint/eslint-plugin": "7.4.0",
49
+ "@typescript-eslint/parser": "7.4.0",
50
+ "eslint": "8.57.0",
51
+ "eslint-config-prettier": "9.1.0",
52
+ "eslint-plugin-import": "2.29.1",
53
+ "eslint-plugin-no-null": "1.0.2",
54
+ "eslint-plugin-sort-class-members": "1.20.0",
55
+ "rollup-plugin-swc": "0.2.1",
56
+ "tslib": "2.6.2",
57
+ "typescript": "5.3.3",
58
+ "vitest": "1.6.0"
59
+ }
60
+ }
@@ -0,0 +1,23 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
2
+ let fs = require('fs');
3
+
4
+ let cwd = process.cwd();
5
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
6
+ let packageJson = require(`${cwd}/package.json`);
7
+
8
+ let newPackageJson = {
9
+ ...packageJson,
10
+ main: packageJson.publishConfig?.main ?? packageJson.main
11
+ };
12
+
13
+ if (packageJson.publishConfig?.types) {
14
+ newPackageJson.types = packageJson.publishConfig.types;
15
+ }
16
+
17
+ if (packageJson.publishConfig?.module) {
18
+ newPackageJson.module = packageJson.publishConfig.module;
19
+ }
20
+
21
+ try {
22
+ fs.writeFileSync(`${cwd}/package.json`, JSON.stringify(newPackageJson, undefined, 2));
23
+ } catch (e) {}