Skip to content

Commit e056ee3

Browse files
committed
chore: do cleaning in a more cross-platform way
1 parent 973b77c commit e056ee3

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"test": "jest",
1111
"build": "yarn test && tsc && cp ./src/css/*.css dist/",
1212
"build-only": "tsc && cp ./src/css/*.css dist/",
13-
"clean": "rm -rf ./dist/",
13+
"clean": "rimraf ./dist/",
1414
"semantic-release": "semantic-release",
1515
"typecheck": "tsc --noEmit",
1616
"notion-download": "node dist/index.js",
17-
"cmdhelp": "ts-node --compiler-options \"{\\\"module\\\": \\\"commonjs\\\"}\" src/index.ts",
17+
"cmdhelp": "ts-node src/index.ts",
1818
"// note that we're not using ts-node at the moment because of ": "https://github.com/Codex-/cosmiconfig-typescript-loader/issues/70",
19-
"ts": "yarn tsc && rm -rf ./docs/ && cross-var node dist/index.js",
19+
"ts": "yarn tsc && rimraf ./docs/ && cross-var node dist/index.js",
2020
"// test out with a private sample notion db": "",
2121
"pull-test-tagged": "yarn ts -n $DOCU_NOTION_INTEGRATION_TOKEN -r $DOCU_NOTION_TEST_ROOT_PAGE_ID --log-level debug --status-tag test",
2222
"pull-sample-site": "yarn ts -n $DOCU_NOTION_INTEGRATION_TOKEN -r $DOCU_NOTION_SAMPLE_ROOT_PAGE --log-level debug",
@@ -64,8 +64,7 @@
6464
"notion-client": "^4",
6565
"notion-to-md": "^2.5.5",
6666
"path": "^0.12.7",
67-
"sanitize-filename": "^1.6.3",
68-
"ts-node": "^10.2.1"
67+
"sanitize-filename": "^1.6.3"
6968
},
7069
"devDependencies": {
7170
"@types/fs-extra": "^9.0.13",
@@ -83,8 +82,10 @@
8382
"jest": "^28.1.3",
8483
"lint-staged": "^10.5.4",
8584
"prettier": "^2.2.1",
85+
"rimraf": "^4.1.2",
8686
"semantic-release": "^19.0.2",
8787
"ts-jest": "^28.0.7",
88+
"ts-node": "^10.2.1",
8889
"typescript": "^4.6.4"
8990
},
9091
"release": {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6535,6 +6535,11 @@ rimraf@^3.0.0, rimraf@^3.0.2:
65356535
dependencies:
65366536
glob "^7.1.3"
65376537

6538+
rimraf@^4.1.2:
6539+
version "4.1.2"
6540+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-4.1.2.tgz#20dfbc98083bdfaa28b01183162885ef213dbf7c"
6541+
integrity sha512-BlIbgFryTbw3Dz6hyoWFhKk+unCcHMSkZGrTFVAx2WmttdBSonsdtRlwiuTbDqTKr+UlXIUqJVS4QT5tUzGENQ==
6542+
65386543
run-async@^2.2.0:
65396544
version "2.4.1"
65406545
resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz"

0 commit comments

Comments
 (0)