From 46322738bfbdb58747ad65b4dc1eb4b4f5bbec06 Mon Sep 17 00:00:00 2001 From: Unknower Date: Sun, 22 Sep 2024 19:15:02 -0400 Subject: [PATCH] add "dom" to attempt to remove errors in parent project --- .github/workflows/next-publish.yml | 34 +++++++++++++++++++++ package.json | 12 +++++--- src/components/VLMDanceFloor.component.ts | 6 ++-- src/components/VLMSystemEvents.component.ts | 5 --- src/components/index.ts | 1 + src/index.ts | 5 +-- src/logic/VLMSystemListeners.logic.ts | 2 -- tsconfig.json | 3 +- 8 files changed, 50 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/next-publish.yml diff --git a/.github/workflows/next-publish.yml b/.github/workflows/next-publish.yml new file mode 100644 index 0000000..f7d6114 --- /dev/null +++ b/.github/workflows/next-publish.yml @@ -0,0 +1,34 @@ +name: Publish Next Package + +on: + push: + branches: + - next + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build + + - name: Set custom tag + run: echo "CUSTOM_TAG=next" >> $GITHUB_ENV + + - name: Publish package + run: npm publish --tag ${{ env.CUSTOM_TAG }} + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 36276e2..688ca5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vlm-dcl", - "version": "1.0.0-alpha.50", + "version": "1.0.0-alpha.60", "description": "Virtual Land Manager for Decentraland SDK7", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -17,7 +17,9 @@ "dcl", "decentraland", "sdk", - "library" + "library", + "vlm", + "virtuallandmanager" ], "author": "-", "license": "Apache-2.0", @@ -36,8 +38,8 @@ "@babel/plugin-transform-private-property-in-object": "^7.22.5", "@babel/preset-env": "^7.21.5", "@babel/preset-typescript": "^7.22.5", - "@dcl/asset-packs": "^1.20.0", - "@dcl/js-runtime": "7.5.6", + "@dcl/js-runtime": "7.5.7", + "@dcl/sdk": "latest", "@microsoft/api-documenter": "^7.17.11", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^21.1.0", @@ -46,7 +48,7 @@ "@rollup/plugin-replace": "^5.0.2", "@rollup/plugin-typescript": "^8.5.0", "@types/jest": "^27.4.1", - "@types/node": "^20.10.5", + "@types/node": "^20.16.5", "cross-env": "^7.0.3", "jest": "^27.5.1", "prettier": "^3.1.0", diff --git a/src/components/VLMDanceFloor.component.ts b/src/components/VLMDanceFloor.component.ts index 2731626..a08f6e2 100644 --- a/src/components/VLMDanceFloor.component.ts +++ b/src/components/VLMDanceFloor.component.ts @@ -1,12 +1,12 @@ import { Entity } from '@dcl/sdk/ecs' -import { VLMBase } from './VLMBase.component' import { Vector3, Color4 } from '@dcl/sdk/math' +import { ecs } from '../environment' +import { VLMBase } from './VLMBase.component' import { MaterialService } from '../services/Material.service' import { MeshService } from '../services/Mesh.service' import { TransformService } from '../services/Transform.service' -import { ecs } from '../environment' import { VLMDebug } from '../logic/VLMDebug.logic' -import { VLMBaseProperties, VLMClickable, VLMInstanceProperties, VLMInstancedItem, VLMTextureOptions } from '../shared/interfaces' +import { VLMBaseProperties, VLMClickable, VLMInstanceProperties, VLMInstancedItem } from '../shared/interfaces' import { AutoDanceService } from '../services/AutoDance.service' export type EmoteList = TriggeredEmote[] diff --git a/src/components/VLMSystemEvents.component.ts b/src/components/VLMSystemEvents.component.ts index 4660a24..8a25837 100644 --- a/src/components/VLMSystemEvents.component.ts +++ b/src/components/VLMSystemEvents.component.ts @@ -2,18 +2,13 @@ import { VLMSessionManager } from "../logic/VLMSession.logic"; import { VLMSceneElement, VLMSceneElementInstance } from "../logic/VLMScene.logic"; import { PathPoint } from "../logic/VLMPath.logic"; import { VLMModeration } from "./VLMModeration.component"; -// import { VLMNotification } from "./VLMNotification.component"; import { VLMScene } from "./VLMScene.component"; import { VLMSession } from "./VLMSession.component"; -// import { VLMSound } from "./VLMSound.component"; -import { VLMVideo } from "./VLMVideo.component"; import { VLMWidget } from "./VLMWidget.component"; -// import { VLMClaimPoint } from "./VLMClaimPoint.component"; import { VLMSound } from "./VLMSound.component"; import { StreamState } from "../shared/interfaces"; import { VLMClaimPoint } from "./VLMClaimPoint.component"; import { VLMNotification } from "./VLMNotification.component"; -// import { VLMClaimPoint } from "./VLMClaimPoint.component"; export class VLMSystemEvent { diff --git a/src/components/index.ts b/src/components/index.ts index 5102ab8..8d4a5a5 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -7,3 +7,4 @@ export * from "./VLMNotification.component"; export * from './VLMSound.component' export * from './VLMVideo.component' export * from './VLMWidget.component' +export * from './VLMDanceFloor.component' diff --git a/src/index.ts b/src/index.ts index 0442be3..1a60d78 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,7 @@ import { QuickImage, QuickSound, QuickMesh, + QuickDanceFloor, VLMMesh, QuickNull, QuickNullConfig, @@ -15,12 +16,12 @@ import { QuickImageConfig, QuickMeshConfig, QuickSoundConfig, + QuickDanceFloorConfig, } from './components/index' -import 'xmlhttprequest-polyfill' +import 'xmlhttprequest-polyfill' // @ts-ignore import { URL } from 'whatwg-url-without-unicode' -import { QuickDanceFloor, QuickDanceFloorConfig } from './components/VLMDanceFloor.component' import { ReactEcsRenderer } from './services/UI.service' // @ts-ignore diff --git a/src/logic/VLMSystemListeners.logic.ts b/src/logic/VLMSystemListeners.logic.ts index 2197842..c902257 100644 --- a/src/logic/VLMSystemListeners.logic.ts +++ b/src/logic/VLMSystemListeners.logic.ts @@ -4,14 +4,12 @@ import { VLMPathServerEvent, VLMPlayerPosition, VLMSceneMessage, - VLMSessionAction, VLMSessionEvent, VLMSettingsEvent, VLMSoundStateEvent, VLMUserMessage, VLMVideoStatusEvent, VLMWidgetInitEvent, - VLMWitnessedAction, } from '../components/VLMSystemEvents.component' import { VLMEventManager } from './VLMSystemEvents.logic' import { Room } from 'colyseus.js' diff --git a/tsconfig.json b/tsconfig.json index 4619ed1..a434caa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -32,7 +32,8 @@ "strictFunctionTypes": true, "strictPropertyInitialization": true, "lib": [ - "ES2020" + "ES2020", + "DOM", ], "types": [ "@dcl/js-runtime",