Skip to content

Commit

Permalink
chore(crypto-frontmatter): flatten ts directory
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Nov 17, 2023
1 parent dc7d847 commit 68b352f
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 71 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ coverage
.contented

.vercel

# tsconfig.json
packages/*/**/*.d.ts
packages/*/**/*.d.ts.map
packages/*/**/*.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /usr/bin/env node
/* eslint-disable */
require('./dist/cli.js');
require('./cli.js');
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 5 additions & 17 deletions packages/crypto-frontmatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,17 @@
"repository": {
"url": "git+https://github.com/levaintech/frontmatter"
},
"exports": {
".": "./dist/index.js",
"./*": "./dist/*.js"
},
"typesVersions": {
"*": {
"index.d.ts": [
"dist/index.d.ts"
],
"*": [
"dist/*"
]
}
},
"bin": {
"crypto-frontmatter": "./cli.js"
"crypto-frontmatter": "./bin.js"
},
"files": [
"dist"
"*.d.ts",
"*.d.ts.map",
"*.js"
],
"scripts": {
"build": "tsc --project tsconfig.build.json",
"clean": "rm -rf dist",
"clean": "tsc --build --clean",
"lint": "eslint .",
"test": "jest"
},
Expand Down
45 changes: 0 additions & 45 deletions packages/crypto-frontmatter/src/require.ts

This file was deleted.

6 changes: 1 addition & 5 deletions packages/crypto-frontmatter/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
"include": ["src"],
"exclude": ["**/*.unit.ts"]
"exclude": ["**/*.unit.ts", "bin.js"]
}
6 changes: 3 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"cache": false
},
"build": {
"inputs": ["contented.config.mjs", "src/**", "frontmatter/**"],
"outputs": ["dist/**"],
"inputs": ["tsconfig.json", "tsconfig.build.json", "./**/*.ts", "frontmatter/**"],
"outputs": ["./**/*.js", "./**/*.d.ts", "./**/*.d.ts.map"],
"dependsOn": ["^build"]
},
"test": {
"inputs": ["src/**", "**/*.unit.ts", "tests-i9n/**", "tests-e2e/**"],
"inputs": ["tsconfig.json", "./**/*.ts", "./**/*.unit.ts", "./tests-i9n/**", "./tests-e2e/**"],
"dependsOn": ["^build"]
},
"lint": {
Expand Down

0 comments on commit 68b352f

Please sign in to comment.