@driveflux/fab 1.0.10 → 2.0.0-next.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.
@@ -1,16 +1,13 @@
1
-  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
2
-
3
- > @driveflux/fab@1.0.9 build /Users/flux/Projects/flux-master/packages/fab
4
- > pnpm build:js && pnpm build:types
5
-
6
-  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
7
-
8
- > @driveflux/fab@1.0.9 build:js /Users/flux/Projects/flux-master/packages/fab
9
- > swc src --strip-leading-paths -d dist
10
-
11
- Successfully compiled: 7 files with swc (196.55ms)
12
-  WARN  Issue while reading "/Users/flux/Projects/flux-master/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
13
-
14
- > @driveflux/fab@1.0.9 build:types /Users/flux/Projects/flux-master/packages/fab
15
- > tsc --build --emitDeclarationOnly
16
-
1
+
2
+ > @driveflux/fab@2.0.0-next.0 build /Users/flux/Projects/flux/packages/fab
3
+ > pnpm build:js && pnpm build:types
4
+
5
+
6
+ > @driveflux/fab@2.0.0-next.0 build:js /Users/flux/Projects/flux/packages/fab
7
+ > swc src -d dist
8
+
9
+ Successfully compiled: 7 files with swc (99.23ms)
10
+
11
+ > @driveflux/fab@2.0.0-next.0 build:types /Users/flux/Projects/flux/packages/fab
12
+ > tsc --build --emitDeclarationOnly
13
+
package/CHANGELOG.md CHANGED
@@ -1,91 +1,6 @@
1
1
  # @driveflux/fab
2
2
 
3
- ## 1.0.10
4
-
5
- ### Patch Changes
6
-
7
- - Versions and dependencies fixes
8
-
9
- ## 1.0.9
10
-
11
- ### Patch Changes
12
-
13
- - Minor adjustments for deps
14
- - Upgraded packages
15
-
16
- ## 1.0.8
17
-
18
- ### Patch Changes
19
-
20
- - Minor updates on build
21
-
22
- ## 1.0.7
23
-
24
- ### Patch Changes
25
-
26
- - Upgraded all packages
27
-
28
- ## 1.0.6
29
-
30
- ### Patch Changes
31
-
32
- - Minor diversion version fix
33
-
34
- ## 1.0.5
35
-
36
- ### Patch Changes
37
-
38
- - Upgraded packages again
39
-
40
- ## 1.0.4
41
-
42
- ### Patch Changes
43
-
44
- - Upgraded packages
45
-
46
- ## 1.0.3
47
-
48
- ### Patch Changes
49
-
50
- - Reverted SWC core version
51
-
52
- ## 1.0.2
53
-
54
- ### Patch Changes
55
-
56
- - Updated dependencies
57
-
58
- ## 1.0.1
59
-
60
- ### Patch Changes
61
-
62
- - Bump versions
63
-
64
- ## 1.0.0
65
-
66
- ### Major Changes
67
-
68
- - 4.5 pre-release
69
-
70
- ### Patch Changes
71
-
72
- - verion bump + minor improvements
73
- - Bump all versions
74
- - Version bump
75
-
76
- ## 1.0.0-next.2
77
-
78
- ### Patch Changes
79
-
80
- - Version bump
81
-
82
- ## 1.0.0-next.1
83
-
84
- ### Patch Changes
85
-
86
- - verion bump + minor improvements
87
-
88
- ## 1.0.0-next.0
3
+ ## 2.0.0-next.0
89
4
 
90
5
  ### Major Changes
91
6
 
package/bin/fab.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  // @ts-check
3
- import { Command, Option } from 'commander'
3
+ import { Argument, Command, Option } from 'commander'
4
4
  import path from 'node:path'
5
5
  import { build, buildCjs, buildEsm, buildTypes, clean, create, makeBaseExports, parseConfig } from '../index.js'
6
6
  const program = new Command()
@@ -37,13 +37,12 @@ function makeBuildCommand() {
37
37
  'The exports definition as an alternative to package.json. It must be the same structure as "exports"',
38
38
  parseExports
39
39
  )
40
- .addOption(
41
- new Option('-t, --target [...target]', 'The target export to make')
40
+ .addArgument(
41
+ new Argument('[command]', 'The command to run')
42
42
  .choices(['all', 'esm', 'cjs', 'types', 'clean', 'cjs-exports'])
43
43
  .default('all')
44
44
  )
45
- .action(async (options) => {
46
- const { target } = options
45
+ .action(async (command, options) => {
47
46
  const cwd = path.resolve(process.cwd(), options.cwd)
48
47
  const config = await parseConfig({ cwd })
49
48
 
@@ -57,7 +56,7 @@ function makeBuildCommand() {
57
56
  ...config,
58
57
  }
59
58
 
60
- switch (target) {
59
+ switch (command) {
61
60
  case 'all':
62
61
  await build(finalOptions)
63
62
  break
@@ -74,7 +73,7 @@ function makeBuildCommand() {
74
73
  await buildTypes(finalOptions)
75
74
  break
76
75
  default:
77
- throw new Error(`Unknown target ${target}`)
76
+ throw new Error(`Unknown command ${command}`)
78
77
  }
79
78
  })
80
79
  }
package/dist/build.d.ts CHANGED
@@ -5,17 +5,15 @@ interface BuildOptions extends BaseOptions, MakeBaseExportsOptions, CleanOptions
5
5
  noTypes?: boolean;
6
6
  noCJS?: boolean;
7
7
  noESM?: boolean;
8
- copyVerbatim?: string[];
9
8
  }
10
9
  interface MakeBaseExportsOptions extends BaseOptions {
11
10
  noTypes?: boolean;
12
11
  exports?: PackageJson['exports'];
13
12
  }
14
- export declare const build: (rawOptions?: BuildOptions) => Promise<void>;
15
- export declare const copyVerbatim: (rawOptions?: BuildOptions) => Promise<void>;
16
- export declare const buildTypes: (rawOptions?: BaseOptions) => Promise<void>;
17
- export declare const buildCjs: (rawOptions?: BaseOptions) => Promise<void>;
18
- export declare const makeBaseExports: (rawOptions?: MakeBaseExportsOptions) => Promise<string[]>;
19
- export declare const buildEsm: (rawOptions?: BaseOptions) => Promise<void>;
13
+ export declare const build: (options?: BuildOptions) => Promise<void>;
14
+ export declare const buildTypes: (options?: BaseOptions) => Promise<void>;
15
+ export declare const buildCjs: (options?: BaseOptions) => Promise<void>;
16
+ export declare const makeBaseExports: (options?: MakeBaseExportsOptions) => Promise<string[]>;
17
+ export declare const buildEsm: (options?: BaseOptions) => Promise<void>;
20
18
  export {};
21
19
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MA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