piral-cli 0.14.3-beta.3297 → 0.14.4-beta.3311
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/lib/apps/build-pilet.js +24 -8
- package/lib/apps/build-pilet.js.map +1 -1
- package/lib/apps/build-piral.js +2 -2
- package/lib/apps/build-piral.js.map +1 -1
- package/lib/apps/publish-pilet.js +5 -5
- package/lib/apps/publish-pilet.js.map +1 -1
- package/lib/commands.js +1 -2
- package/lib/commands.js.map +1 -1
- package/lib/common/constants.d.ts +1 -0
- package/lib/common/constants.js +2 -1
- package/lib/common/constants.js.map +1 -1
- package/lib/common/declaration.js +1 -3
- package/lib/common/declaration.js.map +1 -1
- package/lib/common/emulator.js +3 -2
- package/lib/common/emulator.js.map +1 -1
- package/lib/common/envs.js +2 -1
- package/lib/common/envs.js.map +1 -1
- package/lib/common/npm.d.ts +2 -3
- package/lib/common/npm.js +21 -10
- package/lib/common/npm.js.map +1 -1
- package/lib/common/package.js +3 -2
- package/lib/common/package.js.map +1 -1
- package/lib/helpers.js +1 -1
- package/lib/helpers.js.map +1 -1
- package/lib/types/public.d.ts +1 -1
- package/package.json +2 -2
- package/src/apps/build-pilet.ts +52 -20
- package/src/apps/build-piral.ts +10 -2
- package/src/apps/publish-pilet.ts +6 -6
- package/src/apps/publish-piral.ts +1 -1
- package/src/commands.ts +1 -2
- package/src/common/constants.ts +1 -0
- package/src/common/declaration.ts +1 -3
- package/src/common/emulator.ts +6 -3
- package/src/common/envs.ts +2 -1
- package/src/common/npm.test.ts +7 -7
- package/src/common/npm.ts +28 -8
- package/src/common/package.test.ts +1 -7
- package/src/common/package.ts +6 -2
- package/src/helpers.ts +1 -1
- package/src/types/public.ts +1 -1
package/src/common/package.ts
CHANGED
|
@@ -442,8 +442,12 @@ export async function retrievePiletsInfo(entryFile: string) {
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
const packageInfo = require(packageJson);
|
|
445
|
+
const allDeps = {
|
|
446
|
+
...packageInfo.devDependencies,
|
|
447
|
+
...packageInfo.dependencies,
|
|
448
|
+
};
|
|
445
449
|
const info = getPiletsInfo(packageInfo);
|
|
446
|
-
const externals = makeExternals(info.externals);
|
|
450
|
+
const externals = makeExternals(allDeps, info.externals);
|
|
447
451
|
|
|
448
452
|
return {
|
|
449
453
|
...info,
|
|
@@ -495,7 +499,7 @@ export async function patchPiletPackage(
|
|
|
495
499
|
}
|
|
496
500
|
: info.scripts;
|
|
497
501
|
const peerModules = [];
|
|
498
|
-
const allExternals = makePiletExternals(externals, fromEmulator, piralInfo);
|
|
502
|
+
const allExternals = makePiletExternals(piralDependencies, externals, fromEmulator, piralInfo);
|
|
499
503
|
const peerDependencies = {
|
|
500
504
|
...allExternals.reduce((deps, name) => {
|
|
501
505
|
const valid = isValidDependency(name);
|
package/src/helpers.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
export const schemaKeys: Array<PiletSchemaVersion> = ['v0', 'v1', 'v2', 'none'];
|
|
12
12
|
export const fromKeys: Array<PiletPublishSource> = ['local', 'remote', 'npm'];
|
|
13
13
|
export const piralBuildTypeKeys: Array<PiralBuildType> = ['all', 'release', 'emulator', 'emulator-sources'];
|
|
14
|
-
export const piletBuildTypeKeys: Array<PiletBuildType> = ['default', 'standalone'];
|
|
14
|
+
export const piletBuildTypeKeys: Array<PiletBuildType> = ['default', 'standalone', 'manifest'];
|
|
15
15
|
export const clientTypeKeys: Array<NpmClientType> = ['npm', 'pnpm', 'yarn'];
|
|
16
16
|
export const bundlerKeys: Array<string> = ['none', 'parcel', 'webpack', 'webpack5', 'esbuild'];
|
|
17
17
|
export const availableBundlers: Array<string> = [];
|
package/src/types/public.ts
CHANGED
|
@@ -218,7 +218,7 @@ export type PiletPublishSource = 'local' | 'npm' | 'remote';
|
|
|
218
218
|
|
|
219
219
|
export type PiralBuildType = 'all' | 'release' | 'emulator' | 'emulator-sources';
|
|
220
220
|
|
|
221
|
-
export type PiletBuildType = 'default' | 'standalone';
|
|
221
|
+
export type PiletBuildType = 'default' | 'standalone' | 'manifest';
|
|
222
222
|
|
|
223
223
|
export type PackageType = 'registry' | 'file' | 'git';
|
|
224
224
|
|