Skip to content

Commit 3eadb77

Browse files
Disable formatting of generate files from protoc
to avoid that they change frequently due to formatting changes.
1 parent 25faf70 commit 3eadb77

File tree

8 files changed

+6
-5
lines changed

8 files changed

+6
-5
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/packages/shared/proto/*.ts

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "MMOG",
66
"scripts": {
77
"build": "yarn build:proto && esbuild packages/aws/move/index.ts packages/aws/initializeWorld/index.ts packages/aws/move/index.ts packages/aws/onConnect/index.ts packages/aws/onDisconnect/index.ts packages/aws/requestObjects/index.ts packages/aws/growPlants/index.ts packages/aws/authorizer/index.ts --bundle --platform=node --target=node18 --outdir=build/ --sourcemap --minify --external:@aws-sdk/client-apigatewaymanagementapi,@aws-sdk/client-dynamodb,@aws-sdk/lib-dynamodb",
8-
"build:proto": "protoc --ts_out=. packages/shared/*.proto",
8+
"build:proto": "protoc --ts_out=. packages/shared/proto/*.proto",
99
"build:test": "esbuild packages/shared/test.ts --bundle --platform=node --target=node18 --outfile=build/test.cjs --sourcemap",
1010
"build:test2": "esbuild packages/shared/test2.ts --bundle --platform=node --target=node18 --outfile=build/test2.cjs --sourcemap",
1111
"build:test3": "esbuild packages/shared/test3.ts --bundle --platform=node --target=node18 --outfile=build/test3.cjs --sourcemap",

packages/shared/communication/communication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Buffer } from "buffer"
22
import type { Direction } from "../Direction.js"
3-
import { MoveDataWithI as MoveDataWithIProto } from "../MoveDataWithI.js"
3+
import { MoveDataWithI as MoveDataWithIProto } from "../proto/MoveDataWithI.js"
44

55
export interface MoveData {
66
isMoving: boolean

packages/shared/communication/messagesFromServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Direction } from "../Direction.js"
2-
import { MoveFromServerData as MoveFromServerDataProto } from "../MoveFromServerData.js"
2+
import { MoveFromServerData as MoveFromServerDataProto } from "../proto/MoveFromServerData.js"
33
import { compress, decompress } from "./communication.js"
44

55
export interface MoveFromServerData {

packages/shared/MoveDataWithI.ts renamed to packages/shared/proto/MoveDataWithI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Generated by the protoc-gen-ts. DO NOT EDIT!
33
* compiler version: 4.24.3
4-
* source: packages/shared/MoveDataWithI.proto
4+
* source: packages/shared/proto/MoveDataWithI.proto
55
* git: https://github.com/thesayyn/protoc-gen-ts */
66
import * as pb_1 from "google-protobuf"
77
export class MoveDataWithI extends pb_1.Message {

packages/shared/MoveFromServerData.ts renamed to packages/shared/proto/MoveFromServerData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Generated by the protoc-gen-ts. DO NOT EDIT!
33
* compiler version: 4.24.3
4-
* source: packages/shared/MoveFromServerData.proto
4+
* source: packages/shared/proto/MoveFromServerData.proto
55
* git: https://github.com/thesayyn/protoc-gen-ts */
66
import * as pb_1 from "google-protobuf"
77
export class MoveFromServerData extends pb_1.Message {

0 commit comments

Comments
 (0)