Skip to content

Commit f1735f3

Browse files
committed
feat: reconfigure server-core-integration for esm & verbatimModuleSyntax
1 parent 722a75c commit f1735f3

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

packages/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extendedRules.push(
5959
pluginReact.configs.flat.recommended,
6060
pluginReact.configs.flat['jsx-runtime'],
6161
{
62-
files: ['webui/src/**/*', 'shared-lib/src/**/*'],
62+
files: ['webui/src/**/*', 'shared-lib/src/**/*', 'server-core-integration/src/**/*'],
6363
rules: {
6464
// Override default behaviour for ESM and verbatimModuleSyntax
6565
'n/no-missing-import': ['error', { ignoreTypeImport: true }],

packages/server-core-integration/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
"description": "Library for connecting to Core",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
7-
"module": "dist/module/index.js",
8-
"browser": "dist/browser/index.js",
7+
"type": "module",
8+
"exports": {
9+
".": {
10+
"require": "./dist/index.js",
11+
"import": "./dist/index.js",
12+
"types": "./dist/index.d.ts"
13+
},
14+
"./package.json": "./package.json"
15+
},
916
"license": "MIT",
1017
"repository": {
1118
"type": "git",

packages/server-core-integration/tsconfig.build.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
"outDir": "./dist",
77
"rootDir": "./src",
88
"baseUrl": "./",
9-
"paths": {
10-
"*": ["./node_modules/*"],
11-
"@sofie-automation/server-core-integration": ["./src/index.ts"]
12-
},
139
"resolveJsonModule": true,
1410
"types": ["node"],
1511
"skipLibCheck": true,
1612
"esModuleInterop": true,
1713
"composite": true,
18-
"module": "node20"
14+
"module": "node20",
15+
"verbatimModuleSyntax": true
1916
},
2017
"references": [
2118
{

0 commit comments

Comments
 (0)