Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/bright-buckets-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bright-pictures-direct.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lazy-loading-default.md

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"pnpm": ">=11.1.3"
},
"devDependencies": {
"@qwik.dev/core": "2.0.0-beta.38",
"@qwik.dev/router": "2.0.0-beta.38",
"@changesets/cli": "^2.31.0",
"@commitlint/cli": "17.6.1",
"@commitlint/config-angular": "17.6.1",
Expand All @@ -31,6 +29,8 @@
"@nx/js": "21.6.11",
"@nx/vite": "21.6.11",
"@nx/workspace": "21.6.11",
"@qwik.dev/core": "2.0.0-beta.38",
"@qwik.dev/router": "2.0.0-beta.38",
"@types/node": "20.19.43",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/parser": "7.7.1",
Expand All @@ -54,7 +54,6 @@
"vite": "7.3.6",
"vite-plugin-dts": "~2.3.0",
"vite-plugin-eslint": "1.8.1",
"vite-plugin-static-copy": "4.1.1",
"vite-tsconfig-paths": "~4.2.0",
"vitest": "3.2.7"
},
Expand Down
6 changes: 2 additions & 4 deletions packages/qwik-image/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "qwik-image",
"version": "2.0.3",
"version": "2.0.4",
"description": "The goal is a component to support performant images on the web and automatic image optimization. That will be built as a pluggable component so devs could connect different image loaders to it (like Cloudinary, or builder)",
"main": "./index.qwik.cjs",
"qwik": "./index.qwik.mjs",
"module": "./index.qwik.mjs",
"types": "./index.d.ts",
Expand All @@ -20,8 +19,7 @@
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.qwik.mjs",
"require": "./index.qwik.cjs"
"import": "./index.qwik.mjs"
}
},
"dependencies": {},
Expand Down
27 changes: 20 additions & 7 deletions packages/qwik-image/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/// <reference types="vitest" />

import { qwikVite } from '@qwik.dev/core/optimizer';
import { readFileSync } from 'node:fs';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import tsconfigPaths from 'vite-tsconfig-paths';
import pkg from './package.json';

Expand All @@ -22,16 +22,29 @@ export default defineConfig({
qwikVite(),
tsconfigPaths({ root: workspaceRoot }),
dts({
entryRoot: 'src',
tsConfigFilePath: join(
dirname(fileURLToPath(import.meta.url)),
'tsconfig.lib.json'
),
// Faster builds by skipping tests. Set this to false to enable type checking.
skipDiagnostics: true,
}),
viteStaticCopy({
targets: [{ src: '../../README.md', dest: './' }],
}),
{
name: 'package-files',
generateBundle() {
this.emitFile({
type: 'asset',
fileName: 'README.md',
source: readFileSync(join(workspaceRoot, 'README.md')),
});
this.emitFile({
type: 'asset',
fileName: 'package.json',
source: `${JSON.stringify(pkg, null, 2)}\n`,
});
},
},
],
server: {
fs: {
Expand All @@ -43,13 +56,13 @@ export default defineConfig({
// Configuration for building your library.
// See: https://vitejs.dev/guide/build.html#library-mode
build: {
emptyOutDir: true,
target: 'es2020',
lib: {
entry: './src/index',
formats: ['es', 'cjs'] as const,
formats: ['es'] as const,
// This adds .qwik so all files are processed by the optimizer
fileName: (format, entryName) =>
`${entryName}.qwik.${format === 'es' ? 'mjs' : 'cjs'}`,
fileName: (_format, entryName) => `${entryName}.qwik.mjs`,
},
rollupOptions: {
output: {
Expand Down
76 changes: 0 additions & 76 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading