@stripe/extensibility-custom-objects-tools 0.41.0 → 0.42.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.
@@ -0,0 +1,89 @@
1
+ import eslint from '@eslint/js';
2
+ import { defineConfig } from 'eslint/config';
3
+ import tseslint from 'typescript-eslint';
4
+ import eslintConfigPrettier from 'eslint-config-prettier/flat';
5
+
6
+ import globals from 'globals';
7
+
8
+ import stripeAppsConfig from '@stripe/extensibility-eslint-plugin';
9
+ import customObjectsConfig from '@stripe/extensibility-eslint-plugin/custom-objects';
10
+
11
+ export default defineConfig([
12
+ eslint.configs.recommended,
13
+ ...tseslint.configs.recommended,
14
+ ...stripeAppsConfig,
15
+ ...customObjectsConfig,
16
+
17
+ // Global ignores
18
+ {
19
+ ignores: ['dist', 'generated', 'node_modules'],
20
+ },
21
+
22
+ // TypeScript source files (with type-checking)
23
+ {
24
+ name: 'sources',
25
+ files: ['src/**/*.ts'],
26
+ ignores: ['**/*.test.ts', '**/__tests__/**'],
27
+ languageOptions: {
28
+ globals: {
29
+ ...globals.node,
30
+ },
31
+ parserOptions: {
32
+ projectService: true,
33
+ tsconfigRootDir: import.meta.dirname,
34
+ },
35
+ },
36
+ },
37
+
38
+ // Test files
39
+ {
40
+ name: 'tests',
41
+ files: ['src/**/*.test.ts', 'src/**/__tests__/**/*.ts'],
42
+ languageOptions: {
43
+ globals: {
44
+ ...globals.node,
45
+ },
46
+ parserOptions: {
47
+ projectService: true,
48
+ tsconfigRootDir: import.meta.dirname,
49
+ },
50
+ },
51
+ },
52
+
53
+ // Config files
54
+ {
55
+ name: 'ts-configs',
56
+ files: ['*.config.m?ts', 'eslint.config.mts'],
57
+ languageOptions: {
58
+ globals: {
59
+ ...globals.node,
60
+ },
61
+ parserOptions: {
62
+ projectService: false,
63
+ },
64
+ },
65
+ rules: {
66
+ '@typescript-eslint/no-unused-vars': 'off',
67
+ },
68
+ },
69
+
70
+ // JavaScript/MJS files (scripts, configs) — no TS project, so only
71
+ // disable the TS-parser-specific rule that doesn't apply without it.
72
+ {
73
+ name: 'js-configs',
74
+ files: ['**/*.js', '**/*.mjs'],
75
+ languageOptions: {
76
+ globals: {
77
+ ...globals.node,
78
+ },
79
+ parserOptions: {
80
+ projectService: false,
81
+ },
82
+ },
83
+ rules: {
84
+ '@typescript-eslint/no-require-imports': 'off',
85
+ },
86
+ },
87
+
88
+ eslintConfigPrettier,
89
+ ]);
@@ -6,7 +6,9 @@
6
6
  "private": true,
7
7
  "scripts": {
8
8
  "build": "test -d src && custom-objects-build --input src --output dist || true",
9
+ "lint": "pnpm lint:types && pnpm lint:eslint",
9
10
  "lint:types": "test ! -d src || tsc --noEmit",
11
+ "lint:eslint": "eslint .",
10
12
  "test": "vitest run"
11
13
  },
12
14
  "dependencies": {
@@ -5,5 +5,6 @@
5
5
  "moduleResolution": "bundler",
6
6
  "types": ["vitest/globals"]
7
7
  },
8
+ "include": ["src/**/*.ts"],
8
9
  "exclude": ["dist"]
9
10
  }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ globals: true,
6
+ },
7
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/extensibility-custom-objects-tools",
3
- "version": "0.41.0",
3
+ "version": "0.42.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,14 +35,14 @@
35
35
  "ts-morph": "^27.0.2",
36
36
  "typescript": "^5.8.0",
37
37
  "yargs": "^17.7.2",
38
- "@stripe/extensibility-tool-utils": "0.6.5"
38
+ "@stripe/extensibility-tool-utils": "0.7.1"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/yargs": "^17.0.35",
42
42
  "stripe": "^22.0.2",
43
43
  "@stripe/extensibility-api-objects": "0.3.3",
44
- "@stripe/extensibility-jsonschema-tools": "0.6.6",
45
- "@stripe/extensibility-sdk": "0.23.0"
44
+ "@stripe/extensibility-jsonschema-tools": "0.6.8",
45
+ "@stripe/extensibility-sdk": "0.27.1"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-surface.d.ts","sourceRoot":"","sources":["../src/api-surface.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,YAAY,CAAC"}