mirror of
https://github.com/bitwarden/browser
synced 2026-02-05 03:03:26 +00:00
- Add 'rootDir: libs/LIBRARY_NAME/src' to all @nx/js:tsc executor build options - Update package.json main/types from 'dist/index.js' to 'index.js' for all libraries - Fixes systematic bug where build output had nested src/ structure but package.json pointed to non-existent dist/ paths - Affects all Tier 1-3 libraries: storage-core, guid, serialization, user-core, logging, client-type, messaging, messaging-internal, state, state-internal, core-test-utils, storage-test-utils, state-test-utils, assets, nx-plugin - Resolves 'Cannot find module' TypeScript errors for library imports - Implements Phase 2 systematic fix from rootDir configuration specification
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"name": "nx-plugin",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "libs/nx-plugin/src",
|
|
"projectType": "library",
|
|
"tags": [],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/js:tsc",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/libs/nx-plugin",
|
|
"main": "libs/nx-plugin/src/index.ts",
|
|
"tsConfig": "libs/nx-plugin/tsconfig.lib.json",
|
|
"assets": [
|
|
"libs/nx-plugin/*.md",
|
|
{
|
|
"input": "./libs/nx-plugin/src",
|
|
"glob": "**/!(*.ts)",
|
|
"output": "./src"
|
|
},
|
|
{
|
|
"input": "./libs/nx-plugin/src",
|
|
"glob": "**/*.d.ts",
|
|
"output": "./src"
|
|
},
|
|
{
|
|
"input": "./libs/nx-plugin",
|
|
"glob": "generators.json",
|
|
"output": "."
|
|
},
|
|
{
|
|
"input": "./libs/nx-plugin",
|
|
"glob": "executors.json",
|
|
"output": "."
|
|
}
|
|
],
|
|
"rootDir": "libs/nx-plugin/src"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint"
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "libs/nx-plugin/jest.config.ts"
|
|
}
|
|
}
|
|
}
|
|
}
|