|
15 | 15 | "typecheck": "tsc --noEmit",
|
16 | 16 | "notion-download": "node dist/index.js",
|
17 | 17 | "cmdhelp": "ts-node --compiler-options \"{\\\"module\\\": \\\"commonjs\\\"}\" src/index.ts",
|
| 18 | + "// 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", |
18 | 20 | "// test out with a private sample notion db": "",
|
19 |
| - "pull-test-tagged": "cross-var rm -rf ./docs/ && ts-node src/index.ts -n %DOCU_NOTION_INTEGRATION_TOKEN% -r %DOCU_NOTION_TEST_ROOT_PAGE_ID% --log-level debug --status-tag test", |
20 |
| - "pull-test-outline": "cross-var rm -rf ./docs/ && ts-node --compiler-options \"{\\\"module\\\": \\\"commonjs\\\"}\" src/index.ts -n %DOCU_NOTION_INTEGRATION_TOKEN% -r %DOCU_NOTION_TEST_ROOT_PAGE_ID% --log-level debug", |
| 21 | + "pull-test-tagged": "yarn ts -n $DOCU_NOTION_INTEGRATION_TOKEN -r $DOCU_NOTION_TEST_ROOT_PAGE_ID --log-level debug --status-tag test", |
| 22 | + "pull-sample-site": "yarn ts -n $DOCU_NOTION_INTEGRATION_TOKEN -r $DOCU_NOTION_SAMPLE_ROOT_PAGE --log-level debug", |
21 | 23 | "// test with a semi-stable/public site:": "",
|
22 |
| - "pull-sample": "cross-var ts-node --compiler-options \"{\\\"module\\\": \\\"commonjs\\\"}\" src/index.ts -n %DOCU_NOTION_INTEGRATION_TOKEN% -r %DOCU_NOTION_SAMPLE_ROOT_PAGE% -m ./sample --locales en,es,fr,de --log-level verbose", |
23 |
| - "pull-sample-with-paths": "cross-var ts-node --compiler-options \"{\\\"module\\\": \\\"commonjs\\\"}\" src/index.ts -n %DOCU_NOTION_INTEGRATION_TOKEN% -r %DOCU_NOTION_SAMPLE_ROOT_PAGE% -m ./sample --img-output-path ./sample_img" |
| 24 | + "pull-sample": "yarn ts -n $DOCU_NOTION_INTEGRATION_TOKEN -r $DOCU_NOTION_SAMPLE_ROOT_PAGE -m ./sample --locales en,es,fr,de --log-level verbose", |
| 25 | + "pull-sample-with-paths": "yarn ts -n $DOCU_NOTION_INTEGRATION_TOKEN -r $DOCU_NOTION_SAMPLE_ROOT_PAGE -m ./sample --img-output-path ./sample_img", |
| 26 | + "postinstall": "patch-package" |
24 | 27 | },
|
25 | 28 | "repository": {
|
26 | 29 | "type": "git",
|
|
49 | 52 | "//chalk@4": "also ESM related problem",
|
50 | 53 | "//notion-client@4": "also ESM related problem",
|
51 | 54 | "dependencies": {
|
52 |
| - "@notionhq/client": "^1.0.4", |
| 55 | + "@notionhq/client": "2.2.3", |
53 | 56 | "chalk": "^4.1.2",
|
54 | 57 | "commander": "^9.2.0",
|
| 58 | + "cosmiconfig": "^8.0.0", |
| 59 | + "cosmiconfig-typescript-loader": "^4.3.0", |
55 | 60 | "file-type": "16.5.1",
|
56 | 61 | "fs-extra": "^10.1.0",
|
57 | 62 | "limiter": "^2.1.0",
|
|
60 | 65 | "notion-client": "^4",
|
61 | 66 | "notion-to-md": "^2.5.5",
|
62 | 67 | "path": "^0.12.7",
|
63 |
| - "postinstall-postinstall": "^2.1.0", |
64 | 68 | "sanitize-filename": "^1.6.3"
|
65 | 69 | },
|
66 | 70 | "devDependencies": {
|
|
78 | 82 | "eslint-plugin-prettier": "^3.4.0",
|
79 | 83 | "jest": "^28.1.3",
|
80 | 84 | "lint-staged": "^10.5.4",
|
| 85 | + "patch-package": "^6.5.1", |
81 | 86 | "prettier": "^2.2.1",
|
82 | 87 | "semantic-release": "^19.0.2",
|
83 | 88 | "ts-jest": "^28.0.7",
|
|
0 commit comments