Skip to content

Commit

Permalink
chore: drop @stoplight/scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Feb 1, 2023
1 parent e103148 commit 5c16d2a
Show file tree
Hide file tree
Showing 4 changed files with 1,337 additions and 4,536 deletions.
37 changes: 21 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,32 @@
},
"license": "Apache-2.0",
"type": "module",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"types": "./types/index.d.ts",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./esm/index.js",
"require": "./cjs/index.js"
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"**/*"
"src",
"dist"
],
"engines": {
"node": "^12.20 || >=14.13"
},
"scripts": {
"build": "rimraf dist && yarn build.grammar && yarn build.cjs && yarn build.esm",
"build.esm": "tsc --outDir dist/esm --declarationDir dist/types",
"build.cjs": "tsc --outDir dist/cjs --module commonjs --declarationDir dist/types",
"build.esm": "tsc -p tsconfig.build.json --outDir dist/esm --declarationDir dist/types",
"build.cjs": "tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types",
"build.grammar": "peggy --format=es src/grammar.pegjs",
"commit": "git-cz",
"lint": "eslint 'src/**/*.ts' && prettier --check 'src/**/*.ts'",
"lint.fix": "yarn lint --fix",
"release": "sl-scripts release",
"release.docs": "sl-scripts release:docs",
"release.dryRun": "sl-scripts release --dry-run --debug",
"release": "semantic-release",
"pretest": "yarn build.grammar",
"test": "jest",
"test.prod": "yarn lint && yarn test --coverage --maxWorkers=2",
Expand All @@ -50,19 +49,28 @@
},
"peerDependencies": {},
"devDependencies": {
"@stoplight/scripts": "^9.2.0",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"@semantic-release/npm": "^9.0.2",
"@semantic-release/release-notes-generator": "^10.0.3",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^4.3.8",
"jest": "^29.4.1",
"lint-staged": "^13.1.0",
"nodemon": "1.x.x",
"peggy": "^2.0.1",
"prettier": "^2.8.3",
"rimraf": "^4.1.2",
"semantic-release": "^19.0.5",
"ts-jest": "^29.0.5",
"typescript": "^4.9.5"
},
Expand Down Expand Up @@ -92,8 +100,5 @@
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
},
"release": {
"extends": "@stoplight/scripts/release"
}
}
4 changes: 4 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["**/__*__/**"]
}
9 changes: 7 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"extends": "@stoplight/scripts/tsconfig.json",
// target all ts files
"include": [
"src"
],
"compilerOptions": {
"allowJs": true,
"skipLibCheck": true,
"declaration": true,
"sourceMap": true,
"target": "ES2020",
"module": "ES2022",
"moduleResolution": "Node16",
"esModuleInterop": true
"esModuleInterop": true,
"strict": true,
"useUnknownInCatchVariables": true
}
}
Loading

0 comments on commit 5c16d2a

Please sign in to comment.