@lukoweb/apitogo 0.1.0 → 0.1.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/dist/cli/cli.js +25 -146
- package/package.json +1 -1
- package/src/vite/config.ts +4 -4
- package/src/vite/plugin-component.ts +6 -6
- package/src/vite/plugin-mdx.ts +1 -1
- package/src/vite/plugin.ts +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -20,8 +20,8 @@ var init_package_json = __esm({
|
|
|
20
20
|
path.posix.sep
|
|
21
21
|
);
|
|
22
22
|
getPackageJson = (pkgPath) => JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
23
|
-
getZudokuPackageJson = () => getPackageJson(getPackageJsonPath("apitogo"));
|
|
24
|
-
getZudokuRootDir = () => path.dirname(getPackageJsonPath("apitogo"));
|
|
23
|
+
getZudokuPackageJson = () => getPackageJson(getPackageJsonPath("@lukoweb/apitogo"));
|
|
24
|
+
getZudokuRootDir = () => path.dirname(getPackageJsonPath("@lukoweb/apitogo"));
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -3815,8 +3815,8 @@ import {
|
|
|
3815
3815
|
|
|
3816
3816
|
// package.json
|
|
3817
3817
|
var package_default = {
|
|
3818
|
-
name: "apitogo",
|
|
3819
|
-
version: "0.1.
|
|
3818
|
+
name: "@lukoweb/apitogo",
|
|
3819
|
+
version: "0.1.1",
|
|
3820
3820
|
type: "module",
|
|
3821
3821
|
sideEffects: [
|
|
3822
3822
|
"**/*.css",
|
|
@@ -4066,127 +4066,6 @@ var package_default = {
|
|
|
4066
4066
|
mermaid: {
|
|
4067
4067
|
optional: true
|
|
4068
4068
|
}
|
|
4069
|
-
},
|
|
4070
|
-
publishConfig: {
|
|
4071
|
-
exports: {
|
|
4072
|
-
".": {
|
|
4073
|
-
types: "./dist/declarations/index.d.ts",
|
|
4074
|
-
default: "./src/index.ts"
|
|
4075
|
-
},
|
|
4076
|
-
"./package.json": "./package.json",
|
|
4077
|
-
"./ui/*": {
|
|
4078
|
-
types: "./dist/declarations/lib/ui/*.d.ts",
|
|
4079
|
-
default: "./src/lib/ui/*.tsx"
|
|
4080
|
-
},
|
|
4081
|
-
"./ui/*.js": {
|
|
4082
|
-
types: "./dist/declarations/lib/ui/*.d.ts",
|
|
4083
|
-
default: "./src/lib/ui/*.tsx"
|
|
4084
|
-
},
|
|
4085
|
-
"./client": {
|
|
4086
|
-
types: "./client.d.ts"
|
|
4087
|
-
},
|
|
4088
|
-
"./auth/clerk": {
|
|
4089
|
-
types: "./dist/declarations/lib/authentication/providers/clerk.d.ts",
|
|
4090
|
-
default: "./src/lib/authentication/providers/clerk.tsx"
|
|
4091
|
-
},
|
|
4092
|
-
"./auth/auth0": {
|
|
4093
|
-
types: "./dist/declarations/lib/authentication/providers/auth0.d.ts",
|
|
4094
|
-
default: "./src/lib/authentication/providers/auth0.tsx"
|
|
4095
|
-
},
|
|
4096
|
-
"./auth/openid": {
|
|
4097
|
-
types: "./dist/declarations/lib/authentication/providers/openid.d.ts",
|
|
4098
|
-
default: "./src/lib/authentication/providers/openid.tsx"
|
|
4099
|
-
},
|
|
4100
|
-
"./auth/supabase": {
|
|
4101
|
-
types: "./dist/declarations/lib/authentication/providers/supabase.d.ts",
|
|
4102
|
-
default: "./src/lib/authentication/providers/supabase.tsx"
|
|
4103
|
-
},
|
|
4104
|
-
"./auth/azureb2c": {
|
|
4105
|
-
types: "./dist/declarations/lib/authentication/providers/azureb2c.d.ts",
|
|
4106
|
-
default: "./src/lib/authentication/providers/azureb2c.tsx"
|
|
4107
|
-
},
|
|
4108
|
-
"./auth/firebase": {
|
|
4109
|
-
types: "./dist/declarations/lib/authentication/providers/firebase.d.ts",
|
|
4110
|
-
default: "./src/lib/authentication/providers/firebase.tsx"
|
|
4111
|
-
},
|
|
4112
|
-
"./plugins": {
|
|
4113
|
-
types: "./dist/declarations/lib/core/plugins.d.ts",
|
|
4114
|
-
default: "./src/lib/core/plugins.ts"
|
|
4115
|
-
},
|
|
4116
|
-
"./plugins/api-keys": {
|
|
4117
|
-
types: "./dist/declarations/lib/plugins/api-keys/index.d.ts",
|
|
4118
|
-
default: "./src/lib/plugins/api-keys/index.tsx"
|
|
4119
|
-
},
|
|
4120
|
-
"./plugins/markdown": {
|
|
4121
|
-
types: "./dist/declarations/lib/plugins/markdown/index.d.ts",
|
|
4122
|
-
default: "./src/lib/plugins/markdown/index.tsx"
|
|
4123
|
-
},
|
|
4124
|
-
"./plugins/openapi": {
|
|
4125
|
-
types: "./dist/declarations/lib/plugins/openapi/index.d.ts",
|
|
4126
|
-
default: "./src/lib/plugins/openapi/index.tsx"
|
|
4127
|
-
},
|
|
4128
|
-
"./plugins/custom-pages": {
|
|
4129
|
-
types: "./dist/declarations/lib/plugins/custom-pages/index.d.ts",
|
|
4130
|
-
default: "./src/lib/plugins/custom-pages/index.tsx"
|
|
4131
|
-
},
|
|
4132
|
-
"./plugins/search-inkeep": {
|
|
4133
|
-
types: "./dist/declarations/lib/plugins/search-inkeep/index.d.ts",
|
|
4134
|
-
default: "./src/lib/plugins/search-inkeep/index.tsx"
|
|
4135
|
-
},
|
|
4136
|
-
"./plugins/search-pagefind": {
|
|
4137
|
-
types: "./dist/declarations/lib/plugins/search-pagefind/index.d.ts",
|
|
4138
|
-
default: "./src/lib/plugins/search-pagefind/index.tsx"
|
|
4139
|
-
},
|
|
4140
|
-
"./plugins/api-catalog": {
|
|
4141
|
-
types: "./dist/declarations/lib/plugins/api-catalog/index.d.ts",
|
|
4142
|
-
default: "./src/lib/plugins/api-catalog/index.tsx"
|
|
4143
|
-
},
|
|
4144
|
-
"./components": {
|
|
4145
|
-
types: "./dist/declarations/lib/components/index.d.ts",
|
|
4146
|
-
default: "./src/lib/components/index.ts"
|
|
4147
|
-
},
|
|
4148
|
-
"./mermaid": {
|
|
4149
|
-
types: "./dist/declarations/lib/components/Mermaid.d.ts",
|
|
4150
|
-
default: "./src/lib/components/Mermaid.tsx"
|
|
4151
|
-
},
|
|
4152
|
-
"./router": {
|
|
4153
|
-
types: "./dist/declarations/lib/core/router.d.ts",
|
|
4154
|
-
default: "./src/lib/core/router.ts"
|
|
4155
|
-
},
|
|
4156
|
-
"./react-query": {
|
|
4157
|
-
types: "./dist/declarations/lib/core/react-query.d.ts",
|
|
4158
|
-
default: "./src/lib/core/react-query.ts"
|
|
4159
|
-
},
|
|
4160
|
-
"./icons": {
|
|
4161
|
-
types: "./dist/declarations/lib/icons.d.ts",
|
|
4162
|
-
default: "./src/lib/icons.ts"
|
|
4163
|
-
},
|
|
4164
|
-
"./vite": {
|
|
4165
|
-
types: "./dist/declarations/vite/index.d.ts",
|
|
4166
|
-
default: "./src/vite/index.ts"
|
|
4167
|
-
},
|
|
4168
|
-
"./app/*": {
|
|
4169
|
-
types: "./dist/declarations/app/*.d.ts",
|
|
4170
|
-
default: "./src/app/*"
|
|
4171
|
-
},
|
|
4172
|
-
"./hooks": {
|
|
4173
|
-
types: "./dist/declarations/lib/hooks/index.d.ts",
|
|
4174
|
-
default: "./src/lib/hooks/index.ts"
|
|
4175
|
-
},
|
|
4176
|
-
"./main.css": "./src/app/main.css",
|
|
4177
|
-
"./processors/*": {
|
|
4178
|
-
types: "./dist/declarations/lib/plugins/openapi/processors/*.d.ts",
|
|
4179
|
-
default: "./src/lib/plugins/openapi/processors/*.ts"
|
|
4180
|
-
},
|
|
4181
|
-
"./with-zuplo": {
|
|
4182
|
-
types: "./dist/declarations/zuplo/with-zuplo.d.ts",
|
|
4183
|
-
default: "./src/zuplo/with-zuplo.ts"
|
|
4184
|
-
},
|
|
4185
|
-
"./testing": {
|
|
4186
|
-
types: "./dist/declarations/lib/testing/index.d.ts",
|
|
4187
|
-
default: "./src/lib/testing/index.tsx"
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4190
4069
|
}
|
|
4191
4070
|
};
|
|
4192
4071
|
|
|
@@ -4366,7 +4245,7 @@ var viteApiKeysPlugin = () => {
|
|
|
4366
4245
|
const deploymentName = ZuploEnv.buildConfig?.deploymentName || getZuploSystemConfigurations(process.env.ZUPLO_SYSTEM_CONFIGURATIONS)?.__ZUPLO_DEPLOYMENT_NAME;
|
|
4367
4246
|
const code = [
|
|
4368
4247
|
`import config from "virtual:zudoku-config";`,
|
|
4369
|
-
config2.__meta.mode === "internal" ? `import { apiKeyPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/api-keys/index.tsx";` : `import { apiKeyPlugin } from "apitogo/plugins/api-keys";`,
|
|
4248
|
+
config2.__meta.mode === "internal" ? `import { apiKeyPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/api-keys/index.tsx";` : `import { apiKeyPlugin } from "@lukoweb/apitogo/plugins/api-keys";`,
|
|
4370
4249
|
`export const configuredApiKeysPlugin = apiKeyPlugin({
|
|
4371
4250
|
...config.apiKeys,
|
|
4372
4251
|
isZuplo: ${ZuploEnv.isZuplo},
|
|
@@ -6070,7 +5949,7 @@ export const rules = ${rulesCode};`,
|
|
|
6070
5949
|
if (hasMissingIcon) {
|
|
6071
5950
|
collectedIcons.add("MissingIcon");
|
|
6072
5951
|
}
|
|
6073
|
-
const importStatement = collectedIcons.size > 0 ? `import { ${[...collectedIcons].join(", ")} } from "apitogo/icons";
|
|
5952
|
+
const importStatement = collectedIcons.size > 0 ? `import { ${[...collectedIcons].join(", ")} } from "@lukoweb/apitogo/icons";
|
|
6074
5953
|
` : "";
|
|
6075
5954
|
return [
|
|
6076
5955
|
importStatement,
|
|
@@ -6195,7 +6074,7 @@ var viteApiPlugin = async () => {
|
|
|
6195
6074
|
`const configuredApiCatalogPlugins = [];`
|
|
6196
6075
|
];
|
|
6197
6076
|
if (config2.apis) {
|
|
6198
|
-
code.push('import { openApiPlugin } from "apitogo/plugins/openapi";');
|
|
6077
|
+
code.push('import { openApiPlugin } from "@lukoweb/apitogo/plugins/openapi";');
|
|
6199
6078
|
code.push(
|
|
6200
6079
|
`const apis = Array.isArray(config.apis) ? config.apis : [config.apis]`
|
|
6201
6080
|
);
|
|
@@ -6287,7 +6166,7 @@ var viteApiPlugin = async () => {
|
|
|
6287
6166
|
}
|
|
6288
6167
|
if (config2.catalogs) {
|
|
6289
6168
|
code.push(
|
|
6290
|
-
'import { apiCatalogPlugin } from "apitogo/plugins/api-catalog";'
|
|
6169
|
+
'import { apiCatalogPlugin } from "@lukoweb/apitogo/plugins/api-catalog";'
|
|
6291
6170
|
);
|
|
6292
6171
|
const catalogs = ensureArray(config2.catalogs);
|
|
6293
6172
|
const categories = apis.flatMap((api) => api.categories ?? []).reduce((acc, catalog) => {
|
|
@@ -6373,7 +6252,7 @@ var viteAuthPlugin = () => {
|
|
|
6373
6252
|
...${JSON.stringify(config2.authentication, null, 2)},
|
|
6374
6253
|
basePath: ${config2.basePath ? JSON.stringify(config2.basePath) : "undefined"},
|
|
6375
6254
|
};`,
|
|
6376
|
-
config2.__meta.mode === "internal" ? `import authProvider from "${config2.__meta.moduleDir}/src/lib/authentication/providers/${config2.authentication.type}.tsx";` : `import authProvider from "apitogo/auth/${config2.authentication.type}";`,
|
|
6255
|
+
config2.__meta.mode === "internal" ? `import authProvider from "${config2.__meta.moduleDir}/src/lib/authentication/providers/${config2.authentication.type}.tsx";` : `import authProvider from "@lukoweb/apitogo/auth/${config2.authentication.type}";`,
|
|
6377
6256
|
`export const configuredAuthProvider = authProvider(config);`
|
|
6378
6257
|
].join("\n");
|
|
6379
6258
|
}
|
|
@@ -6391,18 +6270,18 @@ var viteAliasPlugin = () => {
|
|
|
6391
6270
|
config: () => {
|
|
6392
6271
|
const config2 = getCurrentConfig();
|
|
6393
6272
|
const replacements = [
|
|
6394
|
-
["apitogo/components", "src/lib/components/index.ts"],
|
|
6395
|
-
["apitogo/plugins/openapi", "src/lib/plugins/openapi/index.tsx"],
|
|
6396
|
-
["apitogo/plugins/api-catalog", "src/lib/plugins/api-catalog/index.tsx"],
|
|
6273
|
+
["@lukoweb/apitogo/components", "src/lib/components/index.ts"],
|
|
6274
|
+
["@lukoweb/apitogo/plugins/openapi", "src/lib/plugins/openapi/index.tsx"],
|
|
6275
|
+
["@lukoweb/apitogo/plugins/api-catalog", "src/lib/plugins/api-catalog/index.tsx"],
|
|
6397
6276
|
[
|
|
6398
|
-
"apitogo/plugins/search-inkeep",
|
|
6277
|
+
"@lukoweb/apitogo/plugins/search-inkeep",
|
|
6399
6278
|
"src/lib/plugins/search-inkeep/index.tsx"
|
|
6400
6279
|
],
|
|
6401
6280
|
[
|
|
6402
|
-
"apitogo/plugins/search-pagefind",
|
|
6281
|
+
"@lukoweb/apitogo/plugins/search-pagefind",
|
|
6403
6282
|
"src/lib/plugins/search-pagefind/index.tsx"
|
|
6404
6283
|
],
|
|
6405
|
-
[
|
|
6284
|
+
[/^@lukoweb\/apitogo\/ui\/(.*)\.js/, "src/lib/ui/$1.tsx"]
|
|
6406
6285
|
];
|
|
6407
6286
|
const aliases = replacements.map(([find, replacement]) => ({
|
|
6408
6287
|
find,
|
|
@@ -6438,7 +6317,7 @@ var viteConfigPlugin = () => {
|
|
|
6438
6317
|
}
|
|
6439
6318
|
return `
|
|
6440
6319
|
import rawConfig from "${normalizePath(configPath)}";
|
|
6441
|
-
import { runPluginTransformConfig } from "apitogo/plugins";
|
|
6320
|
+
import { runPluginTransformConfig } from "@lukoweb/apitogo/plugins";
|
|
6442
6321
|
|
|
6443
6322
|
const config = await runPluginTransformConfig(rawConfig);
|
|
6444
6323
|
export default config;
|
|
@@ -6494,7 +6373,7 @@ var viteCustomPagesPlugin = () => {
|
|
|
6494
6373
|
}
|
|
6495
6374
|
const code = [
|
|
6496
6375
|
`import config from "virtual:zudoku-config";`,
|
|
6497
|
-
config2.__meta.mode === "internal" ? `import { customPagesPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/custom-pages/index.tsx";` : `import { customPagesPlugin } from "apitogo/plugins/custom-pages";`,
|
|
6376
|
+
config2.__meta.mode === "internal" ? `import { customPagesPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/custom-pages/index.tsx";` : `import { customPagesPlugin } from "@lukoweb/apitogo/plugins/custom-pages";`,
|
|
6498
6377
|
`export const configuredCustomPagesPlugin = customPagesPlugin(config.navigation);`
|
|
6499
6378
|
];
|
|
6500
6379
|
return code.join("\n");
|
|
@@ -6680,7 +6559,7 @@ var viteDocsPlugin = () => {
|
|
|
6680
6559
|
const code = [
|
|
6681
6560
|
// IMPORTANT! This path here is important, we MUST resolve
|
|
6682
6561
|
// files here as Typescript from the appDir
|
|
6683
|
-
config2.__meta.mode === "internal" ? `import { markdownPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/markdown/index.tsx";` : `import { markdownPlugin } from "apitogo/plugins/markdown";`
|
|
6562
|
+
config2.__meta.mode === "internal" ? `import { markdownPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/markdown/index.tsx";` : `import { markdownPlugin } from "@lukoweb/apitogo/plugins/markdown";`
|
|
6684
6563
|
];
|
|
6685
6564
|
const docsConfig = DocsConfigSchema.parse(config2.docs ?? {});
|
|
6686
6565
|
const globImportBasePath = process.env.NODE_ENV === "development" ? config2.basePath ?? "" : "";
|
|
@@ -7295,7 +7174,7 @@ var viteMdxPlugin = async () => {
|
|
|
7295
7174
|
return {
|
|
7296
7175
|
enforce: "pre",
|
|
7297
7176
|
...mdx({
|
|
7298
|
-
providerImportSource: config2.__meta.mode === "internal" || config2.__meta.mode === "standalone" ? "@mdx-js/react" : "apitogo/components",
|
|
7177
|
+
providerImportSource: config2.__meta.mode === "internal" || config2.__meta.mode === "standalone" ? "@mdx-js/react" : "@lukoweb/apitogo/components",
|
|
7299
7178
|
mdxExtensions: [".mdx"],
|
|
7300
7179
|
format: "detect",
|
|
7301
7180
|
remarkPlugins,
|
|
@@ -7328,7 +7207,7 @@ var viteSearchPlugin = () => {
|
|
|
7328
7207
|
if (config2.search.type === "inkeep") {
|
|
7329
7208
|
code.push(
|
|
7330
7209
|
`import config from 'virtual:zudoku-config';`,
|
|
7331
|
-
`import { inkeepSearchPlugin } from "apitogo/plugins/search-inkeep";`,
|
|
7210
|
+
`import { inkeepSearchPlugin } from "@lukoweb/apitogo/plugins/search-inkeep";`,
|
|
7332
7211
|
`export const configuredSearchPlugin = inkeepSearchPlugin(config.search);`
|
|
7333
7212
|
);
|
|
7334
7213
|
return code.join("\n");
|
|
@@ -7336,7 +7215,7 @@ var viteSearchPlugin = () => {
|
|
|
7336
7215
|
if (config2.search.type === "pagefind") {
|
|
7337
7216
|
code.push(
|
|
7338
7217
|
`import config from 'virtual:zudoku-config';`,
|
|
7339
|
-
`import { pagefindSearchPlugin } from "apitogo/plugins/search-pagefind";`,
|
|
7218
|
+
`import { pagefindSearchPlugin } from "@lukoweb/apitogo/plugins/search-pagefind";`,
|
|
7340
7219
|
`export const configuredSearchPlugin = pagefindSearchPlugin(config.search);`
|
|
7341
7220
|
);
|
|
7342
7221
|
return code.join("\n");
|
|
@@ -7445,7 +7324,7 @@ function vitePlugin() {
|
|
|
7445
7324
|
viteSearchPlugin(),
|
|
7446
7325
|
plugin_component_default(),
|
|
7447
7326
|
plugin_markdown_export_default(),
|
|
7448
|
-
vitePluginSsrCss({ entries: ["apitogo/app/entry.server.tsx"] }),
|
|
7327
|
+
vitePluginSsrCss({ entries: ["@lukoweb/apitogo/app/entry.server.tsx"] }),
|
|
7449
7328
|
viteThemePlugin(),
|
|
7450
7329
|
tailwindcss()
|
|
7451
7330
|
];
|
|
@@ -7550,7 +7429,7 @@ async function getViteConfig(dir, configEnv) {
|
|
|
7550
7429
|
),
|
|
7551
7430
|
emptyOutDir: true,
|
|
7552
7431
|
rollupOptions: {
|
|
7553
|
-
input: configEnv.command === "build" ? configEnv.isSsrBuild ? ["apitogo/app/entry.server.tsx", config2.__meta.configPath] : "apitogo/app/entry.client.tsx" : void 0,
|
|
7432
|
+
input: configEnv.command === "build" ? configEnv.isSsrBuild ? ["@lukoweb/apitogo/app/entry.server.tsx", config2.__meta.configPath] : "@lukoweb/apitogo/app/entry.client.tsx" : void 0,
|
|
7554
7433
|
external: [joinUrl(config2.basePath, "/pagefind/pagefind.js")]
|
|
7555
7434
|
},
|
|
7556
7435
|
chunkSizeWarningLimit: 1500
|
|
@@ -7571,10 +7450,10 @@ async function getViteConfig(dir, configEnv) {
|
|
|
7571
7450
|
target: "es2022"
|
|
7572
7451
|
},
|
|
7573
7452
|
entries: [path17.posix.join(getZudokuRootDir(), "src/{app,lib}/**")],
|
|
7574
|
-
exclude: ["apitogo"],
|
|
7453
|
+
exclude: ["@lukoweb/apitogo"],
|
|
7575
7454
|
include: [
|
|
7576
7455
|
"react-dom/client",
|
|
7577
|
-
"apitogo/icons",
|
|
7456
|
+
"@lukoweb/apitogo/icons",
|
|
7578
7457
|
...process.env.SENTRY_DSN ? ["@sentry/react"] : []
|
|
7579
7458
|
]
|
|
7580
7459
|
},
|
package/package.json
CHANGED
package/src/vite/config.ts
CHANGED
|
@@ -150,8 +150,8 @@ export async function getViteConfig(
|
|
|
150
150
|
input:
|
|
151
151
|
configEnv.command === "build"
|
|
152
152
|
? configEnv.isSsrBuild
|
|
153
|
-
? ["apitogo/app/entry.server.tsx", config.__meta.configPath]
|
|
154
|
-
: "apitogo/app/entry.client.tsx"
|
|
153
|
+
? ["@lukoweb/apitogo/app/entry.server.tsx", config.__meta.configPath]
|
|
154
|
+
: "@lukoweb/apitogo/app/entry.client.tsx"
|
|
155
155
|
: undefined,
|
|
156
156
|
external: [joinUrl(config.basePath, "/pagefind/pagefind.js")],
|
|
157
157
|
},
|
|
@@ -175,10 +175,10 @@ export async function getViteConfig(
|
|
|
175
175
|
target: "es2022",
|
|
176
176
|
},
|
|
177
177
|
entries: [path.posix.join(getZudokuRootDir(), "src/{app,lib}/**")],
|
|
178
|
-
exclude: ["apitogo"],
|
|
178
|
+
exclude: ["@lukoweb/apitogo"],
|
|
179
179
|
include: [
|
|
180
180
|
"react-dom/client",
|
|
181
|
-
"apitogo/icons",
|
|
181
|
+
"@lukoweb/apitogo/icons",
|
|
182
182
|
...(process.env.SENTRY_DSN ? ["@sentry/react"] : []),
|
|
183
183
|
],
|
|
184
184
|
},
|
|
@@ -9,18 +9,18 @@ const viteAliasPlugin = (): Plugin => {
|
|
|
9
9
|
const config = getCurrentConfig();
|
|
10
10
|
|
|
11
11
|
const replacements = [
|
|
12
|
-
["apitogo/components", "src/lib/components/index.ts"],
|
|
13
|
-
["apitogo/plugins/openapi", "src/lib/plugins/openapi/index.tsx"],
|
|
14
|
-
["apitogo/plugins/api-catalog", "src/lib/plugins/api-catalog/index.tsx"],
|
|
12
|
+
["@lukoweb/apitogo/components", "src/lib/components/index.ts"],
|
|
13
|
+
["@lukoweb/apitogo/plugins/openapi", "src/lib/plugins/openapi/index.tsx"],
|
|
14
|
+
["@lukoweb/apitogo/plugins/api-catalog", "src/lib/plugins/api-catalog/index.tsx"],
|
|
15
15
|
[
|
|
16
|
-
"apitogo/plugins/search-inkeep",
|
|
16
|
+
"@lukoweb/apitogo/plugins/search-inkeep",
|
|
17
17
|
"src/lib/plugins/search-inkeep/index.tsx",
|
|
18
18
|
],
|
|
19
19
|
[
|
|
20
|
-
"apitogo/plugins/search-pagefind",
|
|
20
|
+
"@lukoweb/apitogo/plugins/search-pagefind",
|
|
21
21
|
"src/lib/plugins/search-pagefind/index.tsx",
|
|
22
22
|
],
|
|
23
|
-
[
|
|
23
|
+
[/^@lukoweb\/apitogo\/ui\/(.*)\.js/, "src/lib/ui/$1.tsx"],
|
|
24
24
|
] as const;
|
|
25
25
|
|
|
26
26
|
const aliases = replacements.map(([find, replacement]) => ({
|
package/src/vite/plugin-mdx.ts
CHANGED
|
@@ -136,7 +136,7 @@ const viteMdxPlugin = async (): Promise<Plugin> => {
|
|
|
136
136
|
providerImportSource:
|
|
137
137
|
config.__meta.mode === "internal" || config.__meta.mode === "standalone"
|
|
138
138
|
? "@mdx-js/react"
|
|
139
|
-
: "apitogo/components",
|
|
139
|
+
: "@lukoweb/apitogo/components",
|
|
140
140
|
mdxExtensions: [".mdx"],
|
|
141
141
|
format: "detect",
|
|
142
142
|
remarkPlugins,
|
package/src/vite/plugin.ts
CHANGED
|
@@ -35,7 +35,7 @@ export default function vitePlugin(): PluginOption {
|
|
|
35
35
|
viteSearchPlugin(),
|
|
36
36
|
viteAliasPlugin(),
|
|
37
37
|
viteMarkdownExportPlugin(),
|
|
38
|
-
vitePluginSsrCss({ entries: ["apitogo/app/entry.server.tsx"] }),
|
|
38
|
+
vitePluginSsrCss({ entries: ["@lukoweb/apitogo/app/entry.server.tsx"] }),
|
|
39
39
|
viteThemePlugin(),
|
|
40
40
|
tailwindcss(),
|
|
41
41
|
];
|