-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,3 +173,6 @@ dist | |
|
||
# Finder (MacOS) folder config | ||
.DS_Store | ||
types.js | ||
exporter.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Offlineland.io's exporter thingy | ||
|
||
`exporter.js` is a console snippet to export your account from [Manyland](https://manyland.com) (creations, collections, snaps, etc), and potentially import it back to [Offlineland.io](https://offlineland.io) | ||
|
||
|
||
|
||
## For developers: | ||
|
||
The actual work is done on the `exporter.ts` file. To set up a dev env: | ||
|
||
- install Bun ([Bun](https://bun.sh)): | ||
- install dependencies: | ||
```bash | ||
bun install | ||
``` | ||
- run the compiler in watch mode: | ||
```bash | ||
bun run dev | ||
``` | ||
|
||
When copy-pasting the built exporter.js, you'll need to be careful not to copy the first two lines: | ||
```js | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
``` | ||
Typescript really really wants to include them and has no option not to, but it doesn't work in browser. | ||
|
||
(If you manage to have tsc pick up the type for Zod.infer without using the `import/export type ...` syntax, you're a god please help me) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters