s2cfgtojson 7.0.13 → 7.0.15
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/dist/Struct.d.ts +67 -0
- package/dist/Struct.mjs +481 -0
- package/dist/enums.d.ts +205 -0
- package/dist/enums.mjs +2 -0
- package/dist/types.d.ts +9842 -0
- package/dist/types.mjs +3 -0
- package/dist/utility-types.d.ts +23 -0
- package/dist/utility-types.mjs +1 -0
- package/package.json +34 -3
- package/readme.md +1 -1
- package/Struct.mts +0 -623
- package/Struct.test.mts +0 -488
- package/enums.mts +0 -1980
- package/test.cfg +0 -598
- package/tsconfig.json +0 -8
- package/types.mts +0 -12248
- package/utility-types.mts +0 -668
package/dist/types.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { GetStructType } from "./Struct.mjs";
|
|
2
|
+
export type WeatherSelection = "CalmBeforeEmission" | "Clearly" | "Cloudy" | "Emission" | "Fogy" | "LightRainy" | "Rainy" | "Stormy" | "Thundery" | "Underground";
|
|
3
|
+
export type Caliber = "A012" | "A045" | "A545" | "A556" | "A762" | "A762NATO" | "A762Sniper" | "A918" | "A919" | "A939" | "AGA" | "AHEDP" | "APG7V" | "AVOG" | "None";
|
|
4
|
+
export type VariableValue = boolean | number | string;
|
|
5
|
+
export type WeaponShootDistance = "Long" | "Medium" | "Short";
|
|
6
|
+
export type SID = string;
|
|
7
|
+
export type Rank = "Newbie" | "Experienced" | "Veteran" | "Master";
|
|
8
|
+
export type Newbie = "ERank::Newbie";
|
|
9
|
+
export type Experienced = "ERank::Experienced";
|
|
10
|
+
export type Veteran = "ERank::Veteran";
|
|
11
|
+
export type Master = "ERank::Master";
|
|
12
|
+
export type Permutations2<A, B> = A extends string ? B extends string ? A | B | `${A}, ${B}` : A : never;
|
|
13
|
+
export type Permutations3<A, B, C> = A extends string ? B extends string ? C extends string ? Permutations2<A, B> | Permutations2<B, C> | `${A}, ${B}, ${C}` : Permutations2<A, B> : A : never;
|
|
14
|
+
export type StringArray = GetStructType<string[]>;
|
|
15
|
+
export type Reaction = "Enemy" | "Disaffection" | "Neutral" | "Friend" | "Self";
|
|
16
|
+
export type Archetype = "Bayun" | "Blinddog" | "Bloodsucker" | "Boar" | "Burer" | "Chimera" | "Controller" | "Deer" | "Flesh" | "GeneralNPC_Bandit_CloseCombat" | "GeneralNPC_Bandit_Heavy" | "GeneralNPC_Bandit_Recon" | "GeneralNPC_Bandit_Stormtrooper" | "GeneralNPC_Corpus_CloseCombat" | "GeneralNPC_Corpus_Heavy" | "GeneralNPC_Corpus_Recon" | "GeneralNPC_Corpus_Sniper" | "GeneralNPC_Corpus_Stormtrooper" | "GeneralNPC_Digger_CloseCombat" | "GeneralNPC_Digger_Recon" | "GeneralNPC_Digger_Sniper" | "GeneralNPC_Digger_Stormtrooper" | "GeneralNPC_Duty_CloseCombat" | "GeneralNPC_Duty_Heavy" | "GeneralNPC_Duty_Recon" | "GeneralNPC_Duty_Sniper" | "GeneralNPC_Duty_Stormtrooper" | "GeneralNPC_EnemyVarta_CloseCombat" | "GeneralNPC_EnemyVarta_Heavy" | "GeneralNPC_EnemyVarta_Recon" | "GeneralNPC_EnemyVarta_Sniper" | "GeneralNPC_EnemyVarta_Stormtrooper" | "GeneralNPC_Freedom_CloseCombat" | "GeneralNPC_Freedom_Recon" | "GeneralNPC_Freedom_Sniper" | "GeneralNPC_Freedom_Stormtrooper" | "GeneralNPC_IkarVarta_CloseCombat" | "GeneralNPC_IkarVarta_Heavy" | "GeneralNPC_IkarVarta_Recon" | "GeneralNPC_IkarVarta_Sniper" | "GeneralNPC_IkarVarta_Stormtrooper" | "GeneralNPC_MALACHITE_Scientist_Recon" | "GeneralNPC_Mercenaries_CloseCombat" | "GeneralNPC_Mercenaries_Recon" | "GeneralNPC_Mercenaries_Sniper" | "GeneralNPC_Mercenaries_Stormtrooper" | "GeneralNPC_Militaries_CloseCombat" | "GeneralNPC_Militaries_Heavy" | "GeneralNPC_Militaries_Recon" | "GeneralNPC_Militaries_Sniper" | "GeneralNPC_Militaries_Stormtrooper" | "GeneralNPC_Monolith_CloseCombat" | "GeneralNPC_Monolith_Recon" | "GeneralNPC_Monolith_Sniper" | "GeneralNPC_Monolith_Stormtrooper" | "GeneralNPC_Neutral_CloseCombat" | "GeneralNPC_Neutral_Recon" | "GeneralNPC_Neutral_Sniper" | "GeneralNPC_Neutral_Stormtrooper" | "GeneralNPC_NeutralBandit_CloseCombat" | "GeneralNPC_NeutralBandit_Heavy" | "GeneralNPC_NeutralBandit_Recon" | "GeneralNPC_NeutralBandit_Stormtrooper" | "GeneralNPC_NeutralMSOP_CloseCombat" | "GeneralNPC_NeutralMSOP_Heavy" | "GeneralNPC_NeutralMSOP_Recon" | "GeneralNPC_NeutralMSOP_Sniper" | "GeneralNPC_NeutralMSOP_Stormtrooper" | "GeneralNPC_Noon_CloseCombat" | "GeneralNPC_Noon_Recon" | "GeneralNPC_Noon_Stormtrooper" | "GeneralNPC_Scientists_Recon" | "GeneralNPC_Scientists_Stormtrooper" | "GeneralNPC_SIRCAA_Scientist_Recon" | "GeneralNPC_Spark_CloseCombat" | "GeneralNPC_Spark_Recon" | "GeneralNPC_Spark_Sniper" | "GeneralNPC_Spark_Stormtrooper" | "GeneralNPC_SultanBandit_CloseCombat" | "GeneralNPC_SultanBandit_Heavy" | "GeneralNPC_SultanBandit_Recon" | "GeneralNPC_SultanBandit_Stormtrooper" | "GeneralNPC_Varta_CloseCombat" | "GeneralNPC_Varta_Heavy" | "GeneralNPC_Varta_Recon" | "GeneralNPC_Varta_Sniper" | "GeneralNPC_Varta_Stormtrooper" | "GeneralZombie_Bandit_CloseCombat" | "GeneralZombie_Bandit_Heavy" | "GeneralZombie_Bandit_Recon" | "GeneralZombie_Bandit_Stormtrooper" | "GeneralZombie_Corpus_CloseCombat" | "GeneralZombie_Corpus_Heavy" | "GeneralZombie_Corpus_Recon" | "GeneralZombie_Corpus_Sniper" | "GeneralZombie_Corpus_Stormtrooper" | "GeneralZombie_Duty_CloseCombat" | "GeneralZombie_Duty_Heavy" | "GeneralZombie_Duty_Recon" | "GeneralZombie_Duty_Sniper" | "GeneralZombie_Duty_Stormtrooper" | "GeneralZombie_Freedom_CloseCombat" | "GeneralZombie_Freedom_Recon" | "GeneralZombie_Freedom_Sniper" | "GeneralZombie_Freedom_Stormtrooper" | "GeneralZombie_Neutral_CloseCombat" | "GeneralZombie_Neutral_Recon" | "GeneralZombie_Neutral_Sniper" | "GeneralZombie_Neutral_Stormtrooper" | "GuardNPC_Corpus_CloseCombat" | "GuardNPC_Corpus_Heavy" | "GuardNPC_Corpus_Recon" | "GuardNPC_Corpus_Sniper" | "GuardNPC_Corpus_Stormtrooper" | "GuardNPC_Digger_CloseCombat" | "GuardNPC_Digger_Recon" | "GuardNPC_Digger_Sniper" | "GuardNPC_Digger_Stormtrooper" | "GuardNPC_Duty_CloseCombat" | "GuardNPC_Duty_Heavy" | "GuardNPC_Duty_Recon" | "GuardNPC_Duty_Sniper" | "GuardNPC_Duty_Stormtrooper" | "GuardNPC_Freedom_CloseCombat" | "GuardNPC_Freedom_Recon" | "GuardNPC_Freedom_Sniper" | "GuardNPC_Freedom_Stormtrooper" | "GuardNPC_Monolith_CloseCombat" | "GuardNPC_Monolith_Recon" | "GuardNPC_Monolith_Sniper" | "GuardNPC_Monolith_Stormtrooper" | "GuardNPC_Neutral_CloseCombat" | "GuardNPC_Neutral_Recon" | "GuardNPC_Neutral_Sniper" | "GuardNPC_Neutral_Stormtrooper" | "GuardNPC_Noon_CloseCombat" | "GuardNPC_Noon_Recon" | "GuardNPC_Noon_Stormtrooper" | "GuardNPC_SultanBandit_CloseCombat" | "GuardNPC_SultanBandit_Heavy" | "GuardNPC_SultanBandit_Recon" | "GuardNPC_SultanBandit_Stormtrooper" | "GuardNPC_Varta_CloseCombat" | "GuardNPC_Varta_Heavy" | "GuardNPC_Varta_Recon" | "GuardNPC_Varta_Sniper" | "GuardNPC_Varta_Stormtrooper" | "Poltergeist" | "Poltergeist_Electro" | "Poltergeist_Fire" | "Poltergeist_Toxic" | "PseudoDog" | "Pseudogiant" | "Rat" | "Snork" | "Tushkan" | "BanditExperienced" | "BanditMaster" | "BanditNewbie" | "BanditVeteran" | "CorpusExperienced" | "CorpusMaster" | "CorpusNewbie" | "CorpusVeteran" | "DutyExperienced" | "DutyMaster" | "DutyNewbie" | "DutyVeteran" | "FlameExperienced" | "FlameMaster" | "FlameNewbie" | "FlameVeteran" | "FreedomExperienced" | "FreedomMaster" | "FreedomNewbie" | "FreedomVeteran" | "MercenaryExperienced" | "MercenaryMaster" | "MercenaryNewbie" | "MercenaryVeteran" | "MilitaryExperienced" | "MilitaryMaster" | "MilitaryNewbie" | "MilitaryVeteran" | "MonolithExperienced" | "MonolithMaster" | "MonolithNewbie" | "MonolithVeteran" | "NeutralExperienced" | "NeutralMaster" | "NeutralNewbie" | "NeutralVeteran" | "NoonExperienced" | "NoonMaster" | "NoonNewbie" | "NoonVeteran" | "Pseudodog" | "ScientistExperienced" | "ScientistMaster" | "ScientistNewbie" | "ScientistVeteran" | "SparkExperienced" | "SparkMaster" | "SparkNewbie" | "SparkVeteran" | "VartaExperienced" | "VartaMaster" | "VartaNewbie" | "VartaVeteran" | "ZombieCorpusMaster";
|
|
17
|
+
export type Faction = "Humanoid" | "Player" | "Bandits" | "Monolith" | "FreeStalkers" | "Army" | "Duty" | "Freedom" | "Varta" | "Neutrals" | "Militaries" | "Noon" | "Scientists" | "Mercenaries" | "Flame" | "Law" | "Spark" | "Corpus" | "WildBandits" | "GarmataMilitaries" | "SphereMilitaries" | "NeutralBandits" | "VaranBandits" | "RooseveltBandits" | "ShahBandits" | "LokotBandits" | "DepoBandits" | "DepoVictims" | "DocentBandits" | "VaranStashBandits" | "Diggers" | "KosakBandits" | "AzimutVarta" | "UdavMercenaries" | "SafariHunters" | "AzimuthMilitaries" | "SultanBandits" | "ShevchenkoStalkers" | "VartaLesnichestvo" | "SparkLesnichestvo" | "IkarVarta" | "KabanBandits" | "CrazyGuardians" | "ArenaEnemy" | "ArenaFriend" | "DrozdMilitaries" | "EnemyVarta" | "NeutralMSOP" | "YanovCorpus" | "MoleStalkers" | "Mutant" | "Controller" | "Poltergeist" | "Bloodsucker" | "Zombie" | "Chimera" | "Burer" | "Pseudogiant" | "Anamorph" | "Sinister" | "Pseudobear" | "Snork" | "Pseudodog" | "Boar" | "Flesh" | "Beaver" | "Ratwolf" | "Deer" | "Rat" | "Tushkan" | "Stickman" | "Blinddog" | "Bayun" | "CorpusStorm" | "DocileLabMutants" | "VartaSIRCAA" | "YantarZombie" | "FriendlyBlinddog" | "Lessy" | "AlliedMutants" | "NoahLesya" | "KlenMercenaries" | "SIRCAA_Scientist" | "MALACHITE_Scientist" | "NoonFaustians" | "SQ89_SidorMercs" | "ScarBoss_Faction" | "KorshunovBoss_Faction" | "StrelokBoss_Faction" | "FaustBoss_Faction";
|
|
18
|
+
export type HumanAbilityName = "Human_CombatPSYAttack" | "Human_MeleeAttack" | "Human_MeleeAttack_Agent" | "Human_PhantomAttack" | "Human_ThrowGrenade";
|
|
19
|
+
export type ObjectAbilityName = "AlertedAbility_BlindDog" | "AlertedAbility_Bloodsucker" | "AlertedAbility_Boar" | "AlertedAbility_Chimera" | "AlertedAbility_Flesh" | "AlertedAbility_PseudoDog" | "AlertedAbility_Snork" | "BerserkAbilityCamper" | "BerserkAbilityCamper_BlindDog" | "BerserkAbilityChaser" | "BerserkAbilityChaser_BlindDog" | "BerserkAbilityChaser_Deer" | "BerserkAbilityChaser_Pseudogiant" | "BlindDog_BiteAttack" | "BlindDog_BiteAttackAnyAngle" | "BlindDog_RunAttack_Left" | "BlindDog_RunAttack_Right" | "BlindDog_Shield" | "BlindDog_TurnAttack" | "BlindDog_TurnAttackAnyAngle" | "Bloodsucker_ClawAttack" | "Bloodsucker_JumpAttack" | "Bloodsucker_RunAttack_Left" | "Bloodsucker_RunAttack_Right" | "Bloodsucker_SpawnAnomaly" | "Bloodsucker_TurnAttack" | "Boar_ClawAttack" | "Boar_RunAttack_Left" | "Boar_RunAttack_Right" | "Boar_TurnAttack" | "Burer_ClawAttack" | "Burer_Shield" | "Burer_Throw" | "Burer_ThrowQueue_Grenades" | "Burer_WeaponDrag" | "Burer_WeaponRiseAndShoot" | "CancelBerserkCamper_BlindDog" | "CancelBerserkCamper_Bloodsucker" | "CancelBerserkCamper_Boar" | "CancelBerserkCamper_Burer" | "CancelBerserkCamper_Cat" | "CancelBerserkCamper_Chimera" | "CancelBerserkCamper_Controller" | "CancelBerserkCamper_Flesh" | "CancelBerserkCamper_PrologueBloodsucker" | "CancelBerserkCamper_Pseudodog" | "CancelBerserkCamper_Snork" | "CancelBerserkCamper_Tushkan" | "CancelBerserkCamperNoCooldowns" | "CancelBerserkChaser_BlindDog" | "CancelBerserkChaser_Bloodsucker" | "CancelBerserkChaser_Boar" | "CancelBerserkChaser_Burer" | "CancelBerserkChaser_Cat" | "CancelBerserkChaser_Chimera" | "CancelBerserkChaser_Controller" | "CancelBerserkChaser_Deer" | "CancelBerserkChaser_Flesh" | "CancelBerserkChaser_PrologueBloodsucker" | "CancelBerserkChaser_Pseudodog" | "CancelBerserkChaser_Pseudogiant" | "CancelBerserkChaser_Snork" | "CancelBerserkChaser_Tushkan" | "CancelCharge" | "Cat_BlinkTeleport" | "Cat_ClawAttack" | "Cat_EscapeIsolatedNavmesh" | "Cat_Evasion" | "Cat_FlyThrough" | "Cat_Jump" | "Cat_JumpAttack" | "Cat_JumpToEnemy" | "Cat_SleepinessAura" | "Cat_TurnAttack" | "ChargeAbility_Boar" | "ChargeAbility_Deer" | "ChargeAbility_Pseudogiant" | "Chimera_ClawAttack" | "Chimera_EscapeIsolatedNavmesh" | "Chimera_Evasion" | "Chimera_FlyThrough" | "Chimera_Jump" | "Chimera_JumpToEnemy" | "Chimera_LongJumpAttack" | "Chimera_RunAttack_Left" | "Chimera_RunAttack_Right" | "Chimera_ShortJumpAttack" | "Chimera_TurnAttack" | "CombatSummonAbility_Cat" | "CombatSummonAbility_Deer" | "CombatSummonAbility_PseudoDog" | "Controller_ClawAttack" | "Controller_Collar_PSYAttack" | "Controller_PSYAura" | "Controller_PSYStrike" | "Controller_RaiseDeadBody" | "Controller_RoarAbility" | "Controller_ZombifyNPC" | "Deer_ClawAttack" | "Deer_JumpAttack" | "Deer_TurnAttack" | "Faust_IntroPSYAttack" | "Flesh_ClawAttack" | "Flesh_JumpAttack" | "Flesh_TurnAttack" | "Granit_Shield" | "GrowlAbility_Cat" | "GrowlAbility_Chimera" | "GrowlAbility_Snork" | "GruntAbility" | "HowlAbility_BlindDog" | "HowlAbility_Pseudog" | "Human_CombatPSYAttack" | "Human_MeleeAttack" | "Human_ThrowGrenade" | "Korshunov_Jump" | "Korshunov_JumpAttack" | "Korshunov_MeleeAttack" | "Korshunov_ThrowGrenade" | "PhantomAttack" | "Poltergeist_ActivateAnomaly" | "Poltergeist_AOEPassiveAttack" | "Poltergeist_Electro_AOEPassiveAttack" | "Poltergeist_Fire_AOEPassiveAttack" | "Poltergeist_Shield" | "Poltergeist_Throw" | "Poltergeist_Toxic_AOEPassiveAttack" | "PrologueBloodsucker_ClawAttack" | "PrologueBloodsucker_JumpAttack" | "PrologueBloodsucker_RunAttack_Left" | "PrologueBloodsucker_RunAttack_Right" | "PrologueBloodsucker_TurnAttack" | "PseudoDog_BiteAttack" | "PseudoDog_RunAttack_Left" | "PseudoDog_RunAttack_Right" | "PseudoDog_TurnAttack" | "PseudoDogSummon_BiteAttack" | "PseudoDogSummon_RunAttack_Left" | "PseudoDogSummon_RunAttack_Right" | "PseudoDogSummon_TurnAttack" | "Pseudogiant_ClawAttack" | "Pseudogiant_RoarAbility" | "Pseudogiant_RunAttack_Left" | "Pseudogiant_RunAttack_Right" | "Pseudogiant_ShockwaveAttack" | "Pseudogiant_Throw" | "Pseudogiant_TurnAttack" | "RetreatSummonAbility_PseudoDog" | "RoarAbility" | "RoarAbility_Deer" | "RoarAbility_PrologueBloodsucker" | "Snork_ClawAttack" | "Snork_EscapeIsolatedNavmesh" | "Snork_Evasion" | "Snork_FlyThrough" | "Snork_Jump" | "Snork_JumpAttack" | "Snork_JumpToEnemy" | "Snork_KickAttack" | "Snork_TurnAttack" | "SqueekAbility_Flesh" | "SqueekAbility_Tushkan" | "Strelok_MeleeAttack" | "Strelok_SpawnAnomaliesAbility" | "Strelok_SpawnEMIAbility" | "TrickSoundAmbush_Bayun_E10_MQ01" | "TrickSoundAmbush_Cat" | "TrickSoundMimicry_Bayun_E10_MQ01" | "TrickSoundMimicry_Cat" | "TrickSoundMockery_Bayun_E10_MQ01" | "TrickSoundMockery_Cat" | "Tushkan_ClawAttack" | "Tushkan_JumpAttack" | "WoundedPSYStrike";
|
|
20
|
+
export type ScenarioGroup = "AllScenarios" | "CaptureLairs" | "ContextualActions" | "Emission" | "EmptyGroup" | "Global" | "Global_LesserZone" | "Hub" | "HumanVsMutants" | "HumanVsMutants_LesserZone" | "Local" | "Quiet" | "Swamp_ScenarioGroups";
|
|
21
|
+
export type EffectConditionalEffect = "BigSleepiness" | "DeadlyRadiation" | "Disabled" | "DisableHungerNegative" | "DisableRadiationNegative" | "DisableSleepinessNegative" | "FullHP" | "HighFallHeight" | "HighOverDrunkness" | "LightRadiation" | "LightRadiation_2" | "Low" | "LowBleeding" | "LowDrunkness" | "LowFallHeight" | "LowHPThreshold" | "LowHunger" | "LowSleepiness" | "LowSPThreshold" | "Medium" | "MediumBleeding" | "MediumDrunkness" | "MediumHunger" | "MediumRadiation" | "MediumSleepiness" | "No" | "NoBleeding" | "NoDrunkness" | "None" | "NoOverDrunkness" | "NormalHPThreshold" | "NormalSP" | "NoSleepiness" | "PhaseFour" | "PhaseOne" | "PhaseThree" | "PhaseTwo" | "RadiationLevel10" | "RadiationLevel4" | "RadiationLevel5" | "RadiationLevel6" | "RadiationLevel7" | "RadiationLevel8" | "RadiationLevel9" | "SmallSleepiness" | "Strong" | "StrongBleeding" | "StrongDrunkness" | "StrongHunger" | "StrongHungerNegative" | "StrongRadiation" | "StrongRadiationNegative" | "StrongSleepiness" | "StrongSleepinessNegative" | "VeryLowHunger" | "VeryLowSleepiness" | "Weak";
|
|
22
|
+
export type FactionGoalType = "Aggressive" | "Defensive" | "Normal";
|
|
23
|
+
export type MeshSlotName = "Bbe" | "BodyArmor" | "Bpa" | "Bpa_b" | "Bpa_c_d_e" | "Bpa_f" | "Cap" | "Clo" | "Face" | "Fbe" | "Fbe_a" | "Fbe_b" | "Fbe_c" | "Fbe_c_d_e" | "Fbe_c_d_e_f_g" | "Fbe_d" | "Fbe_e_f_i" | "Fbe_g_h" | "FrontBelt_1" | "FrontBelt_2" | "FrontBelt_3" | "Gla" | "Han" | "Hands" | "Hea" | "Hea_a" | "Hea_b" | "Hea_c" | "Head" | "Lch" | "LeftBelt_2" | "LefttBelt_1" | "Leg" | "Lhi" | "Lhi_a" | "Lhi_a_c" | "Lhi_b" | "Lhi_c" | "Lhi_d" | "Mas" | "Rch" | "Rch_c_d" | "Rhi" | "Rhi_a" | "Rhi_a_b" | "Rhi_b" | "Rhi_b_c" | "Rhi_c" | "Rhi_d" | "RightBelt_1" | "Tor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "s2cfgtojson",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.15",
|
|
4
4
|
"description": "Converts Stalker 2 Cfg file into POJOs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stalker",
|
|
@@ -22,10 +22,41 @@
|
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"author": "sdwvit",
|
|
24
24
|
"type": "module",
|
|
25
|
-
"main": "Struct.
|
|
25
|
+
"main": "./dist/Struct.mjs",
|
|
26
|
+
"types": "./dist/Struct.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/Struct.d.ts",
|
|
30
|
+
"import": "./dist/Struct.mjs",
|
|
31
|
+
"default": "./dist/Struct.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./Struct": {
|
|
34
|
+
"types": "./dist/Struct.d.ts",
|
|
35
|
+
"import": "./dist/Struct.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./types": {
|
|
38
|
+
"types": "./dist/types.d.ts",
|
|
39
|
+
"import": "./dist/types.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./enums": {
|
|
42
|
+
"types": "./dist/enums.d.ts",
|
|
43
|
+
"import": "./dist/enums.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./utility-types": {
|
|
46
|
+
"types": "./dist/utility-types.d.ts",
|
|
47
|
+
"import": "./dist/utility-types.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./package.json": "./package.json"
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist",
|
|
53
|
+
"readme.md"
|
|
54
|
+
],
|
|
26
55
|
"scripts": {
|
|
56
|
+
"build": "node ./scripts/build.mjs",
|
|
57
|
+
"prepublishOnly": "npm run build",
|
|
27
58
|
"test": "vitest",
|
|
28
|
-
"release:patch": "npm version patch && npm i && npm publish"
|
|
59
|
+
"release:patch": "npm version patch && npm i && npm audit fix && npm run build && npm publish"
|
|
29
60
|
},
|
|
30
61
|
"devDependencies": {
|
|
31
62
|
"@types/node": "^24.5.2",
|
package/readme.md
CHANGED
|
@@ -31,7 +31,7 @@ npm install
|
|
|
31
31
|
### Usage
|
|
32
32
|
Import the `Struct` class from `Struct.mts` to parse or generate Stalker 2 config data. For example:
|
|
33
33
|
```ts
|
|
34
|
-
import { Struct } from '
|
|
34
|
+
import { Struct } from 's2cfgtojson';
|
|
35
35
|
|
|
36
36
|
const config = new Struct();
|
|
37
37
|
// Use methods like `toString()` or `fromString()` to process configs
|