tinkerise 0.0.0

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.
Files changed (3) hide show
  1. package/bin.mjs +2 -0
  2. package/package.json +35 -0
  3. package/postinstall.mjs +18 -0
package/bin.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import '@tinkerise/cli'
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "tinkerise",
3
+ "version": "0.0.0",
4
+ "type": "module",
5
+ "description": "Scaffold any project with any stack",
6
+ "keywords": ["tinkerise", "scaffold", "cli", "project-generator", "create-app", "framework", "boilerplate"],
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/farce1/tinkerise.git",
11
+ "directory": "packages/tinkerise"
12
+ },
13
+ "homepage": "https://github.com/farce1/tinkerise",
14
+ "bugs": {
15
+ "url": "https://github.com/farce1/tinkerise/issues"
16
+ },
17
+ "bin": {
18
+ "tinkerise": "./bin.mjs",
19
+ "tk": "./bin.mjs"
20
+ },
21
+ "dependencies": {
22
+ "@tinkerise/cli": "workspace:*"
23
+ },
24
+ "files": ["bin.mjs", "postinstall.mjs"],
25
+ "scripts": {
26
+ "postinstall": "node postinstall.mjs"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public",
30
+ "registry": "https://registry.npmjs.org/"
31
+ },
32
+ "engines": {
33
+ "node": ">=20.11.0"
34
+ }
35
+ }
@@ -0,0 +1,18 @@
1
+ // Welcome message for global installs only.
2
+ // Skipped in CI, npx, and local installs.
3
+ // This is purely informational -- the CLI works fine if postinstall is skipped.
4
+
5
+ const isGlobal = Boolean(
6
+ process.env.npm_config_global === 'true' ||
7
+ process.env.npm_config_location === 'global'
8
+ )
9
+
10
+ if (isGlobal && !process.env.CI) {
11
+ console.log()
12
+ console.log(' tinkerise installed successfully')
13
+ console.log()
14
+ console.log(' Get started: tinkerise')
15
+ console.log(' Short alias: tk')
16
+ console.log(' Docs: https://github.com/farce1/tinkerise')
17
+ console.log()
18
+ }