folib 0.1.1
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/.github/workflows/publish.yml +23 -0
- package/CHANGELOG.md +5 -0
- package/README.md +3 -0
- package/eslint.config.js +23 -0
- package/package.json +26 -0
- package/src/base.d.ts +941 -0
- package/src/define.ts +18 -0
- package/src/index.ts +254 -0
- package/src/rp/animcomd.ts +42 -0
- package/src/rp/command.ts +25 -0
- package/src/rp/critterpid.ts +606 -0
- package/src/rp/global.ts +812 -0
- package/src/rp/itempid.ts +624 -0
- package/src/rp/maps.ts +398 -0
- package/src/rp/modoc.ts +10 -0
- package/src/rp/scenepid.ts +170 -0
- package/src/rp/scripts.ts +3076 -0
- package/src/sfall/ai_area.ts +8 -0
- package/src/sfall/ai_attack.ts +8 -0
- package/src/sfall/ai_cap.ts +18 -0
- package/src/sfall/ai_chem.ts +9 -0
- package/src/sfall/ai_disposition.ts +9 -0
- package/src/sfall/ai_distance.ts +8 -0
- package/src/sfall/ai_run_away.ts +11 -0
- package/src/sfall/ai_weapon.ts +11 -0
- package/src/sfall/command_lite.ts +29 -0
- package/src/sfall/define_extra.ts +472 -0
- package/src/sfall/define_lite.ts +913 -0
- package/src/sfall/dik.ts +131 -0
- package/src/sfall/index.ts +1634 -0
- package/src/sfall/lib.arrays.ts +307 -0
- package/src/sfall/lib.misc.ts +35 -0
- package/src/sfall/lib.strings.ts +118 -0
- package/src/sfall/sfall.d.ts +1706 -0
- package/src/sfall/sfall.ts +2478 -0
- package/src/types.d.ts +119 -0
- package/src/types.ts +49 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
|
+
- uses: pnpm/action-setup@v4
|
|
14
|
+
with:
|
|
15
|
+
version: latest
|
|
16
|
+
- uses: actions/setup-node@v6
|
|
17
|
+
with:
|
|
18
|
+
node-version: "22"
|
|
19
|
+
cache: pnpm
|
|
20
|
+
- run: pnpm install && pnpm exec eslint src && pnpm exec tsc
|
|
21
|
+
- uses: JS-DevTools/npm-publish@v4.1.1
|
|
22
|
+
with:
|
|
23
|
+
token: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
ADDED
package/README.md
ADDED
package/eslint.config.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import tseslint from 'typescript-eslint';
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
eslint.configs.recommended,
|
|
6
|
+
...tseslint.configs.recommended,
|
|
7
|
+
{
|
|
8
|
+
rules: {
|
|
9
|
+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
10
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
11
|
+
'@typescript-eslint/no-unsafe-function-type': 'off',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
files: ['**/*.d.ts'],
|
|
16
|
+
rules: {
|
|
17
|
+
'@typescript-eslint/no-unused-vars': 'off',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
ignores: ['node_modules/**'],
|
|
22
|
+
}
|
|
23
|
+
];
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "folib",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "TypeScript bindings for Fallout 2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./src/index.ts",
|
|
8
|
+
"./sfall": "./src/sfall/index.ts"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"lint": "eslint src",
|
|
12
|
+
"typecheck": "tsc"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@eslint/js": "^9.39.2",
|
|
16
|
+
"eslint": "^9.39.2",
|
|
17
|
+
"typescript": "^5.9.3",
|
|
18
|
+
"typescript-eslint": "^8.50.1"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"Fallout",
|
|
22
|
+
"Fallout 2",
|
|
23
|
+
"sfall",
|
|
24
|
+
"TSSL"
|
|
25
|
+
]
|
|
26
|
+
}
|