dsh-standards 1.0.3 → 1.1.2
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/40-checker/fixtures/bundle-patch-only/cordis.patch.yml +3 -0
- package/40-checker/fixtures/bundle-patch-only/package.json +12 -0
- package/40-checker/fixtures/c12-command-arg/index.mjs +7 -0
- package/40-checker/fixtures/c12-command-arg/package.json +10 -0
- package/40-checker/fixtures/c12-comment/index.mjs +3 -0
- package/40-checker/fixtures/c12-comment/package.json +10 -0
- package/40-checker/fixtures/c12-compare/index.mjs +3 -0
- package/40-checker/fixtures/c12-compare/package.json +10 -0
- package/40-checker/fixtures/c12-doc-string/index.mjs +13 -0
- package/40-checker/fixtures/c12-doc-string/package.json +10 -0
- package/40-checker/fixtures/c12-grant/index.mjs +3 -0
- package/40-checker/fixtures/c12-grant/package.json +10 -0
- package/40-checker/fixtures/c12-string/index.mjs +3 -0
- package/40-checker/fixtures/c12-string/package.json +10 -0
- package/40-checker/fixtures/declaration-file/index.d.ts +1 -0
- package/40-checker/fixtures/declaration-file/index.mjs +9 -0
- package/40-checker/fixtures/declaration-file/package.json +10 -0
- package/40-checker/fixtures/import-local-side-effect/index.mjs +11 -0
- package/40-checker/fixtures/import-local-side-effect/package.json +21 -0
- package/40-checker/fixtures/import-local-side-effect/side-effectful.mjs +5 -0
- package/40-checker/fixtures/import-open-readonly/index.mjs +14 -0
- package/40-checker/fixtures/import-open-readonly/package.json +19 -0
- package/40-checker/fixtures/import-package-only/index.mjs +11 -0
- package/40-checker/fixtures/import-package-only/package.json +21 -0
- package/40-checker/fixtures/import-parse-error/index.mjs +5 -0
- package/40-checker/fixtures/import-parse-error/package.json +10 -0
- package/40-checker/fixtures/import-side-effect/index.mjs +14 -0
- package/40-checker/fixtures/import-side-effect/package.json +19 -0
- package/40-checker/fixtures/import-side-effect-nonentry/index.mjs +9 -0
- package/40-checker/fixtures/import-side-effect-nonentry/package.json +19 -0
- package/40-checker/fixtures/import-side-effect-nonentry/selfcheck.mjs +8 -0
- package/40-checker/fixtures/import-void-main/index.mjs +16 -0
- package/40-checker/fixtures/import-void-main/package.json +19 -0
- package/40-checker/fixtures/no-source/package.json +19 -0
- package/40-checker/fixtures/parse-error-nonentry/index.mjs +2 -0
- package/40-checker/fixtures/parse-error-nonentry/package.json +10 -0
- package/40-checker/fixtures/parse-error-nonentry/references/broken.js +1 -0
- package/40-checker/src/cli.mjs +1 -1
- package/40-checker/src/declarations.mjs +514 -19
- package/40-checker/src/manifest.mjs +5 -0
- package/40-checker/test/checks.test.mjs +243 -1
- package/40-checker/vendor/babel/README.md +10 -0
- package/40-checker/vendor/babel/index.cjs +3 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.d.ts +41 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.js +286 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier-browser.js +62 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier.js +60 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.d.ts +28 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.js +27 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/package.json +45 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/LICENSE +19 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/README.md +19 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/bin/babel-parser.js +14 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.d.ts +1047 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.js +14612 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/package.json +57 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/typings/babel-parser.d.ts +636 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/LICENSE +22 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/README.md +19 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index-legacy.d.ts +2765 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.d.ts +3668 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js +10758 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js.flow +2618 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/package.json +38 -0
- package/CHANGELOG.md +46 -0
- package/package.json +2 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/bundle-patch-only",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
6
|
+
"dsh": {
|
|
7
|
+
"manifestVersion": 1,
|
|
8
|
+
"bundle": { "patch": "./cordis.patch.yml" },
|
|
9
|
+
"capabilities": [],
|
|
10
|
+
"labels": []
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process'
|
|
2
|
+
|
|
3
|
+
export const name = 'c12-command-arg'
|
|
4
|
+
export function apply() {}
|
|
5
|
+
|
|
6
|
+
// C-12.4: --add-dir is a real command-line argument here, not documentation.
|
|
7
|
+
spawnSync('dsh', ['agent', '--add-dir', './docs'], { stdio: 'inherit' })
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/c12-command-arg",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/c12-comment",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/c12-compare",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const name = 'c12-doc-string'
|
|
2
|
+
export function apply() {}
|
|
3
|
+
|
|
4
|
+
// Documentation, not a grant: the literals below are labels and help text.
|
|
5
|
+
const documentation = {
|
|
6
|
+
desc: 'danger-full-access',
|
|
7
|
+
description: '--add-dir',
|
|
8
|
+
help: 'danger-full-access',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
console.log('danger-full-access')
|
|
12
|
+
console.info('--add-dir')
|
|
13
|
+
console.warn(`mode: ${'danger-full-access'}`)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/c12-doc-string",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/c12-grant",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/c12-string",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function broken(: string
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const name = 'fixture-declaration-file'
|
|
2
|
+
export const inject = ['sessions']
|
|
3
|
+
export const provide = ['declaration-file']
|
|
4
|
+
|
|
5
|
+
export function apply(ctx) {
|
|
6
|
+
const sessions = ctx.sessions
|
|
7
|
+
ctx.provide('declaration-file', { hasSessions: Boolean(sessions) })
|
|
8
|
+
ctx.effect(() => () => {}, 'fixture.declaration-file.effect')
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/declaration-file",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": ["sessions:read"], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './side-effectful.mjs'
|
|
2
|
+
|
|
3
|
+
export const name = 'fixture-import-local-side-effect'
|
|
4
|
+
export const inject = ['sessions']
|
|
5
|
+
export const provide = ['import-local-side-effect']
|
|
6
|
+
|
|
7
|
+
export function apply(ctx) {
|
|
8
|
+
const sessions = ctx.sessions
|
|
9
|
+
ctx.provide('import-local-side-effect', { hasSessions: Boolean(sessions) })
|
|
10
|
+
ctx.effect(() => () => {}, 'fixture.import-local-side-effect.effect')
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/import-local-side-effect",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"dsh": ">=0.2.2-alpha.2 <0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"manifestVersion": 1,
|
|
15
|
+
"kind": "plugin",
|
|
16
|
+
"capabilities": [
|
|
17
|
+
"sessions:read"
|
|
18
|
+
],
|
|
19
|
+
"labels": []
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { openSync } from 'node:fs'
|
|
2
|
+
|
|
3
|
+
export const name = 'fixture-import-open-readonly'
|
|
4
|
+
export const inject = ['sessions']
|
|
5
|
+
export const provide = ['import-open-readonly']
|
|
6
|
+
|
|
7
|
+
export function apply(ctx) {
|
|
8
|
+
const sessions = ctx.sessions
|
|
9
|
+
ctx.provide('import-open-readonly', { hasSessions: Boolean(sessions) })
|
|
10
|
+
ctx.effect(() => () => {}, 'fixture.import-open-readonly.effect')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// C-10.4 is about fs *writes*; a read-only open is a different side effect.
|
|
14
|
+
openSync(new URL(import.meta.url), 'r')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/import-open-readonly",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"dsh": ">=0.2.2-alpha.2 <0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"manifestVersion": 1,
|
|
15
|
+
"kind": "plugin",
|
|
16
|
+
"capabilities": ["sessions:read"],
|
|
17
|
+
"labels": []
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import path from 'node:path'
|
|
2
|
+
|
|
3
|
+
export const name = 'fixture-import-package-only'
|
|
4
|
+
export const inject = ['sessions']
|
|
5
|
+
export const provide = ['import-package-only']
|
|
6
|
+
|
|
7
|
+
export function apply(ctx) {
|
|
8
|
+
const sessions = ctx.sessions
|
|
9
|
+
ctx.provide('import-package-only', { basename: path.basename('.'), hasSessions: Boolean(sessions) })
|
|
10
|
+
ctx.effect(() => () => {}, 'fixture.import-package-only.effect')
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/import-package-only",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"dsh": ">=0.2.2-alpha.2 <0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"manifestVersion": 1,
|
|
15
|
+
"kind": "plugin",
|
|
16
|
+
"capabilities": [
|
|
17
|
+
"sessions:read"
|
|
18
|
+
],
|
|
19
|
+
"labels": []
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/import-parse-error",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { writeFileSync } from 'node:fs'
|
|
2
|
+
|
|
3
|
+
export const name = 'fixture-import-side-effect'
|
|
4
|
+
export const inject = ['sessions']
|
|
5
|
+
export const provide = ['import-side-effect']
|
|
6
|
+
|
|
7
|
+
export function apply(ctx) {
|
|
8
|
+
const sessions = ctx.sessions
|
|
9
|
+
ctx.provide('import-side-effect', { hasSessions: Boolean(sessions) })
|
|
10
|
+
ctx.effect(() => () => {}, 'fixture.import-side-effect.effect')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// DSC-10.4: a module-scope fs mutation, executed on import.
|
|
14
|
+
writeFileSync('/tmp/dsh-fixture-import-side-effect.txt', 'x')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/import-side-effect",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"dsh": ">=0.2.2-alpha.2 <0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"manifestVersion": 1,
|
|
15
|
+
"kind": "plugin",
|
|
16
|
+
"capabilities": ["sessions:read"],
|
|
17
|
+
"labels": []
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const name = 'fixture-import-side-effect-nonentry'
|
|
2
|
+
export const inject = ['sessions']
|
|
3
|
+
export const provide = ['import-side-effect-nonentry']
|
|
4
|
+
|
|
5
|
+
export function apply(ctx) {
|
|
6
|
+
const sessions = ctx.sessions
|
|
7
|
+
ctx.provide('import-side-effect-nonentry', { hasSessions: Boolean(sessions) })
|
|
8
|
+
ctx.effect(() => () => {}, 'fixture.import-side-effect-nonentry.effect')
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/import-side-effect-nonentry",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"dsh": ">=0.2.2-alpha.2 <0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"manifestVersion": 1,
|
|
15
|
+
"kind": "plugin",
|
|
16
|
+
"capabilities": ["sessions:read"],
|
|
17
|
+
"labels": []
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Preflight helper shipped with the package, never imported by the entry module.
|
|
2
|
+
// A module-scope fs mutation here is not an entry import-time side effect (C-10.3).
|
|
3
|
+
import { mkdirSync } from 'node:fs'
|
|
4
|
+
|
|
5
|
+
mkdirSync('/tmp/dsh-fixture-selfcheck', { recursive: true })
|
|
6
|
+
|
|
7
|
+
// Same class of module-scope work, but still outside the entry module.
|
|
8
|
+
globalThis.__dshFixtureSelfcheck = true
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const name = 'fixture-import-void-main'
|
|
2
|
+
export const inject = ['sessions']
|
|
3
|
+
export const provide = ['import-void-main']
|
|
4
|
+
|
|
5
|
+
export function apply(ctx) {
|
|
6
|
+
const sessions = ctx.sessions
|
|
7
|
+
ctx.provide('import-void-main', { hasSessions: Boolean(sessions) })
|
|
8
|
+
ctx.effect(() => () => {}, 'fixture.import-void-main.effect')
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function main() {
|
|
12
|
+
return undefined
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// C-10.2: an immediate module-scope call, expressed as `void main()`.
|
|
16
|
+
void main()
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/import-void-main",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"dsh": ">=0.2.2-alpha.2 <0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"manifestVersion": 1,
|
|
15
|
+
"kind": "plugin",
|
|
16
|
+
"capabilities": ["sessions:read"],
|
|
17
|
+
"labels": []
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/no-source",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"dsh": ">=0.2.2-alpha.2 <0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"dsh": {
|
|
14
|
+
"manifestVersion": 1,
|
|
15
|
+
"kind": "plugin",
|
|
16
|
+
"capabilities": ["sessions:read"],
|
|
17
|
+
"labels": []
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsh-fixtures/parse-error-nonentry",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.mjs",
|
|
7
|
+
"exports": { ".": "./index.mjs" },
|
|
8
|
+
"engines": { "dsh": ">=0.2.2-alpha.2 <0.3.0" },
|
|
9
|
+
"dsh": { "manifestVersion": 1, "kind": "plugin", "capabilities": [], "labels": [] }
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const broken = {
|
package/40-checker/src/cli.mjs
CHANGED
|
@@ -273,7 +273,7 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
273
273
|
{ id: 'DSC-13', clause: 'C-13', layer: 'L0', result: 'ERROR', coverage: 'not-run', reason: 'manifest unavailable', details: [], evidence: [], method: 'M', advisory: false },
|
|
274
274
|
]
|
|
275
275
|
const declarationAdjusted = declarationChecks.map(item => (item.result === 'WARN' && ['DSC-11', 'DSC-13'].includes(item.id) ? { ...item, advisory: true } : item))
|
|
276
|
-
const advisoryChecks = [checkImportTimeAdvisory(sources)]
|
|
276
|
+
const advisoryChecks = [checkImportTimeAdvisory(sources, entry?.relative)]
|
|
277
277
|
|
|
278
278
|
if (options.scope === 'entry' && options.entryRuntime === 'server-entry' && kind !== 'plugin') options.treatAsPlugin = true
|
|
279
279
|
let runtimeKind = kind
|