@papermill/cli 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var t={name:"@papermill/cli",version:"0.0.
|
|
2
|
+
var t={name:"@papermill/cli",version:"0.0.1",description:"Command-line interface for Papermill",type:"module",bin:{papermill:"dist/index.js"},files:["dist","README.md"],publishConfig:{access:"public",registry:"https://registry.npmjs.org/"},engines:{node:">=20"},repository:{type:"git",url:"git+https://github.com/papermillio/cli.git"},homepage:"https://papermill.io",license:"MIT",scripts:{dev:"tsx src/index.ts",build:"mkdir -p dist && node esbuild.config.js src/index.ts dist/index.js && chmod +x dist/index.js",start:"node dist/index.js","type-check":"tsc --noEmit",prettier:"prettier src test --write","prettier:check":"prettier src test --check",lint:"eslint . --fix","lint:check":"eslint .",check:"npm run lint:check && npm run prettier:check && npm run type-check",fix:"npm run lint && npm run prettier",test:"mocha",prepublishOnly:"npm run build"},author:"Papermill",devDependencies:{"@eslint/js":"^9.31.0","@types/chai":"^5.2.3","@types/mocha":"^10.0.10","@types/node":"^24.1.0",chai:"^6.2.2",esbuild:"^0.25.8",eslint:"^9.31.0","eslint-config-prettier":"^10.1.8","eslint-plugin-unused-imports":"^4.1.4",mocha:"^11.7.5",prettier:"^3.5.3",tsx:"^4.21.0",typescript:"^5.8.3","typescript-eslint":"^8.37.0"}};var i=`Papermill CLI
|
|
3
3
|
|
|
4
4
|
Usage:
|
|
5
5
|
papermill [command] [options]
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../package.json", "../src/cli.ts", "../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"@papermill/cli\",\n \"version\": \"0.0.
|
|
5
|
-
"mappings": ";AAAA,IAAAA,EAAA,CACE,KAAQ,iBACR,QAAW,QACX,YAAe,uCACf,KAAQ,SACR,IAAO,CACL,UAAa,eACf,EACA,MAAS,CACP,OACA,WACF,EACA,cAAiB,CACf,OAAU,SACV,SAAY,6BACd,EACA,QAAW,CACT,KAAQ,MACV,EACA,WAAc,CACZ,KAAQ,MACR,IAAO,4CACT,EACA,QAAW,MACX,QAAW,CACT,IAAO,mBACP,MAAS,+FACT,MAAS,qBACT,aAAc,eACd,SAAY,4BACZ,iBAAkB,4BAClB,KAAQ,iBACR,aAAc,WACd,MAAS,qEACT,IAAO,mCACP,KAAQ,QACR,eAAkB,eACpB,EACA,OAAU,YACV,gBAAmB,CACjB,aAAc,UACd,cAAe,SACf,eAAgB,WAChB,cAAe,UACf,KAAQ,SACR,QAAW,UACX,OAAU,UACV,yBAA0B,UAC1B,+BAAgC,SAChC,MAAS,UACT,SAAY,SACZ,IAAO,UACP,WAAc,SACd,oBAAqB,SACvB,CACF,
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"@papermill/cli\",\n \"version\": \"0.0.1\",\n \"description\": \"Command-line interface for Papermill\",\n \"type\": \"module\",\n \"bin\": {\n \"papermill\": \"dist/index.js\"\n },\n \"files\": [\n \"dist\",\n \"README.md\"\n ],\n \"publishConfig\": {\n \"access\": \"public\",\n \"registry\": \"https://registry.npmjs.org/\"\n },\n \"engines\": {\n \"node\": \">=20\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/papermillio/cli.git\"\n },\n \"homepage\": \"https://papermill.io\",\n \"license\": \"MIT\",\n \"scripts\": {\n \"dev\": \"tsx src/index.ts\",\n \"build\": \"mkdir -p dist && node esbuild.config.js src/index.ts dist/index.js && chmod +x dist/index.js\",\n \"start\": \"node dist/index.js\",\n \"type-check\": \"tsc --noEmit\",\n \"prettier\": \"prettier src test --write\",\n \"prettier:check\": \"prettier src test --check\",\n \"lint\": \"eslint . --fix\",\n \"lint:check\": \"eslint .\",\n \"check\": \"npm run lint:check && npm run prettier:check && npm run type-check\",\n \"fix\": \"npm run lint && npm run prettier\",\n \"test\": \"mocha\",\n \"prepublishOnly\": \"npm run build\"\n },\n \"author\": \"Papermill\",\n \"devDependencies\": {\n \"@eslint/js\": \"^9.31.0\",\n \"@types/chai\": \"^5.2.3\",\n \"@types/mocha\": \"^10.0.10\",\n \"@types/node\": \"^24.1.0\",\n \"chai\": \"^6.2.2\",\n \"esbuild\": \"^0.25.8\",\n \"eslint\": \"^9.31.0\",\n \"eslint-config-prettier\": \"^10.1.8\",\n \"eslint-plugin-unused-imports\": \"^4.1.4\",\n \"mocha\": \"^11.7.5\",\n \"prettier\": \"^3.5.3\",\n \"tsx\": \"^4.21.0\",\n \"typescript\": \"^5.8.3\",\n \"typescript-eslint\": \"^8.37.0\"\n }\n}\n", "import pkg from '../package.json' with { type: 'json' }\n\nconst USAGE = `Papermill CLI\n\nUsage:\n papermill [command] [options]\n\nOptions:\n -v, --version Print the installed version\n -h, --help Show this help message\n\nThis is an early pre-release (v0.0.0). Commands are not implemented yet.\n`\n\nexport interface RunResult {\n stdout: string\n exitCode: number\n}\n\n/**\n * Resolves CLI arguments to the text to print and the process exit code, without\n * touching `process` \u2014 so the behaviour can be unit-tested. The bin entry is the only\n * place that writes to stdout and sets the exit code.\n */\nexport function run(argv: string[]): RunResult {\n const [command] = argv\n\n if (command === '--version' || command === '-v') {\n return { stdout: `${pkg.version}\\n`, exitCode: 0 }\n }\n\n if (command === undefined || command === '--help' || command === '-h') {\n return { stdout: USAGE, exitCode: 0 }\n }\n\n return { stdout: `Unknown command: ${command}\\n\\n${USAGE}`, exitCode: 1 }\n}\n", "import { run } from './cli.ts'\n\nconst { stdout, exitCode } = run(process.argv.slice(2))\nprocess.stdout.write(stdout)\nprocess.exitCode = exitCode\n"],
|
|
5
|
+
"mappings": ";AAAA,IAAAA,EAAA,CACE,KAAQ,iBACR,QAAW,QACX,YAAe,uCACf,KAAQ,SACR,IAAO,CACL,UAAa,eACf,EACA,MAAS,CACP,OACA,WACF,EACA,cAAiB,CACf,OAAU,SACV,SAAY,6BACd,EACA,QAAW,CACT,KAAQ,MACV,EACA,WAAc,CACZ,KAAQ,MACR,IAAO,4CACT,EACA,SAAY,uBACZ,QAAW,MACX,QAAW,CACT,IAAO,mBACP,MAAS,+FACT,MAAS,qBACT,aAAc,eACd,SAAY,4BACZ,iBAAkB,4BAClB,KAAQ,iBACR,aAAc,WACd,MAAS,qEACT,IAAO,mCACP,KAAQ,QACR,eAAkB,eACpB,EACA,OAAU,YACV,gBAAmB,CACjB,aAAc,UACd,cAAe,SACf,eAAgB,WAChB,cAAe,UACf,KAAQ,SACR,QAAW,UACX,OAAU,UACV,yBAA0B,UAC1B,+BAAgC,SAChC,MAAS,UACT,SAAY,SACZ,IAAO,UACP,WAAc,SACd,oBAAqB,SACvB,CACF,ECtDA,IAAMC,EAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBP,SAASC,EAAIC,EAA2B,CAC7C,GAAM,CAACC,CAAO,EAAID,EAElB,OAAIC,IAAY,aAAeA,IAAY,KAClC,CAAE,OAAQ,GAAGC,EAAI,OAAO;AAAA,EAAM,SAAU,CAAE,EAG/CD,IAAY,QAAaA,IAAY,UAAYA,IAAY,KACxD,CAAE,OAAQH,EAAO,SAAU,CAAE,EAG/B,CAAE,OAAQ,oBAAoBG,CAAO;AAAA;AAAA,EAAOH,CAAK,GAAI,SAAU,CAAE,CAC1E,CClCA,GAAM,CAAE,OAAAK,EAAQ,SAAAC,CAAS,EAAIC,EAAI,QAAQ,KAAK,MAAM,CAAC,CAAC,EACtD,QAAQ,OAAO,MAAMF,CAAM,EAC3B,QAAQ,SAAWC",
|
|
6
6
|
"names": ["package_default", "USAGE", "run", "argv", "command", "package_default", "stdout", "exitCode", "run"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papermill/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Command-line interface for Papermill",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"type": "git",
|
|
22
22
|
"url": "git+https://github.com/papermillio/cli.git"
|
|
23
23
|
},
|
|
24
|
+
"homepage": "https://papermill.io",
|
|
24
25
|
"license": "MIT",
|
|
25
26
|
"scripts": {
|
|
26
27
|
"dev": "tsx src/index.ts",
|