@trackunit/create-iris-app-workspace 2.10.49 → 2.10.50
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/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/bin/index.js.map +0 -1
- package/bin/pinned-versions.js.map +0 -1
- package/migrations/entry.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2.10.50 (2026-11-13)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for create-iris-app-workspace to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 2.10.49 (2026-11-13)
|
|
2
6
|
|
|
3
7
|
This was a version bump only for create-iris-app-workspace to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/create-iris-app-workspace",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.50",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.x"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"migrations": "./migrations.json",
|
|
17
17
|
"pinnedVersions": {
|
|
18
|
-
"@trackunit/iris-app": "2.16.
|
|
18
|
+
"@trackunit/iris-app": "2.16.17"
|
|
19
19
|
},
|
|
20
20
|
"types": "./bin/index.d.ts",
|
|
21
21
|
"main": "./bin/index.js"
|
package/bin/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/create-iris-app-workspace/bin/index.ts"],"names":[],"mappings":";;AACA,+BAA+B;;AAuB/B,wDAuBC;AA5CD,6DAAsD;AACtD,uDAAqD;AAWrD;;;;;;;;GAQG;AACI,KAAK,UAAU,sBAAsB,CAC1C,IAAwB,EACxB,IAAgC;IAEhC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IAED,6FAA6F;IAC7F,MAAM,MAAM,GAAG,uBAAuB,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,EAAE,CAAC;IAErF,IAAI,CAAC,GAAG,CAAC,2BAA2B,IAAI,EAAE,CAAC,CAAC;IAE5C,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE;QACvD,IAAI;QACJ,gHAAgH;QAChH,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,KAAK;QACrB,qBAAqB,EAAE,IAAI;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,GAAG,CAAC,uCAAuC,SAAS,GAAG,CAAC,CAAC;AAChE,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,MAAM,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,eAAe,EAAf,qCAAe,EAAE,gBAAgB,EAAhB,kCAAgB,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AACzG,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;QAC9B,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["#!/usr/bin/env node\n/* eslint-disable no-console */\n\nimport { createWorkspace } from \"create-nx-workspace\";\nimport { getPinnedVersion } from \"./pinned-versions\";\n\ntype CreateIrisAppWorkspaceDeps = {\n readonly createWorkspace: (\n presetName: string,\n options: Parameters<typeof createWorkspace>[1]\n ) => Promise<{ directory: string }>;\n readonly getPinnedVersion: (packageName: string) => string;\n readonly log: (message: string) => void;\n};\n\n/**\n * Creates an Iris App workspace from the exact `@trackunit/iris-app` preset this CLI release was built with.\n *\n * Pinning (instead of \"@latest\") keeps creation inside the developer's npm release-age policy:\n * npx picks the newest CLI the policy allows, and that CLI's pin follows.\n *\n * @param name the workspace (folder) name\n * @param deps injectable collaborators\n */\nexport async function createIrisAppWorkspace(\n name: string | undefined,\n deps: CreateIrisAppWorkspaceDeps\n): Promise<void> {\n if (!name) {\n throw new Error(\"Please provide a name for the workspace\");\n }\n\n // Resolve the pin first: a broken install must fail before anything is announced or created.\n const preset = `@trackunit/iris-app@${deps.getPinnedVersion(\"@trackunit/iris-app\")}`;\n\n deps.log(`Creating the workspace: ${name}`);\n\n const { directory } = await deps.createWorkspace(preset, {\n name,\n // Nx 23 asks \"Share usage data with the Nx team?\" on the first nx command unless nx.json already has a boolean.\n analytics: false,\n nxCloud: \"skip\",\n packageManager: \"npm\",\n trustThirdPartyPreset: true,\n });\n\n deps.log(`Successfully created the workspace: ${directory}.`);\n}\n\nasync function main() {\n await createIrisAppWorkspace(process.argv[2], { createWorkspace, getPinnedVersion, log: console.log });\n}\n\nif (require.main === module) {\n main().catch((error: unknown) => {\n console.error(error instanceof Error ? error.message : error);\n process.exit(1);\n });\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-versions.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/create-iris-app-workspace/bin/pinned-versions.ts"],"names":[],"mappings":";;;AAAA,qHAAqH;AACrH,iHAAiH;AACjH,+DAA+D;AAC/D,mCAAuC;AAEvC,uHAAuH;AACvH,6GAA6G;AAC7G,MAAM,QAAQ,GAAG,IAAA,sBAAa,EAAC,UAAU,CAAC,CAAC;AAE3C,0HAA0H;AAC7G,QAAA,qBAAqB,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,aAAa,GAAG,sDAAsD,CAAC;AAE7E,MAAM,WAAW,GAAG,CAAC,KAAc,EAAE,GAAW,EAAW,EAAE,CAC3D,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAEpF;;;;;;;;;;;;GAYG;AACI,MAAM,gBAAgB,GAAG,CAAC,WAAmB,EAAE,kBAA0B,6BAAqB,EAAU,EAAE;IAC/G,MAAM,WAAW,GAAY,QAAQ,CAAC,eAAe,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,WAAW,CAAC,WAAW,CAAC,WAAW,EAAE,gBAAgB,CAAC,EAAE,WAAW,CAAC,CAAC;IACrF,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,KAAK,CACb,+BAA+B,WAAW,qCAAqC,eAAe,8EAA8E,CAC7K,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AATW,QAAA,gBAAgB,oBAS3B","sourcesContent":["// A near-copy of @trackunit/iris-app's `getPinnedVersion` on purpose: this CLI ships only `create-nx-workspace`, not\n// `@nx/devkit`, so it reads its package.json with Node's own module loader. Do not \"dedupe\" it by importing from\n// iris-app or devkit, which would add a dependency to the CLI.\nimport { createRequire } from \"module\";\n\n// Node's loader resolves relative to this file, parses JSON, and names the file when it is missing or invalid. A typed\n// `import` of ../package.json would move the emitted layout under `rootDir`, so the loader is used directly.\nconst loadJson = createRequire(__filename);\n\n/** This package's own package.json, one level above `bin/` in both the monorepo source tree and the published package. */\nexport const OWN_PACKAGE_JSON_PATH = loadJson.resolve(\"../package.json\");\n\n/**\n * A pin must be an exact version: \"\", \"latest\" and ranges would reopen the registry-\"latest\" problem.\n */\nconst EXACT_VERSION = /^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?(\\+[0-9A-Za-z.-]+)?$/;\n\nconst getProperty = (value: unknown, key: string): unknown =>\n typeof value === \"object\" && value !== null ? Reflect.get(value, key) : undefined;\n\n/**\n * Returns the exact version of a package this CLI release was built against.\n *\n * The pins live in the `pinnedVersions` field of this package's own package.json, which CI's sync-versions step\n * sets to the to-be-published versions before the package is built and published.\n *\n * Never consults the npm registry and never returns \"latest\": a missing pin is a broken install and fails loudly,\n * so workspace creation cannot pick a version the developer's npm release-age policy forbids.\n *\n * @param packageName full package name, e.g. `@trackunit/iris-app`\n * @param packageJsonPath override location of the package.json, used by tests\n * @returns {string} the exact pinned version\n */\nexport const getPinnedVersion = (packageName: string, packageJsonPath: string = OWN_PACKAGE_JSON_PATH): string => {\n const packageJson: unknown = loadJson(packageJsonPath);\n const version = getProperty(getProperty(packageJson, \"pinnedVersions\"), packageName);\n if (typeof version !== \"string\" || !EXACT_VERSION.test(version)) {\n throw new Error(\n `No valid pinned version for ${packageName} in the \"pinnedVersions\" field of ${packageJsonPath}. The install is incomplete; reinstall @trackunit/create-iris-app-workspace.`\n );\n }\n return version;\n};\n"]}
|
package/migrations/entry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/iris-app-sdk/create-iris-app-workspace/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|