Skip to content

Commit

Permalink
Merge pull request #1470 from glimmerjs/fix-npm-package-contents
Browse files Browse the repository at this point in the history
Fix the package contents of each package, only publishing dist
  • Loading branch information
NullVoxPopuli authored Oct 27, 2023
2 parents e0c0ae0 + 8302817 commit f008604
Show file tree
Hide file tree
Showing 23 changed files with 86 additions and 39 deletions.
6 changes: 3 additions & 3 deletions packages/@glimmer-workspace/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-regexp": "^1.15.0",
"eslint-plugin-qunit": "^7.3.4",
"eslint-plugin-regexp": "^1.15.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^2.0.0"
},
"peerDependencies": {
"eslint": "^8.40.0"
},
"devDependencies": {
"eslint": "^8.40.0",
"@types/eslint": "^8.37.0"
"@types/eslint": "^8.37.0",
"eslint": "^8.40.0"
}
}
4 changes: 4 additions & 0 deletions packages/@glimmer/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ module.exports = {
},
plugins: ['@glimmer-workspace'],
extends: ['plugin:@glimmer-workspace/recommended'],
rules: {
// We don't publish source, we build to a dist directory
'n/no-unpublished-import': ['off'],
},
},
// QUnit is a weird package, and there are some issues open about fixing it
// - https://github.com/qunitjs/qunit/issues/1729
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"engines": {
"node": ">= 16.0.0"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"types": "./index.ts",
"development": "./index.ts"
},
"files": [
"dist"
],
"publishConfig": {
"access": "public",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/destroyable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"license": "MIT",
"main": "index.ts",
"types": "index.ts",
"files": [
"dist"
],
"publishConfig": {
"access": "public",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/dom-change-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"dependencies": {
"@glimmer/util": "workspace:^",
"@glimmer/interfaces": "workspace:^"
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/encoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"dependencies": {
"@glimmer/interfaces": "workspace:^",
"@glimmer/vm": "workspace:^"
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/global-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/global-context",
"main": "index.ts",
"types": "index.ts",
"files": [
"dist"
],
"publishConfig": {
"access": "public",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"exports": {
"types": "./index.d.ts"
},
"files": [
"dist"
],
"scripts": {
"test:lint": "eslint .",
"test:types": "tsc --noEmit -p ../tsconfig.json"
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"@glimmer/util": "workspace:^",
"@glimmer/validator": "workspace:^"
},
"files": [
"dist"
],
"devDependencies": {
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^"
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"@glimmer/util": "workspace:^",
"@simple-dom/document": "^1.4.0"
},
"files": [
"dist"
],
"devDependencies": {
"@types/qunit": "^2.19.7",
"@glimmer/compiler": "workspace:^",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/opcode-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"@glimmer/vm": "workspace:^",
"@glimmer/wire-format": "workspace:^"
},
"files": [
"dist"
],
"devDependencies": {
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^"
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/owner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"dependencies": {
"@glimmer/util": "workspace:^"
},
"files": [
"dist"
],
"devDependencies": {
"@glimmer/local-debug-flags": "workspace:^",
"@glimmer-workspace/build-support": "workspace:^"
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/program/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"type": "module",
"version": "0.85.3",
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/program",
"files": [
"dist"
],
"dependencies": {
"@glimmer/env": "0.1.7",
"@glimmer/util": "workspace:^",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/reference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"url": "https://github.com/glimmerjs/glimmer-vm.git",
"directory": "packages/@glimmer/reference"
},
"files": [
"dist"
],
"dependencies": {
"@glimmer/env": "^0.1.7",
"@glimmer/global-context": "workspace:^",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/runtime",
"license": "MIT",
"main": "index.ts",
"files": [
"dist"
],
"publishConfig": {
"access": "public",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/syntax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"@types/qunit": "^2.19.7",
"@glimmer-workspace/build-support": "workspace:^"
},
"files": [
"dist"
],
"scripts": {
"test:lint": "eslint .",
"test:types": "tsc --noEmit -p ../tsconfig.json",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"@glimmer/env": "0.1.7",
"@glimmer/interfaces": "workspace:^"
},
"files": [
"dist"
],
"devDependencies": {
"@glimmer/local-debug-flags": "workspace:^",
"@types/qunit": "^2.19.7",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"url": "https://github.com/glimmerjs/glimmer-vm",
"directory": "packages/@glimmer/validator"
},
"files": [
"dist"
],
"dependencies": {
"@glimmer/env": "^0.1.7",
"@glimmer/global-context": "workspace:^",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/vm-babel-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"engines": {
"node": ">=16"
},
"files": [
"dist"
],
"scripts": {
"test": "mocha",
"test:lint": "eslint .",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/vm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"@glimmer/interfaces": "workspace:^"
},
"types": "index.ts",
"files": [
"dist"
],
"scripts": {
"test:lint": "eslint .",
"test:types": "tsc --noEmit -p ../tsconfig.json",
Expand Down
3 changes: 3 additions & 0 deletions packages/@glimmer/wire-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"@glimmer/util": "workspace:^",
"@glimmer/interfaces": "workspace:^"
},
"files": [
"dist"
],
"scripts": {
"test:lint": "eslint .",
"test:types": "tsc --noEmit -p ../tsconfig.json",
Expand Down
Loading

0 comments on commit f008604

Please sign in to comment.