Skip to content

Commit 9a58b86

Browse files
committed
split non-devvit code into separate @toolbox-team/storage package
1 parent edc5ca7 commit 9a58b86

17 files changed

+72
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"private": true,
33
"workspaces": [
4+
"packages/storage",
45
"packages/toolbox-devvit"
56
],
67
"devDependencies": {

packages/storage/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src
2+
tsconfig.json
3+
dist/**/*.test.{js,d.ts}
4+
*.tsbuildinfo

packages/storage/package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "@toolbox-team/storage",
3+
"version": "0.0.1-terrible-do-not-use",
4+
"description": "Helpers for working with Toolbox's data storage formats.",
5+
"type": "module",
6+
"main": "dist/index.js",
7+
"types": "dist/index.d.ts",
8+
"files": [
9+
"dist/*"
10+
],
11+
"scripts": {
12+
"fmt": "dprint fmt",
13+
"build": "tsc",
14+
"test": "ava",
15+
"coverage": "nyc ava",
16+
"docs": "typedoc src/index.ts",
17+
"prepublishOnly": "tsc && ava"
18+
},
19+
"repository": "https://github.com/toolbox-team/toolbox-devvit.git",
20+
"author": "eritbh <github@eritbh.me>",
21+
"license": "MIT",
22+
"bugs": {
23+
"url": "https://github.com/toolbox-team/toolbox-devvit/issues"
24+
},
25+
"homepage": "https://github.com/toolbox-team/toolbox-devvit#readme",
26+
"dependencies": {
27+
"pako": "^1.0.11"
28+
},
29+
"ava": {
30+
"typescript": {
31+
"compile": "tsc",
32+
"rewritePaths": {
33+
"src/": "dist/"
34+
}
35+
}
36+
}
37+
}

packages/toolbox-devvit/src/config/RawSubredditConfig.test.ts renamed to packages/storage/src/config/RawSubredditConfig.test.ts

File renamed without changes.
File renamed without changes.

packages/toolbox-devvit/src/config/SubredditConfig.test.ts renamed to packages/storage/src/config/SubredditConfig.test.ts

File renamed without changes.
File renamed without changes.

packages/storage/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export * from './config/RawSubredditConfig.js';
2+
export * from './config/SubredditConfig.js';
3+
4+
export * from './usernotes/RawUsernotes.js';
5+
export * from './usernotes/Usernote.js';
6+
export * from './usernotes/Usernotes.js';

packages/toolbox-devvit/src/usernotes/RawUsernotes.test.ts renamed to packages/storage/src/usernotes/RawUsernotes.test.ts

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)