File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11# @taskless/packcheck
22
3+ ## 0.0.15
4+
5+ ### Patch Changes
6+
7+ - Updates create command to bundle
8+
39## 0.0.14
410
511### Patch Changes
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ npx @taskless/pack <command>
1111- ** install** Install a pack from a URL, downloading the pack.tgz and extracting it to the current directory
1212- ** check** Check a pack against fixtures, running a test suite that simulates network requests and responses
1313- ** publish** Publish a pack to Taskless Cloud (must be an organization with ` publish ` permission)
14- - ** create ** Create a pack.tgz from a manifest and wasm file for distribution outside of Taskless
14+ - ** bundle ** Create a pack.tgz from a manifest and wasm file for distribution outside of Taskless
1515
1616# Testing Packs with ` pack check `
1717
Original file line number Diff line number Diff line change 11{
22 "name" : " @taskless/pack" ,
33 "description" : " CLI for working with Taskless packs" ,
4- "version" : " 0.0.14 " ,
4+ "version" : " 0.0.15 " ,
55 "author" : " Taskless" ,
66 "license" : " Apache-2.0" ,
77 "repository" : " taskless/pack" ,
Original file line number Diff line number Diff line change 11import process from "node:process" ;
22import { Command } from "@commander-js/extra-typings" ;
33import { readPackageUpSync } from "read-package-up" ;
4+ import { bundle } from "./commands/bundle.js" ;
45import { check } from "./commands/check.js" ;
5- import { create } from "./commands/create.js" ;
66import { install } from "./commands/install.js" ;
77import { publish } from "./commands/publish.js" ;
88
@@ -100,7 +100,7 @@ program
100100 } ) ;
101101
102102program
103- . command ( "create " )
103+ . command ( "bundle " )
104104 . description (
105105 "Create a pack.tgz from a manifest and wasm file for distribution outside of Taskless"
106106 )
@@ -111,7 +111,7 @@ program
111111 "Output directory for the created pack, defaults to process.cwd()"
112112 )
113113 . action ( async ( options ) => {
114- await create ( {
114+ await bundle ( {
115115 manifest : options . manifest ,
116116 wasm : options . wasm ,
117117 out : options . out ?? process . cwd ( ) ,
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ import { type Manifest } from "@taskless/loader";
55import { mkdirp } from "mkdirp" ;
66import { create as c } from "tar" ;
77
8- export type CreateOptions = {
8+ export type BundleOptions = {
99 manifest : string ;
1010 wasm : string ;
1111 out : string ;
1212} ;
1313
14- export const create = async ( options : CreateOptions ) => {
14+ export const bundle = async ( options : BundleOptions ) => {
1515 // create a temp directory
1616 // resolve out, manifest, and wasm paths into absolute paths
1717 // copy the manifest and wasm files into the temp directory
You can’t perform that action at this time.
0 commit comments