chore: check powers.js
MODIFY
packages/compartment-mapper/src/powers.js
packages/compartment-mapper/src/powers.js
+// @ts-check
+/** @typedef {import('./types.js').ReadFn} ReadFn */
+/** @typedef {import('./types.js').CanonicalFn} CanonicalFn */
+/** @typedef {import('./types.js').ReadPowers} ReadPowers */
+
/** @type {CanonicalFn} */
const canonicalShim = async path => path;

MODIFY
packages/init/jsconfig.json
packages/init/jsconfig.json
"compilerOptions": {
"target": "esnext",
"module": "esnext",
+ "checkJs": true,
"noEmit": true,
"downlevelIteration": true,
"strictNullChecks": true,
- "moduleResolution": "node"
+ "moduleResolution": "node",
+ "types": [
+ "node"
+ ]
},
"include": [
"*.js",
"*.ts",
"src/**/*.js",
- "src/**/*.ts",
- "test/**/*.js",
- "test/**/*.ts"
+ "src/**/*.ts"
]
}

MODIFY
packages/init/package.json
packages/init/package.json
},
"scripts": {
"build": "exit 0",
+ "prepack": "tsc --build jsconfig.build.json",
+ "postpack": "git clean -f '*.d.ts*'",
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",

chore: check powers.js