Skip to content

Commit

Permalink
Using wollok-game-web v1.1.0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Jul 25, 2024
1 parent aa96159 commit 135c8f8
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 52 deletions.
183 changes: 137 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"pkg": "^5.8.1",
"socket.io": "^4.5.1",
"winston": "^3.11.0",
"wollok-game-web": "file:../wollok-game-web",
"wollok-game-web": "1.1.0",
"wollok-ts": "4.1.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const getAllAssets = (projectPath: string, assetsFolder: string): Asset[]
fs.readdirSync(basePath, { withFileTypes: true })
.flatMap((file: Dirent) =>
file.isDirectory() ? loadImagesIn(join(basePath, file.name)) :
isValidAsset(file) ? [fileRelativeFor(relative(baseFolder, join(basePath, file.name)))] : []
isValidAsset(file) ? [fileRelativeFor(relative(baseFolder, join(basePath, file.name)))] : []
)

return loadImagesIn(baseFolder)
Expand Down
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { blue, bold, green, italic, red, yellow, yellowBright } from 'chalk'
import fs, { Dirent, existsSync, mkdirSync } from 'fs'
import fs, { existsSync, mkdirSync } from 'fs'
import { readFile } from 'fs/promises'
import globby from 'globby'
import logger from 'loglevel'
import path, { join } from 'path'
import { Asset, VALID_IMAGE_EXTENSIONS, VALID_SOUND_EXTENSIONS } from 'wollok-game-web/dist/utils'
import { Environment, Problem, WOLLOK_EXTRA_STACK_TRACE_HEADER, buildEnvironment, validate } from 'wollok-ts'
import { VALID_IMAGE_EXTENSIONS, VALID_SOUND_EXTENSIONS } from 'wollok-game-web/dist/utils'
import { buildEnvironment, Environment, Problem, validate, WOLLOK_EXTRA_STACK_TRACE_HEADER } from 'wollok-ts'
import { replNode } from './commands/repl'

const { time, timeEnd } = console
Expand Down
Loading

0 comments on commit 135c8f8

Please sign in to comment.