@travetto/pack 5.0.0-rc.0 → 5.0.0-rc.1

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": "5.0.0-rc.0",
3
+ "version": "5.0.0-rc.1",
4
4
  "description": "Code packing utilities",
5
5
  "keywords": [
6
6
  "travetto",
@@ -29,12 +29,12 @@
29
29
  "@rollup/plugin-json": "^6.1.0",
30
30
  "@rollup/plugin-node-resolve": "^15.2.3",
31
31
  "@rollup/plugin-terser": "^0.4.4",
32
- "@travetto/base": "^5.0.0-rc.0",
32
+ "@travetto/base": "^5.0.0-rc.1",
33
33
  "@travetto/terminal": "^5.0.0-rc.0",
34
34
  "rollup": "^4.18.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^5.0.0-rc.0"
37
+ "@travetto/cli": "^5.0.0-rc.1"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
@@ -1,9 +1,9 @@
1
1
  import fs from 'node:fs/promises';
2
2
  import path from 'node:path';
3
3
 
4
- import { RuntimeIndex, RuntimeContext } from '@travetto/manifest';
4
+ import { RuntimeIndex } from '@travetto/manifest';
5
5
  import { cliTpl } from '@travetto/cli';
6
- import { Env } from '@travetto/base';
6
+ import { Env, RuntimeContext } from '@travetto/base';
7
7
 
8
8
  import { CommonPackConfig } from '../../src/types';
9
9
  import { PackUtil } from './util';
@@ -204,7 +204,7 @@ export class PackOperation {
204
204
  static async * copyResources(cfg: CommonPackConfig): AsyncIterable<string[]> {
205
205
  const resources = {
206
206
  count: RuntimeIndex.mainModule.files.resources?.length ?? 0,
207
- src: path.resolve(RuntimeIndex.mainModule.sourcePath, 'resources'),
207
+ src: path.resolve(RuntimeContext.mainSourcePath, 'resources'),
208
208
  dest: path.resolve(cfg.buildDir, 'resources')
209
209
  };
210
210
 
@@ -2,8 +2,8 @@ import os from 'node:os';
2
2
  import path from 'node:path';
3
3
 
4
4
  import { CliCommandShape, CliFlag, ParsedState, cliTpl } from '@travetto/cli';
5
- import { RuntimeIndex, RuntimeContext } from '@travetto/manifest';
6
- import { TimeUtil } from '@travetto/base';
5
+ import { RuntimeIndex } from '@travetto/manifest';
6
+ import { TimeUtil, RuntimeContext } from '@travetto/base';
7
7
  import { Terminal } from '@travetto/terminal';
8
8
  import { Ignore, Required, Schema } from '@travetto/schema';
9
9
 
@@ -28,7 +28,7 @@ export abstract class BasePackCommand implements CliCommandShape {
28
28
  _parsed: ParsedState;
29
29
 
30
30
  @CliFlag({ desc: 'Workspace for building', short: 'b' })
31
- buildDir: string = path.resolve(os.tmpdir(), RuntimeIndex.mainModule.sourcePath.replace(/[\/\\: ]/g, '_'));
31
+ buildDir: string = path.resolve(os.tmpdir(), RuntimeContext.mainSourcePath.replace(/[\/\\: ]/g, '_'));
32
32
 
33
33
  @CliFlag({ desc: 'Clean workspace' })
34
34
  clean = true;
@@ -3,8 +3,8 @@ import path from 'node:path';
3
3
  import type { OutputOptions } from 'rollup';
4
4
  import type terser from '@rollup/plugin-terser';
5
5
 
6
- import { ManifestModule, ManifestModuleUtil, NodeModuleType, RuntimeIndex, RuntimeContext } from '@travetto/manifest';
7
- import { EnvProp } from '@travetto/base';
6
+ import { type ManifestModule, ManifestModuleUtil, type NodeModuleType, RuntimeIndex } from '@travetto/manifest';
7
+ import { EnvProp, RuntimeContext } from '@travetto/base';
8
8
  import { CoreRollupConfig } from '../../src/types';
9
9
 
10
10
  function getFilesFromModule(m: ManifestModule): string[] {