Skip to content

Commit

Permalink
chore: Use ts-node to run typescript node script, instead of building…
Browse files Browse the repository at this point in the history
… it with tsup (#86)
  • Loading branch information
alexasselin008 authored Nov 3, 2023
1 parent fd8b264 commit 20d8cb0
Show file tree
Hide file tree
Showing 4 changed files with 1,560 additions and 1,488 deletions.
10 changes: 3 additions & 7 deletions packages/tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,15 @@
],
"scripts": {
"clean:dist": "pnpm dlx rimraf dist",
"clean:build": "pnpm dlx rimraf build",
"build:ts": "tsup",
"build:tokens": "node build/build.js",
"build": "pnpm run build:ts && pnpm run build:tokens && pnpm run clean:build"
},
"dependencies": {
"style-dictionary": "3.9.0"
"build": "node --loader ts-node/esm src/style-dictionary/build.ts"
},
"devDependencies": {
"@types/node": "20.8.10",
"@workleap/eslint-plugin": "3.0.0",
"@workleap/tsup-configs": "3.0.1",
"@workleap/typescript-configs": "3.0.2",
"style-dictionary": "3.9.0",
"ts-node": "10.9.1",
"tsup": "7.2.0",
"typescript": "5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@workleap/typescript-configs/library.json",
"exclude": ["node_modules", "build"],
"exclude": ["node_modules"]
}
8 changes: 0 additions & 8 deletions packages/tokens/tsup.config.ts

This file was deleted.

Loading

0 comments on commit 20d8cb0

Please sign in to comment.