Skip to content

Commit

Permalink
fix: remove test files from dist
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Mar 2, 2022
1 parent 42aa849 commit fd005e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
4 changes: 2 additions & 2 deletions packages/abell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abell",
"version": "1.0.0-alpha.36",
"version": "1.0.0-alpha.37",
"description": "",
"bin": "./dist/bin.js",
"main": "./dist/index.js",
Expand All @@ -13,7 +13,7 @@
"scripts": {
"test": "vitest",
"test:once": "vitest run",
"build": "tsc && node scripts/post-build.js",
"build": "tsc --project tsconfig.build.json && node scripts/post-build.js",
"eslint": "eslint",
"dev": "node ./dist/bin.js dev",
"prepublishOnly": "yarn test:once && yarn eslint && yarn build"
Expand Down
14 changes: 0 additions & 14 deletions packages/abell/src/vite-plugin-abell/compiler/compiler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ describe('compile()', () => {
<body>
{{ 3 + 4 }}
<b>{{ 'Helloo'.toUpperCase() }}</b>
<div>
{{
[1, 2, 3].map(i =>
i * 2
)
}}
</div>
</body>
`;
const out = compile(abellCode, {
Expand All @@ -45,13 +38,6 @@ describe('compile()', () => {
"<body>
\${e( 3 + 4 )}
<b>\${e( 'Helloo'.toUpperCase() )}</b>
<div>
\${e(
[1, 2, 3].map(i =>
i * 2
)
)}
</div>
</body>"
`);
});
Expand Down
4 changes: 4 additions & 0 deletions packages/abell/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["src/**/*.spec.ts", "src/**/__tests__"]
}
2 changes: 1 addition & 1 deletion packages/abell/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"rootDir": "src",
},
"include": ["src"],
"exclude": ["node_modules", "dist", "scripts","defaults"]
"exclude": ["node_modules", "dist", "scripts", "defaults"]
}

0 comments on commit fd005e3

Please sign in to comment.