Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
npm ci
npm run build
npm run cp:files
npm run gen:types
npm run cp:types
- name: Semantic Release Dependency
run: npm install -g @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm conventional-changelog-conventionalcommits semantic-release
- name: Publish Beta
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-RELEASE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
npm ci
npm run build
npm run cp:files
npm run gen:types
npm run cp:types
cd out/src
npm publish
env:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ out/

*.log

coverage/
coverage/

types/
1 change: 0 additions & 1 deletion .swcrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "https://swc.rs/schema.json",
"sourceMaps": "inline",
"exclude": ["index.d.ts"],
"module": {
"type": "es6",
"strictMode": true,
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"test:cov": "jest --coverage",
"build": "swc src --out-dir out",
"build:link": "npm run prepack && npm run cp:files && npm link ./out/src",
"gen:types": "tsc -p tsconfig.cjs.json --declaration --emitDeclarationOnly",
"cp:types": "npm run gen:types && cp -R ./types/* ./out/src",
"cp:files": "cp ./readme.md ./package*.json ./src/index.d.ts ./out/src && cp -R ./media ./out/src",
"sim:pack": "npm run build && npm run cp:files && npm run gen:types && npm run cp:types",
"prepare": "husky",
"precommit": "lint-staged",
"lint": "eslint {src,tests}",
Expand Down
38 changes: 0 additions & 38 deletions src/index.d.ts

This file was deleted.

3 changes: 2 additions & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "commonjs",
"target": "es6",
"resolveJsonModule": true,
"outDir": "out",
"outDir": "types",
"lib": ["es2020.string", "es6"],
"experimentalDecorators": true,
"sourceMap": false,
Expand All @@ -15,6 +15,7 @@
},
"exclude": [
"node_modules",
"types/**",
"out/**",
".idea/**",
"src/data/CustomRuleExample.ts",
Expand Down
Loading