Skip to content

Commit

Permalink
chore: fix tsconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Aug 16, 2024
1 parent 7f7e775 commit 06e3dbe
Show file tree
Hide file tree
Showing 15 changed files with 91 additions and 83 deletions.
2 changes: 1 addition & 1 deletion packages/analytics-js-common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"sourceMap": false,
"declarationMap": false
},
"include": ["./src/**/*", "../../types/**/*"],
"include": ["./package.json", "../../types/**/*", "./src/**/*"],
"references": []
}
13 changes: 7 additions & 6 deletions packages/analytics-js-common/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"src/**/*.ts",
"src/**/*.d.ts"
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"./package.json",
"./src/**/*",
"../../types/**/*"
]
}
11 changes: 5 additions & 6 deletions packages/analytics-js-cookies/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"src/**/*.ts",
"src/**/*.d.ts",
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"./src/**/*",
"../../types/**/*",
"./package.json",
"../analytics-js-common/src/**/*"
Expand Down
18 changes: 8 additions & 10 deletions packages/analytics-js-integrations/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"__tests__/**/*.js",
"__mocks__/**/*.js",
"__fixtures__/**/*.js",
"src/**/*.ts",
"src/**/*.js",
"src/**/*.d.ts"
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"./package.json",
"../../types/**/*",
"./src/**/*",
"../analytics-js-common/src/**/*"
]
}
19 changes: 19 additions & 0 deletions packages/analytics-js-plugins/src/types/rudderanalytics.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type {
RudderAnalytics,
PreloadedEventCall,
RudderAnalyticsPreloader,
} from '@rudderstack/analytics-js';

declare global {
interface Window {
rudderanalytics: RudderAnalytics | RudderAnalyticsPreloader | undefined;
rudderAnalyticsMount: () => void;
rudderAnalyticsBuildType: 'legacy' | 'modern';
RudderSnippetVersion?: string;
rudderAnalyticsAddScript: (
url: string,
extraAttributeKey?: string,
extraAttributeVal?: string,
) => void;
}
}
3 changes: 1 addition & 2 deletions packages/analytics-js-plugins/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"./src/**/*",
"../../types/**/*",
"../analytics-js-common/src/**/*",
"../analytics-js-cookies/src/**/*",
"../analytics-js/src/**/*"
"../analytics-js-cookies/src/**/*"
]
}
15 changes: 8 additions & 7 deletions packages/analytics-js-plugins/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"src/**/*.ts",
"src/**/*.d.ts",
"./package.json",
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"../../types/**/*",
"./src/**/*",
"../analytics-js-common/src/**/*",
"../analytics-js/src/**/*"
"../analytics-js-cookies/src/**/*"
]
}
2 changes: 1 addition & 1 deletion packages/analytics-js-service-worker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"target": "es5",
"declarationDir": "./dist/dts"
},
"include": ["./package.json", "./src/**/*", "../../types/**/*"]
"include": ["./package.json", "./src/**/*", "../../types/**/*", "../analytics-js-common/src/**/*"]
}
14 changes: 8 additions & 6 deletions packages/analytics-js-service-worker/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"src/**/*.ts",
"src/**/*.d.ts"
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"./package.json",
"../../types/**/*",
"./src/**/*",
"../analytics-js-common/src/**/*"
]
}
14 changes: 7 additions & 7 deletions packages/analytics-js/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"src/**/*.ts",
"src/**/*.d.ts",
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"__fixtures__/**/*",
"./src/**/*",
"./package.json",
"../../types/**/*",
"../analytics-js-plugins/src/**/*",
"../analytics-js-common/src/**/*"
"../analytics-js-common/src/**/*",
"../analytics-js-cookies/src/**/*"
]
}
18 changes: 8 additions & 10 deletions packages/analytics-v1.1/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"__tests__/**/*.js",
"__mocks__/**/*.js",
"__fixtures__/**/*.js",
"src/**/*.ts",
"src/**/*.js",
"src/**/*.d.ts"
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"./package.json",
"../../types/**/*",
"./src/**/*",
"../analytics-js-common/src/**/*"
]
}
8 changes: 1 addition & 7 deletions packages/loading-scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,5 @@
"declarationDir": "./dist/dts",
"isolatedModules": false
},
"include": [
"./package.json",
"./src/**/*",
"./__mocks__/*.json",
"./__fixtures__/*.json",
"../../types/**/*"
]
"include": ["./package.json", "./src/**/*", "../../types/**/*", "../analytics-js/src/**/*"]
}
14 changes: 8 additions & 6 deletions packages/loading-scripts/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
"target": "es6"
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"src/**/*.ts",
"src/**/*.d.ts"
"./package.json",
"../../types/**/*",
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"./src/**/*",
"../analytics-js/src/**/*"
]
}
8 changes: 1 addition & 7 deletions packages/sanity-suite/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,5 @@
"target": "es5",
"declarationDir": "./dist/dts"
},
"include": [
"./package.json",
"./src/**/*",
"./__mocks__/*.json",
"./__fixtures__/*.json",
"../../types/**/*"
]
"include": ["./package.json", "./src/**/*", "../../types/**/*", "../analytics-js/src/**/*"]
}
15 changes: 8 additions & 7 deletions packages/sanity-suite/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"types": ["jest", "node"]
},
"include": [
"jest.config.mjs",
"__tests__/**/*.ts",
"__mocks__/**/*.ts",
"__fixtures__/**/*.ts",
"src/**/*.ts",
"src/**/*.js",
"src/**/*.d.ts"
"./package.json",
"./jest.config.mjs",
"./__tests__/**/*",
"./__mocks__/**/*",
"./__fixtures__/**/*",
"../../types/**/*",
"./src/**/*",
"../analytics-js/src/**/*"
]
}

0 comments on commit 06e3dbe

Please sign in to comment.