@wirechunk/cli 0.0.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +70594 -0
- package/package.json +40 -0
- package/src/commands/bootstrap.ts +81 -0
- package/src/commands/create-extension-version.ts +206 -0
- package/src/commands/create-user.ts +142 -0
- package/src/commands/dev/init-ext-db.ts +263 -0
- package/src/commands/edit-admin.ts +69 -0
- package/src/env.ts +85 -0
- package/src/errors.ts +30 -0
- package/src/fetch.ts +32 -0
- package/src/global-options.ts +6 -0
- package/src/main.ts +114 -0
- package/src/users/permissions.ts +39 -0
- package/src/util.ts +29 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +23 -0
- package/vite.config.ts +18 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2023",
|
|
4
|
+
"lib": ["ES2023", "ESNext.Promise"],
|
|
5
|
+
"module": "NodeNext",
|
|
6
|
+
"moduleResolution": "NodeNext",
|
|
7
|
+
"allowImportingTsExtensions": true,
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"allowJs": false,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"forceConsistentCasingInFileNames": true,
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
"strict": true,
|
|
16
|
+
"strictNullChecks": true,
|
|
17
|
+
"noImplicitReturns": true,
|
|
18
|
+
"noUncheckedIndexedAccess": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"skipLibCheck": false,
|
|
21
|
+
"noEmit": true
|
|
22
|
+
}
|
|
23
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { defineConfig } from 'vite';
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
ssr: {
|
|
6
|
+
// Every dependency except for built-in node dependencies are inlined.
|
|
7
|
+
noExternal: [/^(?!node:).*/],
|
|
8
|
+
external: ['argon2'],
|
|
9
|
+
},
|
|
10
|
+
build: {
|
|
11
|
+
ssr: true,
|
|
12
|
+
target: 'node22',
|
|
13
|
+
rollupOptions: {
|
|
14
|
+
input: resolve(import.meta.dirname, 'src/main.ts'),
|
|
15
|
+
},
|
|
16
|
+
outDir: 'build',
|
|
17
|
+
},
|
|
18
|
+
});
|