chore: update check and build scripts

This commit is contained in:
Ayo 2022-11-10 19:03:45 +01:00
parent d407f0e379
commit 6b96cd1e34
14 changed files with 40 additions and 20 deletions

View file

@ -26,6 +26,6 @@ jobs:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: "npm" cache: "npm"
- run: npm ci - run: npm ci
- run: npm run build - run: npm run check
- run: npm run test - run: npm run test
- run: npm run lint - run: npm run lint

View file

@ -8,14 +8,15 @@
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
"build": "astro check && astro build", "check": "astro check && tsc --noEmit && astro build",
"build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astro-reactive/form": "file:packages/form", "@astro-reactive/form": "file:packages/form",
"@astro-reactive/validator": "file:packages/validator", "@astro-reactive/validator": "file:packages/validator",
"astro": "^1.5.0" "astro": "^1.6.5"
}, },
"main": "index.js", "main": "index.js",
"repository": { "repository": {

View file

@ -1,3 +1,6 @@
{ {
"extends": "astro/tsconfigs/strictest" "extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"skipLibCheck": true
}
} }

View file

@ -7,8 +7,8 @@
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
"docs": "astro dev", "docs": "astro dev",
"check": "astro check && tsc", "check": "astro check && tsc --noEmit && astro build",
"build": "astro check && astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"
}, },

View file

@ -6,7 +6,8 @@
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
"landing-page": "astro dev", "landing-page": "astro dev",
"build": "astro check && astro build", "check": "astro check && tsc --noEmit && astro build",
"build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro", "astro": "astro",
"format": "prettier --write .", "format": "prettier --write .",

View file

@ -15,6 +15,7 @@
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"~/*": ["src/*"] "~/*": ["src/*"]
} },
"skipLibCheck": true
} }
} }

16
package-lock.json generated
View file

