diff --git a/package.json b/package.json index ce712026e19..45d9ea708f1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "qwik-monorepo", - "version": "0.0.41", + "version": "0.0.42", "scripts": { "build": "tsm scripts/index.ts --tsc --build --qwikcity --api --platform-binding-wasm-copy", "build.full": "tsm scripts/index.ts --tsc --build --api --eslint --qwikcity --qwikreact --platform-binding --wasm", diff --git a/packages/create-qwik/package.json b/packages/create-qwik/package.json index 6a1e4ab4ff7..4e220cbab26 100644 --- a/packages/create-qwik/package.json +++ b/packages/create-qwik/package.json @@ -1,6 +1,6 @@ { "name": "create-qwik", - "version": "0.0.41", + "version": "0.0.42", "description": "Interactive CLI and API for generating Qwik projects.", "bin": "create-qwik", "main": "index.js", diff --git a/packages/eslint-plugin-qwik/package.json b/packages/eslint-plugin-qwik/package.json index 1be9c578280..918030462e2 100644 --- a/packages/eslint-plugin-qwik/package.json +++ b/packages/eslint-plugin-qwik/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-qwik", - "version": "0.0.41", + "version": "0.0.42", "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.", "main": "index.js", "author": "Builder Team", diff --git a/packages/qwik/package.json b/packages/qwik/package.json index b8b1af73dc4..d7bb9b829d3 100644 --- a/packages/qwik/package.json +++ b/packages/qwik/package.json @@ -1,6 +1,6 @@ { "name": "@builder.io/qwik", - "version": "0.0.41", + "version": "0.0.42", "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.", "main": "./dist/core.cjs", "types": "./dist/core.d.ts", diff --git a/scripts/cli.ts b/scripts/cli.ts index 5745b473e22..2ff81ae8e08 100644 --- a/scripts/cli.ts +++ b/scripts/cli.ts @@ -33,7 +33,7 @@ async function bundleCli(config: BuildConfig, srcCliDir: string, distCliDir: str minify: !config.dev, plugins: [importPath(/api$/, './index.js')], banner: { - js: `${getBanner(PACKAGE)}`, + js: `${getBanner(PACKAGE, config.distVersion)}`, }, watch: watcher(config), }); @@ -47,7 +47,7 @@ async function bundleCli(config: BuildConfig, srcCliDir: string, distCliDir: str platform: 'node', minify: !config.dev, banner: { - js: getBanner(PACKAGE), + js: getBanner(PACKAGE, config.distVersion), }, watch: watcher(config), }); diff --git a/scripts/submodule-core.ts b/scripts/submodule-core.ts index d6301756bac..9be449c3746 100644 --- a/scripts/submodule-core.ts +++ b/scripts/submodule-core.ts @@ -46,7 +46,7 @@ async function submoduleCoreProd(config: BuildConfig) { format: 'es', entryFileNames: 'core.mjs', sourcemap: true, - banner: getBanner('@builder.io/qwik'), + banner: getBanner('@builder.io/qwik', config.distVersion), }; const cjsIntro = [ @@ -64,7 +64,7 @@ async function submoduleCoreProd(config: BuildConfig) { name: 'qwikCore', entryFileNames: 'core.cjs', sourcemap: true, - banner: getBanner('@builder.io/qwik'), + banner: getBanner('@builder.io/qwik', config.distVersion), intro: cjsIntro, }; @@ -98,7 +98,7 @@ async function submoduleCoreProd(config: BuildConfig) { format: { comments: /__PURE__/, preserve_annotations: true, - preamble: getBanner('@builder.io/qwik'), + preamble: getBanner('@builder.io/qwik', config.distVersion), ecma: 2020, }, }); diff --git a/scripts/submodule-optimizer.ts b/scripts/submodule-optimizer.ts index 0144c134f62..9000a1d4384 100644 --- a/scripts/submodule-optimizer.ts +++ b/scripts/submodule-optimizer.ts @@ -45,7 +45,7 @@ export async function submoduleOptimizer(config: BuildConfig) { const esmBuild = build({ ...opts, format: 'esm', - banner: { js: getBanner('@builder.io/qwik/optimizer') }, + banner: { js: getBanner('@builder.io/qwik/optimizer', config.distVersion) }, outExtension: { '.js': '.mjs' }, define: { 'globalThis.IS_CJS': 'false', @@ -112,7 +112,7 @@ export async function submoduleOptimizer(config: BuildConfig) { braces: true, beautify: true, indent_level: 2, - preamble: getBanner('@builder.io/qwik/optimizer'), + preamble: getBanner('@builder.io/qwik/optimizer', config.distVersion), }, mangle: false, }); diff --git a/scripts/submodule-server.ts b/scripts/submodule-server.ts index a8debea6e2d..312d86fab89 100644 --- a/scripts/submodule-server.ts +++ b/scripts/submodule-server.ts @@ -38,7 +38,7 @@ export async function submoduleServer(config: BuildConfig) { const esm = build({ ...opts, format: 'esm', - banner: { js: getBanner('@builder.io/qwik/server') + injectGlobalPoly() }, + banner: { js: getBanner('@builder.io/qwik/server', config.distVersion) + injectGlobalPoly() }, outExtension: { '.js': '.mjs' }, plugins: [importPath(/^@builder\.io\/qwik$/, '@builder.io/qwik'), qwikDomPlugin], watch: watcher(config, submodule), @@ -52,7 +52,7 @@ export async function submoduleServer(config: BuildConfig) { }); const cjsBanner = [ - getBanner('@builder.io/qwik/server'), + getBanner('@builder.io/qwik/server', config.distVersion), injectGlobalThisPoly(), injectGlobalPoly(), `globalThis.qwikServer = (function (module) {`, diff --git a/scripts/submodule-testing.ts b/scripts/submodule-testing.ts index f4abf37597b..1672aa8dc93 100644 --- a/scripts/submodule-testing.ts +++ b/scripts/submodule-testing.ts @@ -22,7 +22,7 @@ export async function submoduleTesting(config: BuildConfig) { const esm = build({ ...opts, format: 'esm', - banner: { js: getBanner('@builder.io/qwik/testing') }, + banner: { js: getBanner('@builder.io/qwik/testing', config.distVersion) }, outExtension: { '.js': '.mjs' }, plugins: [ importPath(/^@builder\.io\/qwik$/, '../core.mjs'), @@ -40,7 +40,9 @@ export async function submoduleTesting(config: BuildConfig) { ...opts, format: 'cjs', outExtension: { '.js': '.cjs' }, - banner: { js: getBanner('@builder.io/qwik/testing') + injectGlobalThisPoly() }, + banner: { + js: getBanner('@builder.io/qwik/testing', config.distVersion) + injectGlobalThisPoly(), + }, plugins: [ importPath(/^@builder\.io\/qwik$/, '../core.cjs'), importPath(/^@builder\.io\/qwik\/optimizer$/, '../optimizer.cjs'), diff --git a/scripts/util.ts b/scripts/util.ts index de40c0bed0a..ba3e79c4221 100644 --- a/scripts/util.ts +++ b/scripts/util.ts @@ -147,11 +147,11 @@ export function watcher(config: BuildConfig, filename?: string): WatchMode | boo /** * Standard license banner to place at the top of the generated files. */ -export const getBanner = (moduleName: string) => { +export const getBanner = (moduleName: string, version: string) => { return ` /** * @license - * ${moduleName} + * ${moduleName} ${version} * 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/BuilderIO/qwik/blob/main/LICENSE diff --git a/yarn.lock b/yarn.lock index 0bfd222ed48..3e25408df44 100644 --- a/yarn.lock +++ b/yarn.lock @@ -162,7 +162,14 @@ __metadata: languageName: unknown linkType: soft -"@builder.io/qwik@0.0.41, @builder.io/qwik@workspace:*, @builder.io/qwik@workspace:packages/qwik": +"@builder.io/qwik@npm:0.0.41": + version: 0.0.41 + resolution: "@builder.io/qwik@npm:0.0.41" + checksum: bc587947ea7470e5ad89420bb2f889defa6c2d1e540f1b60a19cc2be695edde2d64140921ea924ed14dcbc1f87bae36db1523256bd1a36a347dbe6c78ddc0ae3 + languageName: node + linkType: hard + +"@builder.io/qwik@workspace:*, @builder.io/qwik@workspace:packages/qwik": version: 0.0.0-use.local resolution: "@builder.io/qwik@workspace:packages/qwik" languageName: unknown