Skip to content

Commit 48435a3

Browse files
Don't build @glimmer/debug, as no package should be using it during publish-time (#1625)
* Don't build @glimmer/debug, as no package should be using it during publish-time * Fix lints * Fix types * Fix lints * Re-add @glimmer/debug, but as a devDep * Remove publint from @glimmer/debug * Rename lintfix to lint:fix * test:types
1 parent f1108ef commit 48435a3

File tree

8 files changed

+31
-28
lines changed

8 files changed

+31
-28
lines changed

.eslintrc.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module.exports = {
2828
'import/parsers': {
2929
'@typescript-eslint/parser': ['.js', '.cjs', '.mjs', '.mts', '.ts', '.d.ts'],
3030
},
31+
'import/core-modules': ['@glimmer/debug'],
3132
'import/resolver': {
3233
typescript: {},
3334
},

bin/run-types-tests.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import { fileURLToPath } from 'url';
99
const __dirname = fileURLToPath(new URL('.', import.meta.url));
1010
const root = resolve(__dirname, '..');
1111

12+
const PACKAGES_WITH_NO_PUBLISHED_TYPES = new Set(['@glimmer/vm-babel-plugins', '@glimmer/debug']);
13+
1214
async function main() {
13-
const packages = getPackages().filter((pkg) => pkg.name !== '@glimmer/vm-babel-plugins');
15+
const packages = getPackages().filter((pkg) => !PACKAGES_WITH_NO_PUBLISHED_TYPES.has(pkg.name));
1416

1517
/**
1618
* Runs a smoke test of the generated type definitions by importing every module

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"link:all": "esyes ./bin/link-all.mts",
2525
"lint": "npm-run-all lint:*",
2626
"lint:files": "turbo lint",
27+
"lint:fix": "pnpm turbo test:lint -- --fix && prettier -w .",
2728
"lint:format": "prettier -c .",
2829
"lint:types": "tsc -b",
29-
"lintfix": "pnpm turbo test:lint -- --fix && prettier -w .",
3030
"start": "vite",
3131
"test": "node bin/run-tests.mjs",
3232
"test:babel-plugins": "yarn workspace @glimmer/vm-babel-plugins test",

packages/@glimmer/debug/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
"dist"
3131
],
3232
"scripts": {
33-
"build": "rollup -c rollup.config.mjs",
3433
"test:lint": "eslint .",
35-
"test:publint": "publint",
3634
"test:types": "tsc --noEmit -p ../tsconfig.json"
3735
},
3836
"dependencies": {

packages/@glimmer/manager/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"test:types": "tsc --noEmit -p ../tsconfig.json"
3434
},
3535
"dependencies": {
36-
"@glimmer/debug": "workspace:*",
3736
"@glimmer/destroyable": "workspace:*",
3837
"@glimmer/env": "0.1.7",
3938
"@glimmer/global-context": "workspace:*",
@@ -45,6 +44,7 @@
4544
},
4645
"devDependencies": {
4746
"@glimmer-workspace/build-support": "workspace:*",
47+
"@glimmer/debug": "workspace:*",
4848
"@glimmer/local-debug-flags": "workspace:*",
4949
"eslint": "^8.52.0",
5050
"publint": "^0.2.5",

packages/@glimmer/opcode-compiler/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"test:types": "tsc --noEmit -p ../tsconfig.json"
3434
},
3535
"dependencies": {
36-
"@glimmer/debug": "workspace:*",
3736
"@glimmer/encoder": "workspace:*",
3837
"@glimmer/env": "0.1.7",
3938
"@glimmer/global-context": "workspace:*",
@@ -46,6 +45,7 @@
4645
},
4746
"devDependencies": {
4847
"@glimmer-workspace/build-support": "workspace:*",
48+
"@glimmer/debug": "workspace:*",
4949
"@glimmer/local-debug-flags": "workspace:*",
5050
"eslint": "^8.52.0",
5151
"publint": "^0.2.5",

packages/@glimmer/syntax/test/plugin-node-test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ test('deprecated program visitor', (assert) => {
4848
return {
4949
name: 'plugin',
5050
visitor: {
51+
// eslint-disable-next-line deprecation/deprecation
5152
Program(node: AST.Program) {
5253
assert.step(node.type);
5354
},

pnpm-lock.yaml

+23-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)