@meistrari/mise-en-place 2.5.0 → 2.6.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/dist/cli/cli.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { argv } from 'node:process';
3
- import { existsSync, globSync, readFileSync, writeFileSync } from 'node:fs';
3
+ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
4
4
  import { execSync } from 'node:child_process';
5
+ import { globSync } from 'glob';
5
6
  import { dirname } from 'node:path';
6
7
  import { parse } from 'yaml';
7
8
 
@@ -33,13 +34,18 @@ function getMeistrariLibs(packageJson) {
33
34
  function addCaretToMeistrariDeps(deps) {
34
35
  if (!deps)
35
36
  return deps;
36
- const result = {};
37
+ const result = { ...deps };
37
38
  for (const [key, value] of Object.entries(deps)) {
38
- if (key.startsWith("@meistrari/") && !value.startsWith("^")) {
39
- result[key] = `^${value}`;
40
- } else {
41
- result[key] = value;
39
+ if (!key.startsWith("@meistrari/")) {
40
+ continue;
41
+ }
42
+ if (value.startsWith("workspace:")) {
43
+ continue;
44
+ }
45
+ if (value.startsWith("^")) {
46
+ continue;
42
47
  }
48
+ result[key] = `^${value}`;
43
49
  }
44
50
  return result;
45
51
  }
package/dist/eslint.mjs CHANGED
@@ -3,18 +3,6 @@ import drizzle from 'eslint-plugin-drizzle';
3
3
  import * as eslintPluginDiff from 'eslint-plugin-diff';
4
4
 
5
5
  const isCI = process.env.CI === "true";
6
- function getTsConfig() {
7
- if (isCI) {
8
- return void 0;
9
- }
10
- return {
11
- tsconfigPath: "./tsconfig.json",
12
- overridesTypeAware: {
13
- "ts/no-floating-promises": "error",
14
- "ts/no-unnecessary-condition": "error"
15
- }
16
- };
17
- }
18
6
  const eslintConfig = antfu(
19
7
  {
20
8
  stylistic: {
@@ -31,7 +19,14 @@ const eslintConfig = antfu(
31
19
  // This speeds up the linting process significantly and also allows us to
32
20
  // rollout new rules gradually.
33
21
  ...isCI ? { processor: eslintPluginDiff.processors.ci } : void 0,
34
- typescript: getTsConfig(),
22
+ typescript: {
23
+ tsconfigPath: "./tsconfig.json",
24
+ overridesTypeAware: {
25
+ "ts/no-floating-promises": "error",
26
+ "ts/no-unnecessary-condition": "error",
27
+ "ts/return-await": ["error", "always"]
28
+ }
29
+ },
35
30
  ignores: [
36
31
  ".github",
37
32
  "*.yaml",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/mise-en-place",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,6 +38,7 @@
38
38
  "eslint": "9.39.1",
39
39
  "eslint-plugin-diff": "2.0.3",
40
40
  "eslint-plugin-drizzle": "0.2.3",
41
+ "glob": "13.0.0",
41
42
  "yaml": "^2.7.0"
42
43
  },
43
44
  "devDependencies": {