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 +60 -54
- package/package.json.bak +60 -0
- package/scripts/prepare-package-json.ts +23 -0
package/package.json
CHANGED
|
@@ -1,54 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bard-legends-framework",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Bard Legends Framework",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"eslint-plugin
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
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
|
+
}
|
package/package.json.bak
ADDED
|
@@ -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) {}
|