@backstage/cli 0.0.0-nightly-20220429024638 → 0.0.0-nightly-20220502025029

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @backstage/cli
2
2
 
3
- ## 0.0.0-nightly-20220429024638
3
+ ## 0.0.0-nightly-20220502025029
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 52fb9920ac: Fixed coverage configuration when using `BACKSTAGE_NEXT_TESTS`.
8
+ - 6cd1f50ae1: Extended lint rule to prevents imports of stories or tests from production code.
7
9
  - 97cce67ac7: Add instructions to `create-github-app` command.
8
10
  - 08e12a3a14: Add package global-agent to support behind a proxy for backstage-cli commands like versions:bump.
9
11
  - 4d8736eded: Changed Rollup configuration for TypeScript definition plugin to ignore `css`,
@@ -12,7 +14,7 @@
12
14
  - 344ea56acc: Bump `commander` to version 9.1.0
13
15
  - 8ab2a8226b: Updated the `create-github-app` command to throw an error if the organization argument is a user or a non existing organization.
14
16
  - Updated dependencies
15
- - @backstage/config-loader@0.0.0-nightly-20220429024638
17
+ - @backstage/config-loader@0.0.0-nightly-20220502025029
16
18
 
17
19
  ## 0.17.1-next.0
18
20
 
@@ -130,8 +130,14 @@ function createConfig(dir, extraConfig = {}) {
130
130
  ...(restrictedImports ?? []),
131
131
  ...(restrictedSrcImports ?? []),
132
132
  ],
133
- // Avoid cross-package imports
134
- patterns: ['**/../../**/*/src/**', '**/../../**/*/src'],
133
+ patterns: [
134
+ // Avoid cross-package imports
135
+ '**/../../**/*/src/**',
136
+ '**/../../**/*/src',
137
+ // Prevent imports of stories or tests
138
+ '*.stories*',
139
+ '*.test*',
140
+ ],
135
141
  },
136
142
  ],
137
143
 
package/config/jest.js CHANGED
@@ -123,7 +123,7 @@ async function getProjectConfig(targetPath, displayName) {
123
123
  ...(displayName && { displayName }),
124
124
  rootDir: path.resolve(targetPath, 'src'),
125
125
  coverageDirectory: path.resolve(targetPath, 'coverage'),
126
- coverageProvider: envOptions.nextTests ? undefined : 'v8',
126
+ coverageProvider: envOptions.nextTests ? 'babel' : 'v8',
127
127
  collectCoverageFrom: ['**/*.{js,jsx,ts,tsx,mjs,cjs}', '!**/*.d.ts'],
128
128
  moduleNameMapper: {
129
129
  '\\.(css|less|scss|sss|styl)$': require.resolve('jest-css-modules'),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/cli",
3
3
  "description": "CLI for developing Backstage plugins and apps",
4
- "version": "0.0.0-nightly-20220429024638",
4
+ "version": "0.0.0-nightly-20220502025029",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@backstage/cli-common": "^0.1.8",
35
35
  "@backstage/config": "^1.0.0",
36
- "@backstage/config-loader": "^0.0.0-nightly-20220429024638",
36
+ "@backstage/config-loader": "^0.0.0-nightly-20220502025029",
37
37
  "@backstage/errors": "^1.0.0",
38
38
  "@backstage/release-manifests": "^0.0.2",
39
39
  "@backstage/types": "^1.0.0",
@@ -125,13 +125,13 @@
125
125
  "zod": "^3.11.6"
126
126
  },
127
127
  "devDependencies": {
128
- "@backstage/backend-common": "^0.0.0-nightly-20220429024638",
128
+ "@backstage/backend-common": "^0.0.0-nightly-20220502025029",
129
129
  "@backstage/config": "^1.0.0",
130
130
  "@backstage/core-app-api": "^1.0.1",
131
131
  "@backstage/core-components": "^0.9.3",
132
- "@backstage/core-plugin-api": "^0.0.0-nightly-20220429024638",
133
- "@backstage/dev-utils": "^0.0.0-nightly-20220429024638",
134
- "@backstage/test-utils": "^0.0.0-nightly-20220429024638",
132
+ "@backstage/core-plugin-api": "^0.0.0-nightly-20220502025029",
133
+ "@backstage/dev-utils": "^0.0.0-nightly-20220502025029",
134
+ "@backstage/test-utils": "^0.0.0-nightly-20220502025029",
135
135
  "@backstage/theme": "^0.2.15",
136
136
  "@types/diff": "^5.0.0",
137
137
  "@types/express": "^4.17.6",