Skip to content

Commit

Permalink
Apply formatting to JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed May 30, 2024
1 parent 01d439e commit d4c6885
Show file tree
Hide file tree
Showing 13 changed files with 157 additions and 163 deletions.
50 changes: 28 additions & 22 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"quoteStyle": "single",
"semicolons": "always",
"trailingComma": "none"
}
}
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"quoteStyle": "single",
"semicolons": "always",
"trailingComma": "none"
}
},
"json": {
"formatter": {
"indentStyle": "space",
"indentWidth": 2
}
}
}
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "@titaniumlib/monorepo",
"private": true,
"type": "module",
"scripts": {
"build": "turbo run build",
"check": "biome check --apply .",
"coverage": "vitest run --coverage",
"lint": "biome lint --apply .",
"test": "vitest"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@types/node": "20.12.13",
"@vitest/coverage-v8": "1.6.0",
"turbo": "1.13.3",
"typescript": "5.4.5",
"vitest": "1.6.0"
}
"name": "@titaniumlib/monorepo",
"private": true,
"type": "module",
"scripts": {
"build": "turbo run build",
"check": "biome check --apply .",
"coverage": "vitest run --coverage",
"lint": "biome lint --apply .",
"test": "vitest"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@types/node": "20.12.13",
"@vitest/coverage-v8": "1.6.0",
"turbo": "1.13.3",
"typescript": "5.4.5",
"vitest": "1.6.0"
}
}
26 changes: 13 additions & 13 deletions packages/android/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"private": true,
"name": "@titaniumlib/android",
"type": "module",
"exports": {
".": "./dist/index.js",
"./types": "./dist/types/index.d.ts"
},
"scripts": {
"build": "tsc"
},
"devDependencies": {
"typescript": "5.4.5"
}
"private": true,
"name": "@titaniumlib/android",
"type": "module",
"exports": {
".": "./dist/index.js",
"./types": "./dist/types/index.d.ts"
},
"scripts": {
"build": "tsc"
},
"devDependencies": {
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/android/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"lib": [ "esnext" ],
"lib": ["esnext"],
"module": "nodenext",
"moduleResolution": "nodenext",
"noImplicitAny": false,
Expand Down
26 changes: 13 additions & 13 deletions packages/ios/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"private": true,
"name": "@titaniumlib/ios",
"type": "module",
"exports": {
".": "./dist/index.js",
"./types": "./dist/types/index.d.ts"
},
"scripts": {
"build": "tsc"
},
"devDependencies": {
"typescript": "5.4.5"
}
"private": true,
"name": "@titaniumlib/ios",
"type": "module",
"exports": {
".": "./dist/index.js",
"./types": "./dist/types/index.d.ts"
},
"scripts": {
"build": "tsc"
},
"devDependencies": {
"typescript": "5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/ios/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"lib": [ "esnext" ],
"lib": ["esnext"],
"module": "nodenext",
"moduleResolution": "nodenext",
"noImplicitAny": false,
Expand Down
83 changes: 40 additions & 43 deletions public/package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
{
"name": "titaniumlib",
"version": "4.0.0",
"description": "The Node.js library for Titanium SDK",
"type": "module",
"exports": {
".": "./dist/index.js",
"./android": "./dist/android/index.js",
"./ios": "./dist/ios/index.js",
"./types": "./dist/types/index.d.ts"
},
"author": "TiDev, Inc. <[email protected]>",
"license": "Apache-2.0",
"keywords": [
"titanium",
"tidev"
],
"scripts": {
"build": "rimraf dist && pnpm build:bundle && pnpm build:types",
"build:bundle": "rollup -c rollup.config.ts --configPlugin typescript",
"build:types": "pnpm build:types:temp && pnpm build:types:roll && pnpm build:types:check",
"build:types:temp": "tsc --emitDeclarationOnly --outDir temp --project tsconfig.build.json",
"build:types:roll": "rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp",
"build:types:check": "tsc --project tsconfig.check.json",
"prepublishOnly": "pnpm run build"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-typescript": "11.1.6",
"@titaniumlib/android": "workspace:*",
"@titaniumlib/ios": "workspace:*",
"esbuild": "0.21.4",
"rimraf": "5.0.7",
"rollup": "4.18.0",
"rollup-plugin-dts": "6.1.1",
"rollup-plugin-esbuild": "6.1.1",
"tslib": "2.6.2",
"typescript": "5.4.5"
},
"bugs": "https://github.com/tidev/titaniumlib/issues",
"repository": "https://github.com/tidev/titaniumlib",
"engines": {
"node": ">=18.17"
}
"name": "titaniumlib",
"version": "4.0.0",
"description": "The Node.js library for Titanium SDK",
"type": "module",
"exports": {
".": "./dist/index.js",
"./android": "./dist/android/index.js",
"./ios": "./dist/ios/index.js",
"./types": "./dist/types/index.d.ts"
},
"author": "TiDev, Inc. <[email protected]>",
"license": "Apache-2.0",
"keywords": ["titanium", "tidev"],
"scripts": {
"build": "rimraf dist && pnpm build:bundle && pnpm build:types",
"build:bundle": "rollup -c rollup.config.ts --configPlugin typescript",
"build:types": "pnpm build:types:temp && pnpm build:types:roll && pnpm build:types:check",
"build:types:temp": "tsc --emitDeclarationOnly --outDir temp --project tsconfig.build.json",
"build:types:roll": "rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp",
"build:types:check": "tsc --project tsconfig.check.json",
"prepublishOnly": "pnpm run build"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-typescript": "11.1.6",
"@titaniumlib/android": "workspace:*",
"@titaniumlib/ios": "workspace:*",
"esbuild": "0.21.4",
"rimraf": "5.0.7",
"rollup": "4.18.0",
"rollup-plugin-dts": "6.1.1",
"rollup-plugin-esbuild": "6.1.1",
"tslib": "2.6.2",
"typescript": "5.4.5"
},
"bugs": "https://github.com/tidev/titaniumlib/issues",
"repository": "https://github.com/tidev/titaniumlib",
"engines": {
"node": ">=18.17"
}
}
60 changes: 30 additions & 30 deletions public/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
import { defineConfig } from 'rollup';
import typescript from '@rollup/plugin-typescript';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import { defineConfig } from 'rollup';
import { minify as esbuildMinifyPlugin } from 'rollup-plugin-esbuild';

export default defineConfig([
{
input: {
'index': 'src/index.ts',
'android/index': 'src/android/index.ts',
'ios/index': 'src/ios/index.ts'
},
output: {
dir: './dist',
externalLiveBindings: false,
format: 'es',
freeze: false,
sourcemap: true
},
plugins: [
nodeResolve({ preferBuiltins: true }),
esbuildMinifyPlugin({
minify: true,
minifySyntax: true
}),
typescript({
declaration: false,
outDir: './dist',
rootDir: './src',
sourceMap: true,
tsconfig: './tsconfig.build.json'
}),
]
}
{
input: {
index: 'src/index.ts',
'android/index': 'src/android/index.ts',
'ios/index': 'src/ios/index.ts'
},
output: {
dir: './dist',
externalLiveBindings: false,
format: 'es',
freeze: false,
sourcemap: true
},
plugins: [
nodeResolve({ preferBuiltins: true }),
esbuildMinifyPlugin({
minify: true,
minifySyntax: true
}),
typescript({
declaration: false,
outDir: './dist',
rootDir: './src',
sourceMap: true,
tsconfig: './tsconfig.build.json'
})
]
}
]);
18 changes: 8 additions & 10 deletions public/rollup.dts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import { defineConfig } from 'rollup';
import { dts } from 'rollup-plugin-dts';

export default defineConfig([
{
input: './temp/index.d.ts',
output: {
file: './dist/index.d.ts',
format: 'es',
},
plugins: [
dts()
]
}
{
input: './temp/index.d.ts',
output: {
file: './dist/index.d.ts',
format: 'es'
},
plugins: [dts()]
}
]);
2 changes: 1 addition & 1 deletion public/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"lib": [ "esnext" ],
"lib": ["esnext"],
"module": "esnext",
"moduleResolution": "Bundler",
"noImplicitAny": false,
Expand Down
6 changes: 2 additions & 4 deletions public/tsconfig.check.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"lib": [ "esnext" ],
"lib": ["esnext"],
"module": "nodenext",
"moduleResolution": "nodenext",
"noEmit": true,
Expand All @@ -20,7 +20,5 @@
"strict": true,
"target": "esnext"
},
"include": [
"dist/**/*"
]
"include": ["dist/**/*"]
}
5 changes: 1 addition & 4 deletions public/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"declaration": false,
"esModuleInterop": true
},
"include": [
"./rollup.config.ts",
"./rollup.dts.config.ts"
]
"include": ["./rollup.config.ts", "./rollup.dts.config.ts"]
}
4 changes: 1 addition & 3 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"package.json"
],
"globalDependencies": ["package.json"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
Expand Down

0 comments on commit d4c6885

Please sign in to comment.