Skip to content

Commit

Permalink
da69196 fix(core dev): copy optimizer from CI build if dev (#7283)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Jan 30, 2025
1 parent d21ad6e commit 11fc550
Show file tree
Hide file tree
Showing 20 changed files with 51 additions and 59 deletions.
2 changes: 1 addition & 1 deletion dist/build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/build",
"version": "1.12.0-dev+d016bf3",
"version": "1.12.0-dev+da69196",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions dist/cli.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/cli 1.12.0-dev+d016bf3
* @builder.io/qwik/cli 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -5542,7 +5542,7 @@ async function printHelp(app) {
await runCommand2(Object.assign(app, { task: args[0], args }));
}
function printVersion() {
console.log("1.12.0-dev+d016bf3");
console.log("1.12.0-dev+da69196");
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions dist/core.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.12.0-dev+d016bf3
* @builder.io/qwik 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -922,7 +922,7 @@
*
* @public
*/
const version = "1.12.0-dev+d016bf3";
const version = "1.12.0-dev+da69196";

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion dist/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3875,7 +3875,7 @@ export declare type ValueOrPromise<T> = T | Promise<T>;
export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;

/**
* 1.12.0-dev+d016bf3
* 1.12.0-dev+da69196
*
* @public
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/core.min.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.12.0-dev+d016bf3
* @builder.io/qwik 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -919,7 +919,7 @@ const serializeSStyle = (scopeIds) => {
*
* @public
*/
const version = "1.12.0-dev+d016bf3";
const version = "1.12.0-dev+da69196";

/**
* @internal
Expand Down
4 changes: 2 additions & 2 deletions dist/core.prod.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.12.0-dev+d016bf3
* @builder.io/qwik 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -352,7 +352,7 @@
return value;
}
};
const version = "1.12.0-dev+d016bf3";
const version = "1.12.0-dev+da69196";
const useSequentialScope = () => {
const iCtx = useInvokeContext();
const elCtx = getContext(iCtx.$hostElement$, iCtx.$renderCtx$.$static$.$containerState$);
Expand Down
4 changes: 2 additions & 2 deletions dist/core.prod.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik 1.12.0-dev+d016bf3
* @builder.io/qwik 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -579,7 +579,7 @@ const serializeSStyle = scopeIds => {
}
};

const version = "1.12.0-dev+d016bf3";
const version = "1.12.0-dev+da69196";

const useSequentialScope = () => {
const iCtx = useInvokeContext();
Expand Down
2 changes: 1 addition & 1 deletion dist/loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/loader",
"version": "1.12.0-dev+d016bf3",
"version": "1.12.0-dev+da69196",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions dist/optimizer.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/optimizer 1.12.0-dev+d016bf3
* @builder.io/qwik/optimizer 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1226,7 +1226,7 @@ globalThis.qwikOptimizer = function(module) {
}
var QWIK_BINDING_MAP = {};
var versions = {
qwik: "1.12.0-dev+d016bf3"
qwik: "1.12.0-dev+da69196"
};
async function getSystem() {
const sysEnv = getEnv();
Expand Down
4 changes: 2 additions & 2 deletions dist/optimizer.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/optimizer 1.12.0-dev+d016bf3
* @builder.io/qwik/optimizer 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -1263,7 +1263,7 @@ function createPath(opts = {}) {
var QWIK_BINDING_MAP = {};

var versions = {
qwik: "1.12.0-dev+d016bf3"
qwik: "1.12.0-dev+da69196"
};

async function getSystem() {
Expand Down
2 changes: 1 addition & 1 deletion dist/prefetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/prefetch",
"version": "1.12.0-dev+d016bf3",
"version": "1.12.0-dev+da69196",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions dist/server.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/server 1.12.0-dev+d016bf3
* @builder.io/qwik/server 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -360,7 +360,7 @@ function getBuildBase(opts) {
return `${import_meta.env.BASE_URL}build/`;
}
var versions2 = {
qwik: "1.12.0-dev+d016bf3",
qwik: "1.12.0-dev+da69196",
qwikDom: "2.1.19"
};

Expand Down
4 changes: 2 additions & 2 deletions dist/server.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/server 1.12.0-dev+d016bf3
* @builder.io/qwik/server 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down Expand Up @@ -315,7 +315,7 @@ function getBuildBase(opts) {
return `${import.meta.env.BASE_URL}build/`;
}
var versions2 = {
qwik: "1.12.0-dev+d016bf3",
qwik: "1.12.0-dev+da69196",
qwikDom: "2.1.19"
};

Expand Down
9 changes: 5 additions & 4 deletions dist/starters/features/drizzle/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { Config } from "drizzle-kit";
export default {
import { defineConfig } from "drizzle-kit";

export default defineConfig({
dialect: "sqlite",
schema: "./drizzle/schema.ts",
out: "./drizzle/migrations/",
driver: "better-sqlite",
dbCredentials: {
url: "./drizzle/db/db.sqlite",
},
} satisfies Config;
});
24 changes: 6 additions & 18 deletions dist/starters/features/drizzle/drizzle/schema.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
// // This is your drizzle schema file.
import { sqliteTable as table } from "drizzle-orm/sqlite-core";
import * as t from "drizzle-orm/sqlite-core";

// import { pgTable, serial, text, timestamp } from "drizzle-orm/pg-core";

// export const users = pgTable("users", {
// id: serial("id").primaryKey(),
// name: text("name").default("not_provided"),
// email: text("email").notNull(),
// });

// export const schema = {
// users,
// };
import { sqliteTable, integer, text } from "drizzle-orm/sqlite-core";

export const users = sqliteTable("users", {
id: integer("id", { mode: "number" }).primaryKey({ autoIncrement: true }),
name: text("name").default("not_provided"),
email: text("email").notNull(),
export const users = table("users", {
id: t.int({ mode: "number" }).primaryKey({ autoIncrement: true }),
name: t.text().default("not_provided"),
email: t.text().notNull(),
});

export const schema = {
Expand Down
25 changes: 14 additions & 11 deletions dist/starters/features/drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"priority": -10,
"viteConfig": {},
"docs": [
"https://qwik.dev/integrations/integration/drizzle/",
"https://qwik.dev/integrations/drizzle/",
"https://orm.drizzle.team/docs/overview"
],
"nextSteps": {
"title": "Next Steps",
"lines": [
" Drizzle was installed with a simple DB schema and some demo routes,",
" now you need to run `npm run drizzle:migrate` to setup the database.",
"",
" better-sqlite3 was configured by default, but in production",
" you'll want to use Postgres or MySQL.",
Expand All @@ -26,17 +27,19 @@
"alwaysInRoot": []
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.9",
"drizzle-kit": "^0.20.14"
},
"dependencies": {
"better-sqlite3": "^9.4.3",
"drizzle-orm": "^0.29.4"
"@types/better-sqlite3": "^7.6.12",
"drizzle-kit": "^0.30.3",
"better-sqlite3": "^11.8.1",
"drizzle-orm": "^0.39.0"
},
"scripts": {
"postinstall": "drizzle-kit generate:sqlite",
"drizzle:generate": "drizzle-kit generate:sqlite",
"drizzle:migrate": "drizzle-kit push:sqlite",
"drizzle:studio": "drizzle-kit studio --host 127.0.0.1"
"drizzle:generate": "drizzle-kit generate",
"drizzle:migrate": "drizzle-kit migrate",
"drizzle:push": "drizzle-kit push",
"drizzle:pull": "drizzle-kit pull",
"drizzle:check": "drizzle-kit check",
"drizzle:up": "drizzle-kit up",
"drizzle:studio": "drizzle-kit studio",
"postinstall": "drizzle-kit generate"
}
}
2 changes: 1 addition & 1 deletion dist/testing/index.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/testing 1.12.0-dev+d016bf3
* @builder.io/qwik/testing 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down
2 changes: 1 addition & 1 deletion dist/testing/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* @builder.io/qwik/testing 1.12.0-dev+d016bf3
* @builder.io/qwik/testing 1.12.0-dev+da69196
* Copyright Builder.io, Inc. All Rights Reserved.
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
Expand Down
2 changes: 1 addition & 1 deletion dist/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@builder.io/qwik/testing",
"version": "1.12.0-dev+d016bf3",
"version": "1.12.0-dev+da69196",
"main": "index.mjs",
"types": "index.d.ts",
"private": true,
Expand Down

0 comments on commit 11fc550

Please sign in to comment.