Skip to content

Commit c02a02e

Browse files
authored
build(docs-utils): expose types from built package (#2948)
1 parent 21acdca commit c02a02e

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

libs/docs-utils/.eslintrc.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
extends: '../../.eslintrc.js',
3+
ignorePatterns: [
4+
'!**/*'
5+
],
6+
overrides: [
7+
{
8+
files: [
9+
'*.ts'
10+
],
11+
parserOptions: {
12+
project: [
13+
'tsconfig.json',
14+
'tsconfig.spec.json'
15+
],
16+
createDefaultProgram: true
17+
},
18+
},
19+
{
20+
files: [
21+
'*.html'
22+
],
23+
rules: {}
24+
}
25+
]
26+
}

libs/docs-utils/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"nx": {
44
"targets": {
55
"build": {
6-
"outputs": ["{workspaceRoot}/dist/docs-utils"]
6+
"outputs": [
7+
"{workspaceRoot}/dist/docs-utils"
8+
]
79
}
810
}
911
},
@@ -14,7 +16,7 @@
1416
"build": "npm run clean && npm run build:bundle && npm run build:types && npm run build:copy-static",
1517
"build:types": "npx tsc --emitDeclarationOnly --declaration --project tsconfig.json",
1618
"build:bundle": "esbuild --outfile=../../dist/docs-utils/index.js --platform=node --bundle src/index.ts",
17-
"build:copy-static":"shx cp package.json README.md ../../dist/docs-utils",
19+
"build:copy-static": "shx cp package.json README.md ../../dist/docs-utils && shx cp -R ../../dist/docs-utils/src/* ../../dist/docs-utils",
1820
"clean": "rimraf ../../dist/docs-utils",
1921
"lint": "eslint .",
2022
"lint:fix": "eslint . --fix",

0 commit comments

Comments
 (0)