Skip to content

Commit

Permalink
refactor(imports): replace relative imports with import aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Sep 1, 2023
1 parent 12876da commit 006677e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/ArxMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Entity[]> = {}

Expand Down
8 changes: 4 additions & 4 deletions src/EntityModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down
4 changes: 2 additions & 2 deletions src/MetaData.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion src/tools/mesh/connectEdgeTo.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 006677e

Please sign in to comment.