Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikiwanekhyland committed Jun 28, 2024
1 parent fd3388d commit 5148c4a
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 1,233 deletions.
1,229 changes: 0 additions & 1,229 deletions angular.json

This file was deleted.

2 changes: 1 addition & 1 deletion lib/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"target": "es2018",
"lib": ["es2018", "dom"],
"baseUrl": ".",
"typeRoots": ["node_modules/@types"],
"typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ],
"types": ["node"],
"paths": {
"@alfresco/js-api": ["../../dist/libs/js-api"],
Expand Down
1 change: 1 addition & 0 deletions lib/eslint-angular/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"outputPath": "dist/libs/eslint-plugin-eslint-angular",
"main": "lib/eslint-angular/index.ts",
"generatePackageJson": true,
"isolatedConfig": false,
"tsConfig": "lib/eslint-angular/tsconfig.lib.prod.json",
"stylePreprocessorOptions": {
"includePaths": ["lib", "lib/core/src/lib"]
Expand Down
76 changes: 76 additions & 0 deletions lib/js-api/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"name": "js-api",
"projectType": "library",
"sourceRoot": "lib/js-api/src",
"root": "lib/js-api",
"targets": {
"build": {
"executor": "nx:run-commands",
"options": {
"command": "npm run js_api_build"
},
"configurations": {
"production": {}
},
"defaultConfiguration": "production"
},
"bundle": {
"executor": "nx:run-commands",
"options": {
"commands": [
{
"command": "echo cli bundle created"
}
]
},
"dependsOn": [
"copyToNodeModules"
]
},
"copyToNodeModules": {
"executor": "nx:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ./node_modules/@alfresco/js-api/ && mkdir -p ./node_modules/@alfresco/js-api/ && cp -R ./dist/libs/js-api/* ./node_modules/@alfresco/js-api/"
}
]
},
"dependsOn": [
{
"projects": "self",
"target": "build"
}
]
},
"test": {
"executor": "nx:run-commands",
"options": {
"commands": ["TS_NODE_PROJECT=lib/js-api/test/tsconfig.json mocha --full-trace --config lib/js-api/.mocharc.json"]
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"lib/js-api/**/*.ts"
]
}
},
"npm-publish": {
"executor": "nx:run-commands",
"dependsOn": [
"build"
],
"options": {
"cwd": "dist/libs/js-api",
"commands": [
{
"command": "npm publish --tag {args.tag}",
"forwardAllArgs": true
}
]
}
}
}
}
2 changes: 1 addition & 1 deletion lib/js-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"target": "es2015",
"outDir": "./.out",
"lib": ["es2018", "dom"],
"typeRoots": ["node_modules/@types"],
"typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ],
"types": []
},
"exclude": [".history", "*/node_modules", "config", "performance", "coverage", "node_modules", "package", "dist", "test"]
Expand Down
1 change: 1 addition & 0 deletions lib/testing/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"main": "lib/testing/index.ts",
"generatePackageJson": true,
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
"isolatedConfig": false,
"stylePreprocessorOptions": {
"includePaths": ["lib", "lib/core/src/lib"]
},
Expand Down
2 changes: 1 addition & 1 deletion tools/doc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"noUnusedLocals": true,
"target": "es5",
"types": ["node", "@paperist/types-remark"],
"typeRoots": ["./node_modules/@types"],
"typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ],
"lib": ["es2018", "dom"]
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"target": "es2015",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"typeRoots": ["node_modules/@types"],
"typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ],
"types": ["jasmine", "node", "jasminewd2"],
"lib": ["es2018", "esnext.array", "esnext.asynciterable", "dom"],
"paths": {
Expand Down

0 comments on commit 5148c4a

Please sign in to comment.