@schemavaults/auth-server-sdk 0.19.4 → 0.19.5
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/NextjsAppDirectoryPlugin/resolve-codegen-templates-directory.js +3 -0
- package/dist/NextjsAppDirectoryPlugin/resolve-codegen-templates-directory.js.map +1 -1
- package/dist/cli.cjs +211 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +45 -0
- package/dist/cli.js.map +1 -0
- package/package.json +14 -3
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { dirname, join } from "path";
|
|
2
2
|
export default function resolveCodegenTemplatesDirectory() {
|
|
3
|
+
if (!__dirname) {
|
|
4
|
+
throw new Error("The __dirname variable is not set for this file in this environment!");
|
|
5
|
+
}
|
|
3
6
|
// Templates are copied into the dist/codegen-templates directory during build
|
|
4
7
|
return join(dirname(__dirname), "codegen-templates");
|
|
5
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-codegen-templates-directory.js","sourceRoot":"","sources":["../../src/NextjsAppDirectoryPlugin/resolve-codegen-templates-directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,gCAAgC;IACtD,8EAA8E;IAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAC,CAAC;AACvD,CAAC"}
|
|
1
|
+
{"version":3,"file":"resolve-codegen-templates-directory.js","sourceRoot":"","sources":["../../src/NextjsAppDirectoryPlugin/resolve-codegen-templates-directory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,gCAAgC;IACtD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;IACJ,CAAC;IAED,8EAA8E;IAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAC,CAAC;AACvD,CAAC"}
|
package/dist/cli.cjs
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __esm = (fn, res) => function __init() {
|
|
6
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
7
|
+
};
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// src/NextjsAppDirectoryPlugin/resolve-app-directory.ts
|
|
14
|
+
function resolveProjectRoot() {
|
|
15
|
+
const current = (0, import_process.cwd)();
|
|
16
|
+
if ((0, import_fs.existsSync)((0, import_path.join)(current, "package.json")) && ((0, import_fs.existsSync)((0, import_path.join)(current, "next.config.js")) || (0, import_fs.existsSync)((0, import_path.join)(current, "next.config.ts")) || (0, import_fs.existsSync)((0, import_path.join)(current, "next.config.mjs")) || (0, import_fs.existsSync)((0, import_path.join)(current, "next.config.cjs")))) {
|
|
17
|
+
return current;
|
|
18
|
+
} else {
|
|
19
|
+
throw new Error("Failed to resolve package root!");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function resolveAppDirectory() {
|
|
23
|
+
const projectRoot = resolveProjectRoot();
|
|
24
|
+
if ((0, import_fs.existsSync)((0, import_path.join)(projectRoot, "src", "app"))) {
|
|
25
|
+
return (0, import_path.join)(projectRoot, "src", "app");
|
|
26
|
+
} else if ((0, import_fs.existsSync)((0, import_path.join)(projectRoot, "app"))) {
|
|
27
|
+
return (0, import_path.join)(projectRoot, "app");
|
|
28
|
+
} else {
|
|
29
|
+
throw new Error("Failed to resolve Next.js app/ directory!");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
var import_path, import_fs, import_process;
|
|
33
|
+
var init_resolve_app_directory = __esm({
|
|
34
|
+
"src/NextjsAppDirectoryPlugin/resolve-app-directory.ts"() {
|
|
35
|
+
"use strict";
|
|
36
|
+
import_path = require("path");
|
|
37
|
+
import_fs = require("fs");
|
|
38
|
+
import_process = require("process");
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// src/NextjsAppDirectoryPlugin/resolve-codegen-templates-directory.ts
|
|
43
|
+
function resolveCodegenTemplatesDirectory() {
|
|
44
|
+
if (!__dirname) {
|
|
45
|
+
throw new Error(
|
|
46
|
+
"The __dirname variable is not set for this file in this environment!"
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
return (0, import_path2.join)((0, import_path2.dirname)(__dirname), "codegen-templates");
|
|
50
|
+
}
|
|
51
|
+
var import_path2;
|
|
52
|
+
var init_resolve_codegen_templates_directory = __esm({
|
|
53
|
+
"src/NextjsAppDirectoryPlugin/resolve-codegen-templates-directory.ts"() {
|
|
54
|
+
"use strict";
|
|
55
|
+
import_path2 = require("path");
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// src/NextjsAppDirectoryPlugin/codegen.ts
|
|
60
|
+
var codegen_exports = {};
|
|
61
|
+
__export(codegen_exports, {
|
|
62
|
+
default: () => codegen
|
|
63
|
+
});
|
|
64
|
+
function createClientPages(appDirectory, templatesDir) {
|
|
65
|
+
for (const page of pagesToCreate) {
|
|
66
|
+
const destPath = (0, import_path4.join)(appDirectory, page.app_dir_path, "page.tsx");
|
|
67
|
+
if ((0, import_fs2.existsSync)(destPath)) {
|
|
68
|
+
console.log(
|
|
69
|
+
` - skipping '${page.app_dir_path}/page.tsx' (already exists)`
|
|
70
|
+
);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
const destDir = (0, import_path3.dirname)(destPath);
|
|
74
|
+
if (!(0, import_fs2.existsSync)(destDir)) {
|
|
75
|
+
(0, import_fs2.mkdirSync)(destDir, { recursive: true });
|
|
76
|
+
}
|
|
77
|
+
const templatePath = (0, import_path4.join)(templatesDir, page.codegen_template_path);
|
|
78
|
+
const templateContent = (0, import_fs2.readFileSync)(templatePath, {
|
|
79
|
+
encoding: "utf-8"
|
|
80
|
+
});
|
|
81
|
+
(0, import_fs2.writeFileSync)(destPath, templateContent, { encoding: "utf-8" });
|
|
82
|
+
console.log(` - created '${page.app_dir_path}/page.tsx'`);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function createClientAuthProvider(appDirectory, templatesDir) {
|
|
86
|
+
const srcTemplatePath = (0, import_path4.join)(
|
|
87
|
+
templatesDir,
|
|
88
|
+
"auth",
|
|
89
|
+
"auth-provider.tsx"
|
|
90
|
+
);
|
|
91
|
+
const destPath = (0, import_path4.join)(appDirectory, "auth", "auth-provider.tsx");
|
|
92
|
+
if ((0, import_fs2.existsSync)(destPath)) {
|
|
93
|
+
console.log(` - skipping 'auth/auth-provider.tsx' (already exists)`);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const destDir = (0, import_path3.dirname)(destPath);
|
|
97
|
+
if (!(0, import_fs2.existsSync)(destDir)) {
|
|
98
|
+
(0, import_fs2.mkdirSync)(destDir, { recursive: true });
|
|
99
|
+
}
|
|
100
|
+
const templateContent = (0, import_fs2.readFileSync)(srcTemplatePath, {
|
|
101
|
+
encoding: "utf-8"
|
|
102
|
+
});
|
|
103
|
+
(0, import_fs2.writeFileSync)(destPath, templateContent, { encoding: "utf-8" });
|
|
104
|
+
console.log(` - created 'auth/auth-provider.tsx'`);
|
|
105
|
+
}
|
|
106
|
+
async function codegen(opts) {
|
|
107
|
+
console.log(
|
|
108
|
+
`[@schemavaults/auth-server-sdk/NextjsAppDirectoryPlugin] Running codegen:`
|
|
109
|
+
);
|
|
110
|
+
const appDirectory = resolveAppDirectory();
|
|
111
|
+
console.log(` - resolved /app directory at '${appDirectory}'`);
|
|
112
|
+
const authDirectory = (0, import_path4.join)(appDirectory, "auth");
|
|
113
|
+
if (!(0, import_fs2.existsSync)(authDirectory)) {
|
|
114
|
+
(0, import_fs2.mkdirSync)(authDirectory);
|
|
115
|
+
console.log(` - created /auth directory at '${authDirectory}'`);
|
|
116
|
+
} else {
|
|
117
|
+
console.log(` - /auth directory already exists at '${authDirectory}'`);
|
|
118
|
+
}
|
|
119
|
+
const templatesDir = typeof opts?.codegenTemplatesDirectory === "string" ? opts.codegenTemplatesDirectory : resolveCodegenTemplatesDirectory();
|
|
120
|
+
console.log(` - resolved codegen templates directory at '${templatesDir}'`);
|
|
121
|
+
createClientPages(appDirectory, templatesDir);
|
|
122
|
+
createClientAuthProvider(appDirectory, templatesDir);
|
|
123
|
+
console.log(
|
|
124
|
+
`[@schemavaults/auth-server-sdk/NextjsAppDirectoryPlugin] Codegen complete.`
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
var import_fs2, import_path3, import_path4, pagesToCreate;
|
|
128
|
+
var init_codegen = __esm({
|
|
129
|
+
"src/NextjsAppDirectoryPlugin/codegen.ts"() {
|
|
130
|
+
"use strict";
|
|
131
|
+
import_fs2 = require("fs");
|
|
132
|
+
import_path3 = require("path");
|
|
133
|
+
init_resolve_app_directory();
|
|
134
|
+
import_path4 = require("path");
|
|
135
|
+
init_resolve_codegen_templates_directory();
|
|
136
|
+
pagesToCreate = [
|
|
137
|
+
{
|
|
138
|
+
app_dir_path: "/auth/login",
|
|
139
|
+
codegen_template_path: "auth/login/page.tsx"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
app_dir_path: "/auth/register",
|
|
143
|
+
codegen_template_path: "auth/register/page.tsx"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
app_dir_path: "/auth/logout",
|
|
147
|
+
codegen_template_path: "auth/logout/page.tsx"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
app_dir_path: "/auth/authorize",
|
|
151
|
+
codegen_template_path: "auth/authorize/page.tsx"
|
|
152
|
+
}
|
|
153
|
+
];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// src/NextjsAppDirectoryPlugin/NextjsAppDirectoryPlugin.ts
|
|
158
|
+
var NextjsAppDirectoryPlugin = class {
|
|
159
|
+
static async codegen(opts) {
|
|
160
|
+
const gen = await Promise.resolve().then(() => (init_codegen(), codegen_exports)).then((m) => m.default);
|
|
161
|
+
return await gen(opts);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
// src/cli.ts
|
|
166
|
+
var PACKAGE_NAME = "@schemavaults/auth-server-sdk";
|
|
167
|
+
var HELP_TEXT = `Usage: ${PACKAGE_NAME} [command] [options]
|
|
168
|
+
|
|
169
|
+
Commands:
|
|
170
|
+
codegen Generate auth pages for your Next.js app (default)
|
|
171
|
+
|
|
172
|
+
Options:
|
|
173
|
+
--templates-dir <path> Custom codegen templates directory
|
|
174
|
+
--help, -h Show this help message
|
|
175
|
+
--version, -v Show package name
|
|
176
|
+
`;
|
|
177
|
+
function printHelp() {
|
|
178
|
+
console.log(HELP_TEXT);
|
|
179
|
+
}
|
|
180
|
+
async function main() {
|
|
181
|
+
const args = process.argv.slice(2);
|
|
182
|
+
if (args.includes("--help") || args.includes("-h")) {
|
|
183
|
+
printHelp();
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
187
|
+
console.log(PACKAGE_NAME);
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
const command = args.find((arg) => !arg.startsWith("-")) ?? "codegen";
|
|
191
|
+
if (command !== "codegen") {
|
|
192
|
+
console.error(`Unknown command: ${command}
|
|
193
|
+
`);
|
|
194
|
+
printHelp();
|
|
195
|
+
process.exit(1);
|
|
196
|
+
}
|
|
197
|
+
const templatesDirIndex = args.indexOf("--templates-dir");
|
|
198
|
+
const templatesDir = templatesDirIndex !== -1 ? args[templatesDirIndex + 1] : void 0;
|
|
199
|
+
if (templatesDirIndex !== -1 && !templatesDir) {
|
|
200
|
+
console.error("Error: --templates-dir requires a path argument\n");
|
|
201
|
+
printHelp();
|
|
202
|
+
process.exit(1);
|
|
203
|
+
}
|
|
204
|
+
await NextjsAppDirectoryPlugin.codegen(
|
|
205
|
+
templatesDir ? { codegenTemplatesDirectory: templatesDir } : void 0
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
main().catch((err) => {
|
|
209
|
+
console.error(err);
|
|
210
|
+
process.exit(1);
|
|
211
|
+
});
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { NextjsAppDirectoryPlugin } from "./NextjsAppDirectoryPlugin";
|
|
2
|
+
const PACKAGE_NAME = "@schemavaults/auth-server-sdk";
|
|
3
|
+
const HELP_TEXT = `Usage: ${PACKAGE_NAME} [command] [options]
|
|
4
|
+
|
|
5
|
+
Commands:
|
|
6
|
+
codegen Generate auth pages for your Next.js app (default)
|
|
7
|
+
|
|
8
|
+
Options:
|
|
9
|
+
--templates-dir <path> Custom codegen templates directory
|
|
10
|
+
--help, -h Show this help message
|
|
11
|
+
--version, -v Show package name
|
|
12
|
+
`;
|
|
13
|
+
function printHelp() {
|
|
14
|
+
console.log(HELP_TEXT);
|
|
15
|
+
}
|
|
16
|
+
async function main() {
|
|
17
|
+
const args = process.argv.slice(2);
|
|
18
|
+
if (args.includes("--help") || args.includes("-h")) {
|
|
19
|
+
printHelp();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
23
|
+
console.log(PACKAGE_NAME);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const command = args.find((arg) => !arg.startsWith("-")) ?? "codegen";
|
|
27
|
+
if (command !== "codegen") {
|
|
28
|
+
console.error(`Unknown command: ${command}\n`);
|
|
29
|
+
printHelp();
|
|
30
|
+
process.exit(1);
|
|
31
|
+
}
|
|
32
|
+
const templatesDirIndex = args.indexOf("--templates-dir");
|
|
33
|
+
const templatesDir = templatesDirIndex !== -1 ? args[templatesDirIndex + 1] : undefined;
|
|
34
|
+
if (templatesDirIndex !== -1 && !templatesDir) {
|
|
35
|
+
console.error("Error: --templates-dir requires a path argument\n");
|
|
36
|
+
printHelp();
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
await NextjsAppDirectoryPlugin.codegen(templatesDir ? { codegenTemplatesDirectory: templatesDir } : undefined);
|
|
40
|
+
}
|
|
41
|
+
main().catch((err) => {
|
|
42
|
+
console.error(err);
|
|
43
|
+
process.exit(1);
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAErD,MAAM,SAAS,GAAG,UAAU,YAAY;;;;;;;;;CASvC,CAAC;AAEF,SAAS,SAAS;IAChB,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACzB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEnC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACnD,SAAS,EAAE,CAAC;QACZ,OAAO;IACT,CAAC;IAED,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO;IACT,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,SAAS,CAAC;IAEtE,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,IAAI,CAAC,CAAC;QAC/C,SAAS,EAAE,CAAC;QACZ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC1D,MAAM,YAAY,GAChB,iBAAiB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAErE,IAAI,iBAAiB,KAAK,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;QAC9C,OAAO,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;QACnE,SAAS,EAAE,CAAC;QACZ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,MAAM,wBAAwB,CAAC,OAAO,CACpC,YAAY,CAAC,CAAC,CAAC,EAAE,yBAAyB,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CACvE,CAAC;AACJ,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schemavaults/auth-server-sdk",
|
|
3
3
|
"description": "TypeScript SDK for building authenticated endpoints/middlewares for the Auth Server and Resource Servers",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.5",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"module": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
|
+
"bin": {
|
|
17
|
+
"auth-server-sdk": "./cli.cjs"
|
|
18
|
+
},
|
|
16
19
|
"dependencies": {
|
|
17
20
|
"zod": "3.23.8",
|
|
18
21
|
"@schemavaults/jwt": "0.6.29",
|
|
@@ -20,7 +23,9 @@
|
|
|
20
23
|
"@schemavaults/app-definitions": "0.6.17"
|
|
21
24
|
},
|
|
22
25
|
"scripts": {
|
|
23
|
-
"build": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json && bun run copy-codegen-templates",
|
|
26
|
+
"build": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json && bun run copy-codegen-templates && bun run prepare-cli",
|
|
27
|
+
"build-cli-for-nodejs": "esbuild --bundle --platform=node --target=node18 --outfile=dist/cli.cjs src/cli.ts",
|
|
28
|
+
"prepare-cli": "/bin/bash ./prepare-cli.sh",
|
|
24
29
|
"copy-codegen-templates": "/bin/bash ./copy-codegen-templates.sh",
|
|
25
30
|
"test": "NODE_ENV=test bun test",
|
|
26
31
|
"cleanup:compiled-tests-output": "find ./dist -type f \\( -name \"*.test.js\" -o -name \"*.test.js.map\" -o -name \"*.test.d.ts\" \\) -delete",
|
|
@@ -39,7 +44,8 @@
|
|
|
39
44
|
"@eslint/js": "9.39.1",
|
|
40
45
|
"globals": "16.5.0",
|
|
41
46
|
"@typescript-eslint/eslint-plugin": "8.48.1",
|
|
42
|
-
"@typescript-eslint/parser": "8.48.1"
|
|
47
|
+
"@typescript-eslint/parser": "8.48.1",
|
|
48
|
+
"esbuild": "0.27.3"
|
|
43
49
|
},
|
|
44
50
|
"publishConfig": {
|
|
45
51
|
"access": "public"
|
|
@@ -130,6 +136,11 @@
|
|
|
130
136
|
"types": "./dist/NextjsAppDirectoryPlugin/*",
|
|
131
137
|
"import": "./dist/NextjsAppDirectoryPlugin/*",
|
|
132
138
|
"require": "./dist/NextjsAppDirectoryPlugin/*"
|
|
139
|
+
},
|
|
140
|
+
"./cli": {
|
|
141
|
+
"types": "./dist/cli.d.ts",
|
|
142
|
+
"import": "./dist/cli.js",
|
|
143
|
+
"require": "./dist/cli.cjs"
|
|
133
144
|
}
|
|
134
145
|
}
|
|
135
146
|
}
|