Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 12, 2024
1 parent dfbfebc commit e743f33
Show file tree
Hide file tree
Showing 8 changed files with 197 additions and 173 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
3 changes: 0 additions & 3 deletions apps/showcase/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
}
},
"angularCompilerOptions": {
"disableTypeScriptVersionCheck": true,
"fullTemplateTypeCheck": false,
"annotateForClosureCompiler": false,
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": false,
"strictInputAccessModifiers": false,
Expand Down
20 changes: 14 additions & 6 deletions apps/showcase/tsconfig.server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
{
"extends": "./tsconfig.app.json",
"compilerOptions": {
"outDir": "./out-tsc/server",
"types": ["node"],
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
"outDir": "./out-tsc/server",
"types": [
"node"
],
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
},
"files": ["src/main.server.ts", "server.ts"]
}
"files": [
"src/main.server.ts",
"server.ts",
],
"paths": {
"primeng/*": ["../../packages/primeng/src/*/public_api"]
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"build:apidoc": "pnpm --filter themes build:tokens && pnpm --filter showcase build:apidoc",
"dev": "pnpm --filter showcase start",
"security:check": "pnpm audit --prod --audit-level high",
"format": "prettier --write \"**/*.{js,mjs,ts,mts,d.ts,json,html}\" --cache",
"format:check": "prettier --check \"**/*.{js,mjs,ts,mts,d.ts,json,html}\"",
"format": "prettier --write \"**/*.{js,mjs,ts,mts,d.ts,html}\" --cache",
"format:check": "prettier --check \"**/*.{js,mjs,ts,mts,d.ts,html}\"",
"lint": "eslint --ext \".js,.mjs,.ts,.mts\" --ignore-path .gitignore . --cache",
"lint:fix": "eslint --fix --ext \".js,.mjs,.ts,.mts\" --ignore-path .gitignore .",
"test:unit": "pnpm --filter primeng test:unit"
Expand Down Expand Up @@ -75,6 +75,6 @@
"node": ">=12.11.0"
},
"lint-staged": {
"**/*.{js,mjs,ts,mts,d.ts,json,html}": ["prettier --write"]
"**/*.{js,mjs,ts,mts,d.ts,html}": ["prettier --write"]
}
}
13 changes: 11 additions & 2 deletions packages/primeng/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@
"bugs": {
"url": "https://github.com/primefaces/primeng/issues"
},
"keywords": ["primeng", "angular", "ui library", "component library", "material", "bootstrap", "fluent", "tailwind"],
"keywords": [
"primeng",
"angular",
"ui library",
"component library",
"material",
"bootstrap",
"fluent",
"tailwind"
],
"main": "./src/index.js",
"module": "./src/index.js",
"types": "./src/index.d.ts",
Expand Down Expand Up @@ -72,4 +81,4 @@
"engines": {
"node": ">=12.11.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
"engines": {
"node": ">=12.11.0"
}
}
}
321 changes: 165 additions & 156 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions scripts/build-helper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function updatePackageJson(localPackageJson, callback) {

callback?.(pkg);

fs.writeFileSync(localPackageJson, JSON.stringify(pkg, null, 4) + '\n', { encoding: 'utf8' });
fs.writeFileSync(localPackageJson, JSON.stringify(pkg, null, 4), { encoding: 'utf8' });
}

export function createPackageJson_For_NG_Packager(localPackageJson, INPUT_PATH, callback) {
Expand Down Expand Up @@ -78,7 +78,7 @@ export function clearPackageJson(localPackageJson, callback) {

callback?.(pkg);

fs.writeFileSync(localPackageJson, JSON.stringify(pkg, null, 4) + '\n', { encoding: 'utf8' });
fs.writeFileSync(localPackageJson, JSON.stringify(pkg, null, 4), { encoding: 'utf8' });
}

export function copyDependencies(inFolder, outFolder, subFolder) {
Expand Down

0 comments on commit e743f33

Please sign in to comment.