diff --git a/src/ArxMap.ts b/src/ArxMap.ts index bb35710a..0631e7da 100644 --- a/src/ArxMap.ts +++ b/src/ArxMap.ts @@ -37,11 +37,11 @@ import { Translations } from '@src/Translations.js' import { UI } from '@src/UI.js' import { Vector3 } from '@src/Vector3.js' import { Zone } from '@src/Zone.js' +import { compile } from '@src/compile.js' import { MapFinalizedError, MapNotFinalizedError } from '@src/errors.js' import { times } from '@src/faux-ramda.js' -import { getGeneratorPackageJSON, getProjectPackageJSON, latin9ToLatin1 } from '@src/helpers.js' +import { getGeneratorPackageJSON, latin9ToLatin1 } from '@src/helpers.js' import { OriginalLevel } from '@src/types.js' -import { compile } from './compile.js' type ArxMapConfig = { isFinalized: boolean diff --git a/src/Entity.ts b/src/Entity.ts index 98405e66..ae7b7f1c 100644 --- a/src/Entity.ts +++ b/src/Entity.ts @@ -2,13 +2,13 @@ import path from 'node:path' import { ArxInteractiveObject } from 'arx-convert/types' import { Expand, Optional } from 'arx-convert/utils' import { Audio } from '@src/Audio.js' +import { EntityModel } from '@src/EntityModel.js' import { Rotation } from '@src/Rotation.js' import { Script } from '@src/Script.js' import { Settings } from '@src/Settings.js' import { Texture } from '@src/Texture.js' import { Vector3 } from '@src/Vector3.js' -import { EntityModel } from './EntityModel.js' -import { TextureOrMaterial } from './types.js' +import { TextureOrMaterial } from '@src/types.js' const instanceCatalog: Record = {} diff --git a/src/EntityModel.ts b/src/EntityModel.ts index b0443507..5d1165c1 100644 --- a/src/EntityModel.ts +++ b/src/EntityModel.ts @@ -4,11 +4,11 @@ import { FTL } from 'arx-convert' import { ArxFTL, ArxFaceType } from 'arx-convert/types' import { Expand, TripleOf } from 'arx-convert/utils' import { BufferAttribute, Mesh, MeshBasicMaterial, Vector2 } from 'three' +import { Settings } from '@src/Settings.js' +import { Texture } from '@src/Texture.js' +import { Vector3 } from '@src/Vector3.js' +import { fileExists, roundToNDecimals } from '@src/helpers.js' import { getNonIndexedVertices } from '@tools/mesh/getVertices.js' -import { Settings } from './Settings.js' -import { Texture } from './Texture.js' -import { Vector3 } from './Vector3.js' -import { fileExists, roundToNDecimals } from './helpers.js' type EntityModelConstructorProps = { filename: string diff --git a/src/Manifest.ts b/src/Manifest.ts index 7dbd5fea..9d7172a9 100644 --- a/src/Manifest.ts +++ b/src/Manifest.ts @@ -3,7 +3,7 @@ import path from 'node:path' import { ArxMap } from '@src/ArxMap.js' import { MetaData, generateMetadata } from '@src/MetaData.js' import { Settings } from '@src/Settings.js' -import { fileExists } from './helpers.js' +import { fileExists } from '@src/helpers.js' export type ManifestData = MetaData & { files: string[] diff --git a/src/MetaData.ts b/src/MetaData.ts index fcd07d35..997262c4 100644 --- a/src/MetaData.ts +++ b/src/MetaData.ts @@ -1,5 +1,5 @@ -import { Settings, Variant } from './Settings.js' -import { getGeneratorPackageJSON, getProjectPackageJSON } from './helpers.js' +import { Settings, Variant } from '@src/Settings.js' +import { getGeneratorPackageJSON, getProjectPackageJSON } from '@src/helpers.js' export type MetaData = { seed: string diff --git a/src/Settings.ts b/src/Settings.ts index 96124038..2d034364 100644 --- a/src/Settings.ts +++ b/src/Settings.ts @@ -2,7 +2,7 @@ import path from 'node:path' import { fileURLToPath } from 'node:url' import { config as dotenvConfig } from 'dotenv' import seedrandom from 'seedrandom' -import { randomIntBetween } from './random.js' +import { randomIntBetween } from '@src/random.js' dotenvConfig() diff --git a/src/tools/mesh/connectEdgeTo.ts b/src/tools/mesh/connectEdgeTo.ts index cbe6a405..ae53732d 100644 --- a/src/tools/mesh/connectEdgeTo.ts +++ b/src/tools/mesh/connectEdgeTo.ts @@ -1,6 +1,6 @@ import { BufferAttribute, BufferGeometry } from 'three' +import { categorizeVertices } from '@tools/mesh/categorizeVertices.js' import { getVertices } from '@tools/mesh/getVertices.js' -import { categorizeVertices } from './categorizeVertices.js' /** * Connect the edge vertices of "source" to the edge vertices of "target"