sprint-es 0.0.120 → 0.0.121
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/cjs/cli.cjs +10 -2
- package/dist/esm/cli.js +10 -2
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -193,15 +193,23 @@ async function buildWithEsbuild(srcPath, distPath, external) {
|
|
|
193
193
|
const requireFromProject = module$1.createRequire(path.join(projectRoot, "package.json"));
|
|
194
194
|
const esbuild = requireFromProject("esbuild");
|
|
195
195
|
const entryPoints = collectEntryPoints(srcPath);
|
|
196
|
+
const forceExternalPlugin = {
|
|
197
|
+
name: "force-external",
|
|
198
|
+
setup(build) {
|
|
199
|
+
build.onResolve({ filter: /^[^./]/ }, (args2) => {
|
|
200
|
+
return { path: args2.path, external: true };
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
};
|
|
196
204
|
await esbuild.build({
|
|
197
205
|
entryPoints,
|
|
198
206
|
outdir: distPath,
|
|
199
207
|
outbase: srcPath,
|
|
200
208
|
platform: "node",
|
|
201
209
|
format: "cjs",
|
|
202
|
-
bundle:
|
|
210
|
+
bundle: true,
|
|
203
211
|
sourcemap: true,
|
|
204
|
-
|
|
212
|
+
plugins: [forceExternalPlugin]
|
|
205
213
|
});
|
|
206
214
|
}
|
|
207
215
|
function generateJWTSecret() {
|
package/dist/esm/cli.js
CHANGED
|
@@ -174,15 +174,23 @@ async function buildWithEsbuild(srcPath, distPath, external) {
|
|
|
174
174
|
const requireFromProject = createRequire(join(projectRoot, "package.json"));
|
|
175
175
|
const esbuild = requireFromProject("esbuild");
|
|
176
176
|
const entryPoints = collectEntryPoints(srcPath);
|
|
177
|
+
const forceExternalPlugin = {
|
|
178
|
+
name: "force-external",
|
|
179
|
+
setup(build) {
|
|
180
|
+
build.onResolve({ filter: /^[^./]/ }, (args2) => {
|
|
181
|
+
return { path: args2.path, external: true };
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
};
|
|
177
185
|
await esbuild.build({
|
|
178
186
|
entryPoints,
|
|
179
187
|
outdir: distPath,
|
|
180
188
|
outbase: srcPath,
|
|
181
189
|
platform: "node",
|
|
182
190
|
format: "cjs",
|
|
183
|
-
bundle:
|
|
191
|
+
bundle: true,
|
|
184
192
|
sourcemap: true,
|
|
185
|
-
|
|
193
|
+
plugins: [forceExternalPlugin]
|
|
186
194
|
});
|
|
187
195
|
}
|
|
188
196
|
function generateJWTSecret() {
|