Skip to content

Commit

Permalink
Stabilize tokens and consts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonatan Kra committed Dec 23, 2024
1 parent 3b6278e commit fc3d28f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
15 changes: 2 additions & 13 deletions libs/consts/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,13 @@ export default defineConfig({
root: '../../',
}),
],

// Uncomment this if you are using workers.
// worker: {
// plugins: [
// viteTsConfigPaths({
// root: '../../',
// }),
// ],
// },

// Configuration for building your library.
// See: https://vitejs.dev/guide/build.html#library-mode
build: {
outDir: '../../dist/libs/consts',
reportCompressedSize: true,
commonjsOptions: { transformMixedEsModules: true },
lib: {
// Could also be a dictionary or array of multiple entry points.
entry: 'src/index.ts',
entry: path.resolve(__dirname, 'src/index.ts'),
name: 'consts',
fileName: 'index',
// Change this to the formats you want to support.
Expand All @@ -48,5 +36,6 @@ export default defineConfig({
// External packages that should not be bundled into your library.
external: [],
},
emptyOutDir: true,
},
});
2 changes: 1 addition & 1 deletion libs/tokens/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": {
"executor": "nx:run-commands",
"options": {
"commands": ["ts-node build.ts"],
"commands": ["tsx build.ts"],
"cwd": "libs/tokens/src/lib"
}
}
Expand Down

0 comments on commit fc3d28f

Please sign in to comment.