@forsakringskassan/vite-lib-config 4.7.1 → 4.8.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
@@ -6,9 +6,16 @@ Toolchain for building Vue framework libraries.
6
6
  - Transpiled with Babel.
7
7
  - Supports monorepo.
8
8
  - Optional: build pageobjects and selectors.
9
+ - Optional: shared typescript configuration.
9
10
 
10
11
  ## Configuration
11
12
 
13
+ Use `fk-write-config` to write boilerplate configuration files to the repository:
14
+
15
+ fk-write-config
16
+
17
+ By default it assumes `vitest` is used as test runner, use `--with-jest` or `--with-vitest` to explicitly set a test runner.
18
+
12
19
  ### Bundled dependencies
13
20
 
14
21
  By default all dependencies (`dependencies` and `peerDependencies`) are marked as external and not bundled in output files.
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run } from "../dist/api-extractor.mjs";
4
+
5
+ const argv = process.argv.slice(2);
6
+
7
+ try {
8
+ await run(argv);
9
+ } catch (err) {
10
+ console.error(err);
11
+ process.exitCode = 1;
12
+ }
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { run } from "../dist/build-selectors.js";
3
+ import { run } from "../dist/build-selectors.mjs";
4
4
 
5
5
  const argv = process.argv.slice(2);
6
6
 
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { run } from "../dist/write-config.mjs";
4
+
5
+ const cwd = process.cwd();
6
+ const argv = process.argv.slice(2);
7
+
8
+ try {
9
+ await run(cwd, argv);
10
+ } catch (err) {
11
+ console.error(err);
12
+ process.exitCode = 1;
13
+ }