aboutsummaryrefslogtreecommitdiff
path: root/packages/config
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-11-26 22:55:04 -0500
committerPauline <git@ethanlibs.co>2023-11-26 22:55:04 -0500
commit181547a25213bee8a20002e07344b957386c4d0f (patch)
tree1e1b4815166342406026478c00604cdd65e64660 /packages/config
parent955e820f1ccb59467a4f27c5c77738a7ebff193e (diff)
downloadNexus-181547a25213bee8a20002e07344b957386c4d0f.tar.gz
Nexus-181547a25213bee8a20002e07344b957386c4d0f.tar.bz2
Nexus-181547a25213bee8a20002e07344b957386c4d0f.zip
feat(build): transfer everything to esm/ts
Diffstat (limited to 'packages/config')
-rw-r--r--packages/config/base.tsconfig.json2
-rw-r--r--packages/config/index.ts (renamed from packages/config/index.js)0
-rw-r--r--packages/config/package.json8
-rw-r--r--packages/config/vitest.shared.ts8
4 files changed, 15 insertions, 3 deletions
diff --git a/packages/config/base.tsconfig.json b/packages/config/base.tsconfig.json
index 2d27ce4..17c8f2a 100644
--- a/packages/config/base.tsconfig.json
+++ b/packages/config/base.tsconfig.json
@@ -17,6 +17,6 @@
"resolveJsonModule": true,
"module": "ESNext",
"target": "ESNext",
- "types": ["vite/client"]
+ "types": ["vite/client", "vitest/globals"]
}
}
diff --git a/packages/config/index.js b/packages/config/index.ts
index cf96492..cf96492 100644
--- a/packages/config/index.js
+++ b/packages/config/index.ts
diff --git a/packages/config/package.json b/packages/config/package.json
index dbdad1b..4b480ef 100644
--- a/packages/config/package.json
+++ b/packages/config/package.json
@@ -5,13 +5,17 @@
"exports": {
"./*": "./*",
"./vite": "./vite",
- "./vite/relAlias": "./vite/relAlias"
+ "./vite/relAlias": "./vite/relAlias",
+ "./vitest": "./vitest.shared"
},
+ "main": "index.ts",
+ "types": "index.ts",
"devDependencies": {
"@vitejs/plugin-react": "^4.2.0",
"regexpp": "^3.2.0",
"vite-plugin-html": "^3.2.0",
"vite-plugin-svgr": "^4.2.0",
- "vite-tsconfig-paths": "^4.2.1"
+ "vite-tsconfig-paths": "^4.2.1",
+ "vitest": "^0.34.6"
}
}
diff --git a/packages/config/vitest.shared.ts b/packages/config/vitest.shared.ts
new file mode 100644
index 0000000..313a0ff
--- /dev/null
+++ b/packages/config/vitest.shared.ts
@@ -0,0 +1,8 @@
+import { defineConfig } from 'vitest/config';
+
+export default defineConfig({
+ test: {
+ globals: true,
+ reporters: ['dot'],
+ },
+});