Skip to content

Commit 9009c2f

Browse files
authored
fix: Make the motoko/who_am_i compatible with dfx new (attempt 2) (#1273)
This PR makes the motoko/who_am_i compatible with dfx new (by moving some source files into expected locations)
1 parent c307603 commit 9009c2f

File tree

10 files changed

+5
-5
lines changed

10 files changed

+5
-5
lines changed

motoko/who_am_i/dfx.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"canisters": {
33
"internet_identity_app_backend": {
4-
"main": "internet_identity_app_backend/app.mo",
4+
"main": "src/internet_identity_app_backend/main.mo",
55
"type": "motoko",
66
"args": "--enhanced-orthogonal-persistence"
77
},
88
"internet_identity_app_frontend": {
99
"dependencies": ["internet_identity_app_backend"],
1010
"internet_identity_app_frontend": {
11-
"entrypoint": "internet_identity_app_frontend/index.html"
11+
"entrypoint": "src/internet_identity_app_frontend/index.html"
1212
},
13-
"source": ["internet_identity_app_frontend/dist"],
13+
"source": ["src/internet_identity_app_frontend/dist"],
1414
"type": "assets"
1515
},
1616
"internet_identity": {

motoko/who_am_i/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
},
88
"type": "module",
99
"workspaces": [
10-
"internet_identity_app_frontend"
10+
"src/internet_identity_app_frontend"
1111
]
1212
}

motoko/who_am_i/internet_identity_app_backend/app.mo renamed to motoko/who_am_i/src/internet_identity_app_backend/main.mo

File renamed without changes.

motoko/who_am_i/internet_identity_app_frontend/index.css renamed to motoko/who_am_i/src/internet_identity_app_frontend/index.css

File renamed without changes.

motoko/who_am_i/internet_identity_app_frontend/index.html renamed to motoko/who_am_i/src/internet_identity_app_frontend/index.html

File renamed without changes.

motoko/who_am_i/internet_identity_app_frontend/package.json renamed to motoko/who_am_i/src/internet_identity_app_frontend/package.json

File renamed without changes.

motoko/who_am_i/internet_identity_app_frontend/public/favicon.ico renamed to motoko/who_am_i/src/internet_identity_app_frontend/public/favicon.ico

File renamed without changes.

motoko/who_am_i/internet_identity_app_frontend/src/App.jsx renamed to motoko/who_am_i/src/internet_identity_app_frontend/src/App.jsx

File renamed without changes.

motoko/who_am_i/internet_identity_app_frontend/src/main.jsx renamed to motoko/who_am_i/src/internet_identity_app_frontend/src/main.jsx

File renamed without changes.

motoko/who_am_i/internet_identity_app_frontend/vite.config.js renamed to motoko/who_am_i/src/internet_identity_app_frontend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default defineConfig({
2121
alias: [
2222
{
2323
find: 'declarations',
24-
replacement: fileURLToPath(new URL('../src/declarations', import.meta.url))
24+
replacement: fileURLToPath(new URL('../declarations', import.meta.url))
2525
}
2626
]
2727
},

0 commit comments

Comments
 (0)