From 2bb6477dbe6580c2bd2308aeccf9afc2b547b24a Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Fri, 22 Sep 2023 13:49:18 -0600 Subject: [PATCH] rename func files to index --- .../canisters/func_types/{func_types.did => index.did} | 0 .../canisters/func_types/{func_types.ts => index.ts} | 2 +- .../canisters/notifiers/{notifiers.did => index.did} | 0 .../canisters/notifiers/{notifiers.ts => index.ts} | 0 examples/func_types/dfx.json | 8 ++++---- 5 files changed, 5 insertions(+), 5 deletions(-) rename examples/func_types/canisters/func_types/{func_types.did => index.did} (100%) rename examples/func_types/canisters/func_types/{func_types.ts => index.ts} (97%) rename examples/func_types/canisters/notifiers/{notifiers.did => index.did} (100%) rename examples/func_types/canisters/notifiers/{notifiers.ts => index.ts} (100%) diff --git a/examples/func_types/canisters/func_types/func_types.did b/examples/func_types/canisters/func_types/index.did similarity index 100% rename from examples/func_types/canisters/func_types/func_types.did rename to examples/func_types/canisters/func_types/index.did diff --git a/examples/func_types/canisters/func_types/func_types.ts b/examples/func_types/canisters/func_types/index.ts similarity index 97% rename from examples/func_types/canisters/func_types/func_types.ts rename to examples/func_types/canisters/func_types/index.ts index c101a5491e..b317653fd9 100644 --- a/examples/func_types/canisters/func_types/func_types.ts +++ b/examples/func_types/canisters/func_types/index.ts @@ -18,7 +18,7 @@ import { Void, Null } from 'azle'; -import Notifier, { NotifierFunc } from '../notifiers/notifiers'; +import Notifier, { NotifierFunc } from '../notifiers'; @func([text], text, 'query') class BasicFunc extends Func {} diff --git a/examples/func_types/canisters/notifiers/notifiers.did b/examples/func_types/canisters/notifiers/index.did similarity index 100% rename from examples/func_types/canisters/notifiers/notifiers.did rename to examples/func_types/canisters/notifiers/index.did diff --git a/examples/func_types/canisters/notifiers/notifiers.ts b/examples/func_types/canisters/notifiers/index.ts similarity index 100% rename from examples/func_types/canisters/notifiers/notifiers.ts rename to examples/func_types/canisters/notifiers/index.ts diff --git a/examples/func_types/dfx.json b/examples/func_types/dfx.json index b26d5f2ef5..ed806a8ba6 100644 --- a/examples/func_types/dfx.json +++ b/examples/func_types/dfx.json @@ -4,8 +4,8 @@ "type": "custom", "build": "npx azle func_types", "root": "src", - "ts": "canisters/func_types/func_types.ts", - "candid": "canisters/func_types/func_types.did", + "ts": "canisters/func_types/index.ts", + "candid": "canisters/func_types/index.did", "wasm": ".azle/func_types/func_types.wasm.gz", "declarations": { "output": "test/dfx_generated/func_types", @@ -17,8 +17,8 @@ "type": "custom", "build": "npx azle notifiers", "root": "src", - "ts": "canisters/notifiers/notifiers.ts", - "candid": "canisters/notifiers/notifiers.did", + "ts": "canisters/notifiers/index.ts", + "candid": "canisters/notifiers/index.did", "wasm": ".azle/notifiers/notifiers.wasm.gz", "declarations": { "output": "test/dfx_generated/notifiers",