@travetto/pack 3.1.1 → 3.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/pack",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Code packing utilities",
5
5
  "keywords": [
6
6
  "travetto",
@@ -28,12 +28,12 @@
28
28
  "@rollup/plugin-json": "^6.0.0",
29
29
  "@rollup/plugin-node-resolve": "^15.0.1",
30
30
  "@rollup/plugin-terser": "^0.4.0",
31
- "@travetto/base": "^3.1.0",
31
+ "@travetto/base": "^3.1.1",
32
32
  "rollup": "^3.17.2",
33
33
  "rollup-plugin-sourcemaps": "^0.6.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/cli": "^3.1.0"
36
+ "@travetto/cli": "^3.1.2"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
@@ -57,7 +57,7 @@ export class PackOperation {
57
57
  static async * bundle(cfg: CommonPackConfig): AsyncIterable<string[]> {
58
58
  const cwd = RootIndex.outputRoot;
59
59
 
60
- const bundleCommand = ['npx', 'rollup', '-c', 'node_modules/@travetto/pack/support/bin/rollup.js'];
60
+ const bundleCommand = ['npx', 'rollup', '-c', RootIndex.resolveFileImport(cfg.rollupConfiguration)];
61
61
 
62
62
  const entryPointFile = RootIndex.getFromImport(cfg.entryPoint)!.outputFile.split(`${RootIndex.manifest.outputFolder}/`)[1];
63
63
 
@@ -8,6 +8,7 @@ export type CommonPackConfig = {
8
8
  module: string;
9
9
 
10
10
  // Bundle
11
+ rollupConfiguration: string;
11
12
  entryPoint: string;
12
13
  entryArguments: string[];
13
14
  minify: boolean;
@@ -54,6 +54,9 @@ export abstract class BasePackCommand implements CliCommandShape {
54
54
  @CliFlag({ desc: 'Eject commands to file', short: 'x' })
55
55
  ejectFile?: string;
56
56
 
57
+ @CliFlag({ desc: 'Rollup configuration file', short: 'r' })
58
+ rollupConfiguration = '@travetto/pack/support/bin/rollup';
59
+
57
60
  @Ignore()
58
61
  module: string;
59
62