@travetto/pack 3.3.6 → 3.4.0-rc.0

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/README.md CHANGED
@@ -34,7 +34,7 @@ Options:
34
34
  -o, --output <string> Output location
35
35
  --main-scripts, --no-main-scripts Create entry scripts (default: true)
36
36
  -f, --main-name <string> Main name for build artifact
37
- -e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.cli")
37
+ -e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.trv")
38
38
  --minify, --no-minify Minify output (default: true)
39
39
  -sm, --sourcemap Bundle source maps (default: false)
40
40
  -is, --include-sources Include source with source maps (default: false)
@@ -96,7 +96,7 @@ Options:
96
96
  -o, --output <string> Output location (default: "travetto_pack.zip")
97
97
  --main-scripts, --no-main-scripts Create entry scripts (default: true)
98
98
  -f, --main-name <string> Main name for build artifact
99
- -e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.cli")
99
+ -e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.trv")
100
100
  --minify, --no-minify Minify output (default: true)
101
101
  -sm, --sourcemap Bundle source maps (default: false)
102
102
  -is, --include-sources Include source with source maps (default: false)
@@ -121,7 +121,7 @@ Options:
121
121
  -o, --output <string> Output location
122
122
  --main-scripts, --no-main-scripts Create entry scripts (default: true)
123
123
  -f, --main-name <string> Main name for build artifact
124
- -e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.cli")
124
+ -e, --entry-point <string> Entry point (default: "@travetto/cli/support/entry.trv")
125
125
  --minify, --no-minify Minify output (default: true)
126
126
  -sm, --sourcemap Bundle source maps (default: false)
127
127
  -is, --include-sources Include source with source maps (default: false)
@@ -156,7 +156,7 @@ $ trv pack:docker -x /dev/stdout run:rest
156
156
 
157
157
  #!/bin/sh
158
158
  export DIST=/tmp/<temp-folder>
159
- export TRV_OUT=<workspace-root>/.trv_output
159
+ export TRV_OUT=<workspace-root>/.trv/output
160
160
  export ROOT=<workspace-root>/related/todo-app
161
161
  export MOD=@travetto/todo-app
162
162
 
@@ -209,13 +209,13 @@ cp -r -p $ROOT/resources $DIST/resources
209
209
 
210
210
  echo "Writing Manifest manifest.json"
211
211
 
212
- TRV_MODULE=$MOD npx trv manifest $DIST/manifest.json prod
212
+ TRV_MODULE=$MOD npx trvc manifest $DIST/manifest.json prod
213
213
 
214
- # Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.cli
214
+ # Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.trv
215
215
 
216
- echo "Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.cli"
216
+ echo "Bundling Output minify=true sourcemap=false entryPoint=@travetto/cli/support/entry.trv"
217
217
 
218
- export BUNDLE_ENTRY=node_modules/@travetto/cli/support/entry.cli.js
218
+ export BUNDLE_ENTRY=node_modules/@travetto/cli/support/entry.trv.js
219
219
  export BUNDLE_MAIN_FILE=todo-app.js
220
220
  export BUNDLE_COMPRESS=true
221
221
  export BUNDLE_SOURCEMAP=false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/pack",
3
- "version": "3.3.6",
3
+ "version": "3.4.0-rc.0",
4
4
  "description": "Code packing utilities",
5
5
  "keywords": [
6
6
  "travetto",
@@ -24,16 +24,16 @@
24
24
  "directory": "module/pack"
25
25
  },
26
26
  "dependencies": {
27
- "@rollup/plugin-commonjs": "^25.0.4",
28
- "@rollup/plugin-json": "^6.0.0",
29
- "@rollup/plugin-node-resolve": "^15.2.1",
30
- "@rollup/plugin-terser": "^0.4.3",
31
- "@travetto/base": "^3.3.4",
32
- "rollup": "^3.29.2",
27
+ "@rollup/plugin-commonjs": "^25.0.7",
28
+ "@rollup/plugin-json": "^6.0.1",
29
+ "@rollup/plugin-node-resolve": "^15.2.3",
30
+ "@rollup/plugin-terser": "^0.4.4",
31
+ "@travetto/base": "^3.4.0-rc.0",
32
+ "rollup": "^4.1.5",
33
33
  "rollup-plugin-sourcemaps": "^0.6.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/cli": "^3.3.6"
36
+ "@travetto/cli": "^3.4.0-rc.0"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
@@ -202,7 +202,7 @@ export class PackOperation {
202
202
  */
203
203
  static async * writeManifest(cfg: CommonPackConfig): AsyncIterable<string[]> {
204
204
  const out = path.resolve(cfg.workspace, 'manifest.json');
205
- const cmd = ['npx', 'trv', 'manifest', out, 'prod'];
205
+ const cmd = ['npx', 'trvc', 'manifest', out, 'prod'];
206
206
  const env = { TRV_MODULE: cfg.module };
207
207
 
208
208
  yield* PackOperation.title(cfg, cliTpl`${{ title: 'Writing Manifest' }} ${{ path: 'manifest.json' }}`);
@@ -40,7 +40,7 @@ export abstract class BasePackCommand implements CliCommandShape {
40
40
 
41
41
  @CliFlag({ desc: 'Entry point', short: 'e' })
42
42
  @Required(false)
43
- entryPoint: string = '@travetto/cli/support/entry.cli';
43
+ entryPoint: string = '@travetto/cli/support/entry.trv';
44
44
 
45
45
  @CliFlag({ desc: 'Minify output' })
46
46
  minify = true;