Skip to content

Commit 86bb2d2

Browse files
committed
Rename lit-dev-tools to lit-dev-tools-cjs to distinguish it from -esm
1 parent a334771 commit 86bb2d2

20 files changed

+20
-18
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ WORKDIR /usr/src/app
2222

2323
# External dependencies
2424
COPY package*.json lerna.json ./
25-
COPY packages/lit-dev-tools/package*.json ./packages/lit-dev-tools/
25+
COPY packages/lit-dev-tools-cjs/package*.json ./packages/lit-dev-tools-cjs/
2626
COPY packages/lit-dev-tools-esm/package*.json ./packages/lit-dev-tools-esm/
2727
COPY packages/lit-dev-server/package*.json ./packages/lit-dev-server/
2828
COPY packages/lit-dev-api/package*.json ./packages/lit-dev-api/
2929
COPY packages/lit-dev-content/package*.json ./packages/lit-dev-content/
3030
RUN npm ci && npm run bootstrap
3131

3232
# Tooling code
33-
COPY packages/lit-dev-tools/ ./packages/lit-dev-tools/
33+
COPY packages/lit-dev-tools-cjs/ ./packages/lit-dev-tools-cjs/
3434
COPY packages/lit-dev-tools-esm/ ./packages/lit-dev-tools-esm/
3535
COPY packages/lit-dev-server/ ./packages/lit-dev-server/
36-
RUN npx lerna run build:ts --scope lit-dev-tools --scope lit-dev-tools-esm --scope lit-dev-server --stream
36+
RUN npx lerna run build:ts --scope lit-dev-tools-cjs --scope lit-dev-tools-esm --scope lit-dev-server --stream
3737

3838
# Generated API docs
3939
COPY packages/lit-dev-api/ ./packages/lit-dev-api/

lit-dev.code-workspace

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"path": "packages/lit-dev-content"
66
},
77
{
8-
"name": "lit-dev-tools",
9-
"path": "packages/lit-dev-tools"
8+
"name": "lit-dev-tools-cjs",
9+
"path": "packages/lit-dev-tools-cjs"
1010
},
1111
{
1212
"name": "lit-dev-tools-esm",

packages/lit-dev-api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"license": "BSD-3-Clause",
88
"scripts": {
99
"build": "(ls lit 2>/dev/null || npm run monorepo:init) && npm run build:generate",
10-
"build:generate": "node ../lit-dev-tools/lib/generate-api-docs-data.js",
11-
"build:watch": "chokidar 'lit/packages/*/src/**/*.ts' '../lit-dev-tools/lib/generate-api-docs-data.js' -c 'npm run monorepo:build && npm run build:generate' --initial",
10+
"build:generate": "node ../lit-dev-tools-cjs/lib/generate-api-docs-data.js",
11+
"build:watch": "chokidar 'lit/packages/*/src/**/*.ts' '../lit-dev-tools-cjs/lib/generate-api-docs-data.js' -c 'npm run monorepo:build && npm run build:generate' --initial",
1212
"monorepo:init": "npm run monorepo:clone && npm run monorepo:install && npm run monorepo:build",
1313
"monorepo:clone": "git clone https://github.com/lit/lit --branch main lit && cd lit && git checkout $(cat ../lit.sha)",
1414
"monorepo:update": "cd lit && git checkout main && git pull && git rev-parse HEAD > ../lit.sha && cd .. && npm run monorepo:install && npm run monorepo:build",
@@ -17,6 +17,6 @@
1717
},
1818
"dependencies": {
1919
"chokidar-cli": "^2.1.0",
20-
"lit-dev-tools": "^0.0.0"
20+
"lit-dev-tools-cjs": "^0.0.0"
2121
}
2222
}

packages/lit-dev-content/.eleventy.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ const path = require('path');
77
const eleventyNavigationPlugin = require('@11ty/eleventy-navigation');
88
const {
99
playgroundPlugin,
10-
} = require('lit-dev-tools/lib/playground-plugin/plugin.js');
10+
} = require('lit-dev-tools-cjs/lib/playground-plugin/plugin.js');
1111
const htmlMinifier = require('html-minifier');
1212
const CleanCSS = require('clean-css');
1313
const fs = require('fs/promises');
1414
const fsSync = require('fs');
1515
const fastGlob = require('fast-glob');
1616
const {
1717
inlinePlaygroundFilesIntoManifests,
18-
} = require('../lit-dev-tools/lib/playground-inline.js');
19-
const {createSearchIndex} = require('../lit-dev-tools/lib/search/plugin.js');
20-
const {preCompress} = require('../lit-dev-tools/lib/pre-compress.js');
18+
} = require('../lit-dev-tools-cjs/lib/playground-inline.js');
19+
const {
20+
createSearchIndex,
21+
} = require('../lit-dev-tools-cjs/lib/search/plugin.js');
22+
const {preCompress} = require('../lit-dev-tools-cjs/lib/pre-compress.js');
2123
const luxon = require('luxon');
2224
const crypto = require('crypto');
2325

packages/lit-dev-content/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"html-minifier": "^4.0.0",
3434
"lit-dev-api": "^0.0.0",
3535
"lit-dev-server": "^0.0.0",
36-
"lit-dev-tools": "^0.0.0",
36+
"lit-dev-tools-cjs": "^0.0.0",
3737
"lit-dev-tools-esm": "^0.0.0",
3838
"luxon": "^2.0.2",
3939
"markdown-it": "^12.0.4",

packages/lit-dev-content/src/components/litdev-search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {Drawer} from '@material/mwc-drawer';
2222
/**
2323
* Representation of each document indexed by Minisearch.
2424
*
25-
* Duplicated interface that must match `/lit-dev-tools/src/search/plugin.ts`
25+
* Duplicated interface that must match `/lit-dev-tools-cjs/src/search/plugin.ts`
2626
*/
2727
interface UserFacingPageData {
2828
id: string;
@@ -192,7 +192,7 @@ class LitDevSearch extends LitElement {
192192
const searchIndexJson = await (await fetch('/searchIndex.json')).text();
193193

194194
// Minisearch intialization config must exactly match
195-
// `/lit-dev-tools/src/search/plugin.ts` Minisearch options.
195+
// `/lit-dev-tools-cjs/src/search/plugin.ts` Minisearch options.
196196
LitDevSearch.siteSearchIndex = Minisearch.loadJSON<UserFacingPageData>(
197197
searchIndexJson,
198198
{

packages/lit-dev-tools/package-lock.json renamed to packages/lit-dev-tools-cjs/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/lit-dev-tools/package.json renamed to packages/lit-dev-tools-cjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "lit-dev-tools",
2+
"name": "lit-dev-tools-cjs",
33
"private": true,
44
"version": "0.0.0",
55
"description": "Misc tools for lit.dev (CommonJS)",

0 commit comments

Comments
 (0)