@ -27,7 +27,7 @@
"dependencies": { "dependencies": {
"@astro-reactive/form": "file:packages/form", "@astro-reactive/form": "file:packages/form",
"@astro-reactive/validator": "file:packages/validator", "@astro-reactive/validator": "file:packages/validator",
"astro": "^1.5.0" "astro": "^1.6.5"
} }
}, },
"apps/demo/node_modules/@astro-reactive/form": { "apps/demo/node_modules/@astro-reactive/form": {
@ -1753,9 +1753,9 @@
} }
}, },
"node_modules/astro": { "node_modules/astro": {
"version": "1.6.2", "version": "1.6.5",
"resolved": "https://registry.npmjs.org/astro/-/astro-1.6.2.tgz", "resolved": "https://registry.npmjs.org/astro/-/astro-1.6.5.tgz",
"integrity": "sha512-UHbzQ3Q7iU2a0XBY6Dzh/Hksoa7svmkWZ3ABRGgSOT765GXIGZkErgeNAsjsBW7RsTUKVLqVxD2LK3NzZL5EKA==", "integrity": "sha512-PBjtMJeCRTkvG2ExMpfDUEc7FbwpJ/pxixe7Kt1Z9dfggofGLXnNa5JxzvacuotI1u35wb9nwQ7aI4Uyk5Ellg==",
"dependencies": { "dependencies": {
"@astrojs/compiler": "^0.29.5", "@astrojs/compiler": "^0.29.5",
"@astrojs/language-server": "^0.26.2", "@astrojs/language-server": "^0.26.2",
@ -9324,7 +9324,7 @@
"requires": { "requires": {
"@astro-reactive/form": "file:packages/form", "@astro-reactive/form": "file:packages/form",
"@astro-reactive/validator": "file:packages/validator", "@astro-reactive/validator": "file:packages/validator",
"astro": "^1.5.0" "astro": "^1.6.5"
}, },
"dependencies": { "dependencies": {
"@astro-reactive/form": { "@astro-reactive/form": {
@ -10550,9 +10550,9 @@
} }
}, },
"astro": { "astro": {
"version": "1.6.2", "version": "1.6.5",
"resolved": "https://registry.npmjs.org/astro/-/astro-1.6.2.tgz", "resolved": "https://registry.npmjs.org/astro/-/astro-1.6.5.tgz",
"integrity": "sha512-UHbzQ3Q7iU2a0XBY6Dzh/Hksoa7svmkWZ3ABRGgSOT765GXIGZkErgeNAsjsBW7RsTUKVLqVxD2LK3NzZL5EKA==", "integrity": "sha512-PBjtMJeCRTkvG2ExMpfDUEc7FbwpJ/pxixe7Kt1Z9dfggofGLXnNa5JxzvacuotI1u35wb9nwQ7aI4Uyk5Ellg==",
"requires": { "requires": {
"@astrojs/compiler": "^0.29.5", "@astrojs/compiler": "^0.29.5",
"@astrojs/language-server": "^0.26.2", "@astrojs/language-server": "^0.26.2",

View file

@ -22,6 +22,7 @@
"lint": "npm run lint --workspaces --if-present", "lint": "npm run lint --workspaces --if-present",
"lint:fix": "npm run lint:fix --workspaces --if-present", "lint:fix": "npm run lint:fix --workspaces --if-present",
"build": "npm run build --workspaces --if-present", "build": "npm run build --workspaces --if-present",
"check": "npm run check --workspaces --if-present",
"test:watch": "npm run test:watch --workspaces --if-present", "test:watch": "npm run test:watch --workspaces --if-present",
"patch": "npm version patch -w", "patch": "npm version patch -w",
"minor": "npm version minor -w", "minor": "npm version minor -w",

View file

@ -7,6 +7,9 @@
"exports": { "exports": {
".": "./index.ts" ".": "./index.ts"
}, },
"scripts": {
"check": "tsc --noEmit"
},
"files": [ "files": [
"types/", "types/",
"index.ts" "index.ts"
@ -20,6 +23,5 @@
"bugs": { "bugs": {
"url": "https://github.com/ayoayco/astro-reactive-library/issues" "url": "https://github.com/ayoayco/astro-reactive-library/issues"
}, },
"homepage": "https://github.com/ayoayco/astro-reactive-library#readme", "homepage": "https://github.com/ayoayco/astro-reactive-library#readme"
"scripts": {}
} }

View file

@ -0,0 +1,5 @@
{
"compilerOptions": {
"skipLibCheck": true
}
}

View file

@ -29,7 +29,7 @@
"format": "prettier -w .", "format": "prettier -w .",
"lint": "eslint . --ext .ts,.js", "lint": "eslint . --ext .ts,.js",
"lint:fix": "eslint --fix . --ext .ts,.js", "lint:fix": "eslint --fix . --ext .ts,.js",
"build": "astro check && tsc --noEmit" "check": "astro check && tsc --noEmit"
}, },
"devDependencies": { "devDependencies": {
"@types/chai": "^4.3.3", "@types/chai": "^4.3.3",

View file

@ -1,3 +1,6 @@
{ {
"extends": "astro/tsconfigs/strictest", "extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"skipLibCheck": true
}
} }

View file

@ -27,7 +27,7 @@
"format": "prettier -w .", "format": "prettier -w .",
"lint": "eslint . --ext .ts,.js", "lint": "eslint . --ext .ts,.js",
"lint:fix": "eslint --fix . --ext .ts,.js", "lint:fix": "eslint --fix . --ext .ts,.js",
"build": "astro check && tsc --noEmit" "check": "astro check && tsc --noEmit"
}, },
"devDependencies": { "devDependencies": {
"@types/chai": "^4.3.3", "@types/chai": "^4.3.3",

View file

@ -1,3 +1,6 @@
{ {
"extends": "astro/tsconfigs/strictest", "extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"skipLibCheck": true
}
} }