@nshiab/setup-data-project 1.0.7 → 1.0.8
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/esm/helpers/createFolderStructure.d.ts.map +1 -1
- package/esm/helpers/createFolderStructure.js +1 -15
- package/esm/helpers/ensureAgents.d.ts.map +1 -1
- package/esm/helpers/ensureAgents.js +2 -8
- package/esm/helpers/ensureEnvFile.d.ts.map +1 -1
- package/esm/helpers/ensureEnvFile.js +1 -7
- package/esm/helpers/ensureGitignore.d.ts.map +1 -1
- package/esm/helpers/ensureGitignore.js +0 -6
- package/esm/helpers/ensureReadme.d.ts.map +1 -1
- package/esm/helpers/ensureReadme.js +1 -7
- package/esm/main.js +7 -17
- package/package.json +5 -2
- package/script/helpers/createFolderStructure.d.ts.map +1 -1
- package/script/helpers/createFolderStructure.js +1 -15
- package/script/helpers/ensureAgents.d.ts.map +1 -1
- package/script/helpers/ensureAgents.js +2 -8
- package/script/helpers/ensureEnvFile.d.ts.map +1 -1
- package/script/helpers/ensureEnvFile.js +1 -7
- package/script/helpers/ensureGitignore.d.ts.map +1 -1
- package/script/helpers/ensureGitignore.js +0 -6
- package/script/helpers/ensureReadme.d.ts.map +1 -1
- package/script/helpers/ensureReadme.js +1 -7
- package/script/main.js +7 -17
- package/npm/LICENSE +0 -21
- package/npm/README.md +0 -25
- package/npm/esm/_dnt.shims.d.ts +0 -8
- package/npm/esm/_dnt.shims.d.ts.map +0 -1
- package/npm/esm/_dnt.shims.js +0 -62
- package/npm/esm/_dnt_2.shims.d.ts +0 -6
- package/npm/esm/_dnt_2.shims.d.ts.map +0 -1
- package/npm/esm/_dnt_2.shims.js +0 -61
- package/npm/esm/helpers/createFolderStructure.d.ts +0 -2
- package/npm/esm/helpers/createFolderStructure.d.ts.map +0 -1
- package/npm/esm/helpers/createFolderStructure.js +0 -49
- package/npm/esm/helpers/ensureAgents.d.ts +0 -2
- package/npm/esm/helpers/ensureAgents.d.ts.map +0 -1
- package/npm/esm/helpers/ensureAgents.js +0 -92
- package/npm/esm/helpers/ensureEnvFile.d.ts +0 -2
- package/npm/esm/helpers/ensureEnvFile.d.ts.map +0 -1
- package/npm/esm/helpers/ensureEnvFile.js +0 -14
- package/npm/esm/helpers/ensureGitignore.d.ts +0 -2
- package/npm/esm/helpers/ensureGitignore.d.ts.map +0 -1
- package/npm/esm/helpers/ensureGitignore.js +0 -29
- package/npm/esm/helpers/ensureReadme.d.ts +0 -2
- package/npm/esm/helpers/ensureReadme.d.ts.map +0 -1
- package/npm/esm/helpers/ensureReadme.js +0 -37
- package/npm/esm/helpers/getInstalledPackages.d.ts +0 -2
- package/npm/esm/helpers/getInstalledPackages.d.ts.map +0 -1
- package/npm/esm/helpers/getInstalledPackages.js +0 -29
- package/npm/esm/helpers/getProjectTasks.d.ts +0 -5
- package/npm/esm/helpers/getProjectTasks.d.ts.map +0 -1
- package/npm/esm/helpers/getProjectTasks.js +0 -12
- package/npm/esm/helpers/getRuntime.d.ts +0 -5
- package/npm/esm/helpers/getRuntime.d.ts.map +0 -1
- package/npm/esm/helpers/getRuntime.js +0 -17
- package/npm/esm/helpers/gitignoreEntries.d.ts +0 -2
- package/npm/esm/helpers/gitignoreEntries.d.ts.map +0 -1
- package/npm/esm/helpers/gitignoreEntries.js +0 -9
- package/npm/esm/helpers/handleFileConflict.d.ts +0 -5
- package/npm/esm/helpers/handleFileConflict.d.ts.map +0 -1
- package/npm/esm/helpers/handleFileConflict.js +0 -51
- package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts +0 -8
- package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts.map +0 -1
- package/npm/esm/helpers/installPackagesAndFetchDocs.js +0 -61
- package/npm/esm/helpers/packageOptions.d.ts +0 -5
- package/npm/esm/helpers/packageOptions.d.ts.map +0 -1
- package/npm/esm/helpers/packageOptions.js +0 -5
- package/npm/esm/helpers/packageRegistry.d.ts +0 -7
- package/npm/esm/helpers/packageRegistry.d.ts.map +0 -1
- package/npm/esm/helpers/packageRegistry.js +0 -62
- package/npm/esm/helpers/updateProjectConfig.d.ts +0 -2
- package/npm/esm/helpers/updateProjectConfig.d.ts.map +0 -1
- package/npm/esm/helpers/updateProjectConfig.js +0 -36
- package/npm/esm/main.d.ts +0 -3
- package/npm/esm/main.d.ts.map +0 -1
- package/npm/esm/main.js +0 -93
- package/npm/esm/package.json +0 -3
- package/npm/node_modules/.package-lock.json +0 -123
- package/npm/node_modules/@clack/core/CHANGELOG.md +0 -348
- package/npm/node_modules/@clack/core/LICENSE +0 -9
- package/npm/node_modules/@clack/core/README.md +0 -22
- package/npm/node_modules/@clack/core/dist/index.d.mts +0 -363
- package/npm/node_modules/@clack/core/dist/index.mjs +0 -17
- package/npm/node_modules/@clack/core/dist/index.mjs.map +0 -1
- package/npm/node_modules/@clack/core/package.json +0 -63
- package/npm/node_modules/@clack/prompts/CHANGELOG.md +0 -591
- package/npm/node_modules/@clack/prompts/LICENSE +0 -9
- package/npm/node_modules/@clack/prompts/README.md +0 -375
- package/npm/node_modules/@clack/prompts/dist/index.d.mts +0 -396
- package/npm/node_modules/@clack/prompts/dist/index.mjs +0 -144
- package/npm/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
- package/npm/node_modules/@clack/prompts/package.json +0 -68
- package/npm/node_modules/@deno/shim-deno/LICENSE +0 -20
- package/npm/node_modules/@deno/shim-deno/README.md +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Conn.js +0 -56
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Listener.js +0 -92
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/consts.js +0 -4
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/errorMap.js +0 -44
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js +0 -91
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/iterutil.js +0 -37
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/random_id.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/streams.js +0 -122
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.d.ts +0 -1
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/internal/version.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/FsFile.js +0 -143
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/PermissionStatus.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/Permissions.js +0 -26
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums/SeekMode.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/addSignalListener.js +0 -18
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chdir.js +0 -22
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmod.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmodSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chown.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chownSync.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/close.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connect.js +0 -37
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connectTls.js +0 -31
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/consoleSize.js +0 -17
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copy.js +0 -27
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFile.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFileSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/create.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/createSync.js +0 -14
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/cwd.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/execPath.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/exit.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasync.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasyncSync.js +0 -6
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstat.js +0 -44
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstatSync.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsync.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsyncSync.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncate.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncateSync.js +0 -6
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/gid.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/hostname.js +0 -32
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/inspect.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/kill.js +0 -16
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/link.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/linkSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js +0 -51
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listenTls.js +0 -49
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/loadavg.js +0 -32
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstat.js +0 -42
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstatSync.js +0 -42
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDir.js +0 -11
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDirSync.js +0 -11
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFile.js +0 -14
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFileSync.js +0 -14
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/memoryUsage.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdir.js +0 -22
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdirSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/open.js +0 -33
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/openSync.js +0 -31
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osRelease.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osUptime.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/read.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDir.js +0 -26
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDirSync.js +0 -26
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFile.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFileSync.js +0 -19
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLink.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLinkSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readSync.js +0 -34
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFile.js +0 -18
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFileSync.js +0 -41
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPath.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPathSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/remove.js +0 -22
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSignalListener.js +0 -12
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/rename.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/renameSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/resolveDns.js +0 -41
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js +0 -276
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/shutdown.js +0 -9
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/stat.js +0 -68
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/statSync.js +0 -42
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlink.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlinkSync.js +0 -30
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/test.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncate.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncateSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/uid.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/watchFs.js +0 -27
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/write.js +0 -35
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFile.js +0 -46
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFileSync.js +0 -45
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeSync.js +0 -29
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFile.js +0 -52
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFileSync.js +0 -44
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions.js +0 -234
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/main.js +0 -21
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/types.js +0 -3
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/args.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/build.js +0 -38
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/customInspect.js +0 -4
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/env.js +0 -47
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/errors.js +0 -63
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js +0 -8
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/metrics.js +0 -21
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/noColor.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/permissions.js +0 -6
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/pid.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/ppid.js +0 -5
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/resources.js +0 -12
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/std.js +0 -132
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/version.js +0 -10
- package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables.js +0 -53
- package/npm/node_modules/@deno/shim-deno/dist/deno/unstable/main.js +0 -62
- package/npm/node_modules/@deno/shim-deno/dist/deno.js +0 -17
- package/npm/node_modules/@deno/shim-deno/dist/index.d.ts +0 -4762
- package/npm/node_modules/@deno/shim-deno/dist/index.js +0 -27
- package/npm/node_modules/@deno/shim-deno/package.json +0 -50
- package/npm/node_modules/@deno/shim-deno-test/LICENSE +0 -20
- package/npm/node_modules/@deno/shim-deno-test/README.md +0 -28
- package/npm/node_modules/@deno/shim-deno-test/dist/definitions.d.ts +0 -3
- package/npm/node_modules/@deno/shim-deno-test/dist/definitions.js +0 -5
- package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.d.ts +0 -626
- package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.js +0 -2
- package/npm/node_modules/@deno/shim-deno-test/dist/index.d.ts +0 -3
- package/npm/node_modules/@deno/shim-deno-test/dist/index.js +0 -21
- package/npm/node_modules/@deno/shim-deno-test/dist/test.d.ts +0 -3
- package/npm/node_modules/@deno/shim-deno-test/dist/test.js +0 -87
- package/npm/node_modules/@deno/shim-deno-test/package.json +0 -34
- package/npm/node_modules/@types/node/LICENSE +0 -21
- package/npm/node_modules/@types/node/README.md +0 -15
- package/npm/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/npm/node_modules/@types/node/assert.d.ts +0 -1062
- package/npm/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/npm/node_modules/@types/node/buffer.buffer.d.ts +0 -471
- package/npm/node_modules/@types/node/buffer.d.ts +0 -1936
- package/npm/node_modules/@types/node/child_process.d.ts +0 -1475
- package/npm/node_modules/@types/node/cluster.d.ts +0 -577
- package/npm/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/npm/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/npm/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/npm/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/npm/node_modules/@types/node/console.d.ts +0 -452
- package/npm/node_modules/@types/node/constants.d.ts +0 -21
- package/npm/node_modules/@types/node/crypto.d.ts +0 -4590
- package/npm/node_modules/@types/node/dgram.d.ts +0 -597
- package/npm/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/npm/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/npm/node_modules/@types/node/dns.d.ts +0 -871
- package/npm/node_modules/@types/node/domain.d.ts +0 -170
- package/npm/node_modules/@types/node/events.d.ts +0 -977
- package/npm/node_modules/@types/node/fs/promises.d.ts +0 -1270
- package/npm/node_modules/@types/node/fs.d.ts +0 -4375
- package/npm/node_modules/@types/node/globals.d.ts +0 -172
- package/npm/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/npm/node_modules/@types/node/http.d.ts +0 -2049
- package/npm/node_modules/@types/node/http2.d.ts +0 -2631
- package/npm/node_modules/@types/node/https.d.ts +0 -578
- package/npm/node_modules/@types/node/index.d.ts +0 -93
- package/npm/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/npm/node_modules/@types/node/module.d.ts +0 -539
- package/npm/node_modules/@types/node/net.d.ts +0 -1031
- package/npm/node_modules/@types/node/os.d.ts +0 -506
- package/npm/node_modules/@types/node/package.json +0 -140
- package/npm/node_modules/@types/node/path.d.ts +0 -200
- package/npm/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/npm/node_modules/@types/node/process.d.ts +0 -1961
- package/npm/node_modules/@types/node/punycode.d.ts +0 -117
- package/npm/node_modules/@types/node/querystring.d.ts +0 -152
- package/npm/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/npm/node_modules/@types/node/readline.d.ts +0 -589
- package/npm/node_modules/@types/node/repl.d.ts +0 -430
- package/npm/node_modules/@types/node/sea.d.ts +0 -153
- package/npm/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/npm/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/npm/node_modules/@types/node/stream/web.d.ts +0 -533
- package/npm/node_modules/@types/node/stream.d.ts +0 -1698
- package/npm/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/npm/node_modules/@types/node/test.d.ts +0 -1787
- package/npm/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/npm/node_modules/@types/node/timers.d.ts +0 -286
- package/npm/node_modules/@types/node/tls.d.ts +0 -1259
- package/npm/node_modules/@types/node/trace_events.d.ts +0 -197
- package/npm/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/npm/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/npm/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/npm/node_modules/@types/node/tty.d.ts +0 -208
- package/npm/node_modules/@types/node/url.d.ts +0 -964
- package/npm/node_modules/@types/node/util.d.ts +0 -2331
- package/npm/node_modules/@types/node/v8.d.ts +0 -809
- package/npm/node_modules/@types/node/vm.d.ts +0 -1001
- package/npm/node_modules/@types/node/wasi.d.ts +0 -181
- package/npm/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/npm/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/npm/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/npm/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/npm/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/npm/node_modules/@types/node/zlib.d.ts +0 -598
- package/npm/node_modules/fast-string-truncated-width/dist/index.d.ts +0 -4
- package/npm/node_modules/fast-string-truncated-width/dist/index.js +0 -111
- package/npm/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -19
- package/npm/node_modules/fast-string-truncated-width/dist/types.js +0 -2
- package/npm/node_modules/fast-string-truncated-width/dist/utils.d.ts +0 -4
- package/npm/node_modules/fast-string-truncated-width/dist/utils.js +0 -20
- package/npm/node_modules/fast-string-truncated-width/license +0 -21
- package/npm/node_modules/fast-string-truncated-width/package.json +0 -35
- package/npm/node_modules/fast-string-truncated-width/readme.md +0 -59
- package/npm/node_modules/fast-string-width/dist/index.d.ts +0 -4
- package/npm/node_modules/fast-string-width/dist/index.js +0 -14
- package/npm/node_modules/fast-string-width/license +0 -21
- package/npm/node_modules/fast-string-width/package.json +0 -34
- package/npm/node_modules/fast-string-width/readme.md +0 -42
- package/npm/node_modules/fast-wrap-ansi/LICENSE +0 -23
- package/npm/node_modules/fast-wrap-ansi/README.md +0 -26
- package/npm/node_modules/fast-wrap-ansi/lib/main.d.ts +0 -6
- package/npm/node_modules/fast-wrap-ansi/lib/main.js +0 -219
- package/npm/node_modules/fast-wrap-ansi/lib/main.js.map +0 -1
- package/npm/node_modules/fast-wrap-ansi/package.json +0 -51
- package/npm/node_modules/isexe/LICENSE.md +0 -55
- package/npm/node_modules/isexe/README.md +0 -80
- package/npm/node_modules/isexe/dist/commonjs/index.d.ts +0 -14
- package/npm/node_modules/isexe/dist/commonjs/index.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/index.js +0 -56
- package/npm/node_modules/isexe/dist/commonjs/index.js.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/index.min.js +0 -2
- package/npm/node_modules/isexe/dist/commonjs/index.min.js.map +0 -7
- package/npm/node_modules/isexe/dist/commonjs/options.d.ts +0 -32
- package/npm/node_modules/isexe/dist/commonjs/options.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/options.js +0 -3
- package/npm/node_modules/isexe/dist/commonjs/options.js.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/package.json +0 -3
- package/npm/node_modules/isexe/dist/commonjs/posix.d.ts +0 -18
- package/npm/node_modules/isexe/dist/commonjs/posix.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/posix.js +0 -67
- package/npm/node_modules/isexe/dist/commonjs/posix.js.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/win32.d.ts +0 -18
- package/npm/node_modules/isexe/dist/commonjs/win32.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/commonjs/win32.js +0 -63
- package/npm/node_modules/isexe/dist/commonjs/win32.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/index.d.ts +0 -14
- package/npm/node_modules/isexe/dist/esm/index.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/index.js +0 -16
- package/npm/node_modules/isexe/dist/esm/index.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/index.min.js +0 -2
- package/npm/node_modules/isexe/dist/esm/index.min.js.map +0 -7
- package/npm/node_modules/isexe/dist/esm/options.d.ts +0 -32
- package/npm/node_modules/isexe/dist/esm/options.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/options.js +0 -2
- package/npm/node_modules/isexe/dist/esm/options.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/package.json +0 -3
- package/npm/node_modules/isexe/dist/esm/posix.d.ts +0 -18
- package/npm/node_modules/isexe/dist/esm/posix.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/posix.js +0 -62
- package/npm/node_modules/isexe/dist/esm/posix.js.map +0 -1
- package/npm/node_modules/isexe/dist/esm/win32.d.ts +0 -18
- package/npm/node_modules/isexe/dist/esm/win32.d.ts.map +0 -1
- package/npm/node_modules/isexe/dist/esm/win32.js +0 -58
- package/npm/node_modules/isexe/dist/esm/win32.js.map +0 -1
- package/npm/node_modules/isexe/package.json +0 -78
- package/npm/node_modules/sisteransi/license +0 -21
- package/npm/node_modules/sisteransi/package.json +0 -34
- package/npm/node_modules/sisteransi/readme.md +0 -113
- package/npm/node_modules/sisteransi/src/index.js +0 -58
- package/npm/node_modules/sisteransi/src/sisteransi.d.ts +0 -35
- package/npm/node_modules/undici-types/LICENSE +0 -21
- package/npm/node_modules/undici-types/README.md +0 -6
- package/npm/node_modules/undici-types/agent.d.ts +0 -31
- package/npm/node_modules/undici-types/api.d.ts +0 -43
- package/npm/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/npm/node_modules/undici-types/cache.d.ts +0 -36
- package/npm/node_modules/undici-types/client.d.ts +0 -108
- package/npm/node_modules/undici-types/connector.d.ts +0 -34
- package/npm/node_modules/undici-types/content-type.d.ts +0 -21
- package/npm/node_modules/undici-types/cookies.d.ts +0 -28
- package/npm/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/npm/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/npm/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/npm/node_modules/undici-types/errors.d.ts +0 -149
- package/npm/node_modules/undici-types/eventsource.d.ts +0 -61
- package/npm/node_modules/undici-types/fetch.d.ts +0 -209
- package/npm/node_modules/undici-types/file.d.ts +0 -39
- package/npm/node_modules/undici-types/filereader.d.ts +0 -54
- package/npm/node_modules/undici-types/formdata.d.ts +0 -108
- package/npm/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/npm/node_modules/undici-types/global-origin.d.ts +0 -7
- package/npm/node_modules/undici-types/handlers.d.ts +0 -15
- package/npm/node_modules/undici-types/header.d.ts +0 -4
- package/npm/node_modules/undici-types/index.d.ts +0 -71
- package/npm/node_modules/undici-types/interceptors.d.ts +0 -17
- package/npm/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/npm/node_modules/undici-types/mock-client.d.ts +0 -25
- package/npm/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/npm/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/npm/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/npm/node_modules/undici-types/package.json +0 -55
- package/npm/node_modules/undici-types/patch.d.ts +0 -33
- package/npm/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/npm/node_modules/undici-types/pool.d.ts +0 -39
- package/npm/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/npm/node_modules/undici-types/readable.d.ts +0 -65
- package/npm/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/npm/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/npm/node_modules/undici-types/util.d.ts +0 -18
- package/npm/node_modules/undici-types/webidl.d.ts +0 -228
- package/npm/node_modules/undici-types/websocket.d.ts +0 -150
- package/npm/node_modules/which/LICENSE +0 -15
- package/npm/node_modules/which/README.md +0 -51
- package/npm/node_modules/which/bin/which.js +0 -52
- package/npm/node_modules/which/lib/index.js +0 -111
- package/npm/node_modules/which/package.json +0 -57
- package/npm/package-lock.json +0 -135
- package/npm/package.json +0 -30
- package/npm/script/_dnt.shims.d.ts +0 -8
- package/npm/script/_dnt.shims.d.ts.map +0 -1
- package/npm/script/_dnt.shims.js +0 -99
- package/npm/script/_dnt_2.shims.d.ts +0 -6
- package/npm/script/_dnt_2.shims.d.ts.map +0 -1
- package/npm/script/_dnt_2.shims.js +0 -65
- package/npm/script/helpers/createFolderStructure.d.ts +0 -2
- package/npm/script/helpers/createFolderStructure.d.ts.map +0 -1
- package/npm/script/helpers/createFolderStructure.js +0 -52
- package/npm/script/helpers/ensureAgents.d.ts +0 -2
- package/npm/script/helpers/ensureAgents.d.ts.map +0 -1
- package/npm/script/helpers/ensureAgents.js +0 -95
- package/npm/script/helpers/ensureEnvFile.d.ts +0 -2
- package/npm/script/helpers/ensureEnvFile.d.ts.map +0 -1
- package/npm/script/helpers/ensureEnvFile.js +0 -17
- package/npm/script/helpers/ensureGitignore.d.ts +0 -2
- package/npm/script/helpers/ensureGitignore.d.ts.map +0 -1
- package/npm/script/helpers/ensureGitignore.js +0 -32
- package/npm/script/helpers/ensureReadme.d.ts +0 -2
- package/npm/script/helpers/ensureReadme.d.ts.map +0 -1
- package/npm/script/helpers/ensureReadme.js +0 -40
- package/npm/script/helpers/getInstalledPackages.d.ts +0 -2
- package/npm/script/helpers/getInstalledPackages.d.ts.map +0 -1
- package/npm/script/helpers/getInstalledPackages.js +0 -32
- package/npm/script/helpers/getProjectTasks.d.ts +0 -5
- package/npm/script/helpers/getProjectTasks.d.ts.map +0 -1
- package/npm/script/helpers/getProjectTasks.js +0 -15
- package/npm/script/helpers/getRuntime.d.ts +0 -5
- package/npm/script/helpers/getRuntime.d.ts.map +0 -1
- package/npm/script/helpers/getRuntime.js +0 -57
- package/npm/script/helpers/gitignoreEntries.d.ts +0 -2
- package/npm/script/helpers/gitignoreEntries.d.ts.map +0 -1
- package/npm/script/helpers/gitignoreEntries.js +0 -12
- package/npm/script/helpers/handleFileConflict.d.ts +0 -5
- package/npm/script/helpers/handleFileConflict.d.ts.map +0 -1
- package/npm/script/helpers/handleFileConflict.js +0 -91
- package/npm/script/helpers/installPackagesAndFetchDocs.d.ts +0 -8
- package/npm/script/helpers/installPackagesAndFetchDocs.d.ts.map +0 -1
- package/npm/script/helpers/installPackagesAndFetchDocs.js +0 -98
- package/npm/script/helpers/packageOptions.d.ts +0 -5
- package/npm/script/helpers/packageOptions.d.ts.map +0 -1
- package/npm/script/helpers/packageOptions.js +0 -8
- package/npm/script/helpers/packageRegistry.d.ts +0 -7
- package/npm/script/helpers/packageRegistry.d.ts.map +0 -1
- package/npm/script/helpers/packageRegistry.js +0 -65
- package/npm/script/helpers/updateProjectConfig.d.ts +0 -2
- package/npm/script/helpers/updateProjectConfig.d.ts.map +0 -1
- package/npm/script/helpers/updateProjectConfig.js +0 -39
- package/npm/script/main.d.ts +0 -3
- package/npm/script/main.d.ts.map +0 -1
- package/npm/script/main.js +0 -98
- package/npm/script/package.json +0 -3
package/npm/package-lock.json
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nshiab/setup-data-project",
|
|
3
|
-
"version": "1.0.7",
|
|
4
|
-
"lockfileVersion": 3,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"": {
|
|
8
|
-
"name": "@nshiab/setup-data-project",
|
|
9
|
-
"version": "1.0.7",
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@clack/prompts": "^1.3.0",
|
|
13
|
-
"@deno/shim-deno": "~0.18.0"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@types/node": "^20.9.0"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"node_modules/@clack/core": {
|
|
20
|
-
"version": "1.3.0",
|
|
21
|
-
"resolved": "https://registry.npmjs.org/@clack/core/-/core-1.3.0.tgz",
|
|
22
|
-
"integrity": "sha512-xJPHpAmEQUBrXSLx0gF+q5K/IyihXpsHZcha+jB+tyahsKRK3Dxo4D0coZDewHo12NhiuzC3dTtMPbm53GEAAA==",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"fast-wrap-ansi": "^0.2.0",
|
|
26
|
-
"sisteransi": "^1.0.5"
|
|
27
|
-
},
|
|
28
|
-
"engines": {
|
|
29
|
-
"node": ">= 20.12.0"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"node_modules/@clack/prompts": {
|
|
33
|
-
"version": "1.3.0",
|
|
34
|
-
"resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.3.0.tgz",
|
|
35
|
-
"integrity": "sha512-GgcWwRCs/xPtaqlMy8qRhPnZf9vlWcWZNHAitnVQ3yk7JmSralSiq5q07yaffYE8SogtDm7zFeKccx1QNVARpw==",
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"@clack/core": "1.3.0",
|
|
39
|
-
"fast-string-width": "^3.0.2",
|
|
40
|
-
"fast-wrap-ansi": "^0.2.0",
|
|
41
|
-
"sisteransi": "^1.0.5"
|
|
42
|
-
},
|
|
43
|
-
"engines": {
|
|
44
|
-
"node": ">= 20.12.0"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"node_modules/@deno/shim-deno": {
|
|
48
|
-
"version": "0.18.2",
|
|
49
|
-
"resolved": "https://registry.npmjs.org/@deno/shim-deno/-/shim-deno-0.18.2.tgz",
|
|
50
|
-
"integrity": "sha512-oQ0CVmOio63wlhwQF75zA4ioolPvOwAoK0yuzcS5bDC1JUvH3y1GS8xPh8EOpcoDQRU4FTG8OQfxhpR+c6DrzA==",
|
|
51
|
-
"license": "MIT",
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@deno/shim-deno-test": "^0.5.0",
|
|
54
|
-
"which": "^4.0.0"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"node_modules/@deno/shim-deno-test": {
|
|
58
|
-
"version": "0.5.0",
|
|
59
|
-
"resolved": "https://registry.npmjs.org/@deno/shim-deno-test/-/shim-deno-test-0.5.0.tgz",
|
|
60
|
-
"integrity": "sha512-4nMhecpGlPi0cSzT67L+Tm+GOJqvuk8gqHBziqcUQOarnuIax1z96/gJHCSIz2Z0zhxE6Rzwb3IZXPtFh51j+w==",
|
|
61
|
-
"license": "MIT"
|
|
62
|
-
},
|
|
63
|
-
"node_modules/@types/node": {
|
|
64
|
-
"version": "20.19.39",
|
|
65
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.39.tgz",
|
|
66
|
-
"integrity": "sha512-orrrD74MBUyK8jOAD/r0+lfa1I2MO6I+vAkmAWzMYbCcgrN4lCrmK52gRFQq/JRxfYPfonkr4b0jcY7Olqdqbw==",
|
|
67
|
-
"dev": true,
|
|
68
|
-
"license": "MIT",
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"undici-types": "~6.21.0"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"node_modules/fast-string-truncated-width": {
|
|
74
|
-
"version": "3.0.3",
|
|
75
|
-
"resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz",
|
|
76
|
-
"integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==",
|
|
77
|
-
"license": "MIT"
|
|
78
|
-
},
|
|
79
|
-
"node_modules/fast-string-width": {
|
|
80
|
-
"version": "3.0.2",
|
|
81
|
-
"resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz",
|
|
82
|
-
"integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==",
|
|
83
|
-
"license": "MIT",
|
|
84
|
-
"dependencies": {
|
|
85
|
-
"fast-string-truncated-width": "^3.0.2"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
"node_modules/fast-wrap-ansi": {
|
|
89
|
-
"version": "0.2.0",
|
|
90
|
-
"resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.0.tgz",
|
|
91
|
-
"integrity": "sha512-rLV8JHxTyhVmFYhBJuMujcrHqOT2cnO5Zxj37qROj23CP39GXubJRBUFF0z8KFK77Uc0SukZUf7JZhsVEQ6n8w==",
|
|
92
|
-
"license": "MIT",
|
|
93
|
-
"dependencies": {
|
|
94
|
-
"fast-string-width": "^3.0.2"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"node_modules/isexe": {
|
|
98
|
-
"version": "3.1.5",
|
|
99
|
-
"resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",
|
|
100
|
-
"integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",
|
|
101
|
-
"license": "BlueOak-1.0.0",
|
|
102
|
-
"engines": {
|
|
103
|
-
"node": ">=18"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"node_modules/sisteransi": {
|
|
107
|
-
"version": "1.0.5",
|
|
108
|
-
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
|
|
109
|
-
"integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
|
|
110
|
-
"license": "MIT"
|
|
111
|
-
},
|
|
112
|
-
"node_modules/undici-types": {
|
|
113
|
-
"version": "6.21.0",
|
|
114
|
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
|
115
|
-
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
|
116
|
-
"dev": true,
|
|
117
|
-
"license": "MIT"
|
|
118
|
-
},
|
|
119
|
-
"node_modules/which": {
|
|
120
|
-
"version": "4.0.0",
|
|
121
|
-
"resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
|
|
122
|
-
"integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
|
|
123
|
-
"license": "ISC",
|
|
124
|
-
"dependencies": {
|
|
125
|
-
"isexe": "^3.1.1"
|
|
126
|
-
},
|
|
127
|
-
"bin": {
|
|
128
|
-
"node-which": "bin/which.js"
|
|
129
|
-
},
|
|
130
|
-
"engines": {
|
|
131
|
-
"node": "^16.13.0 || >=18.0.0"
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
package/npm/package.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@nshiab/setup-data-project",
|
|
3
|
-
"version": "1.0.7",
|
|
4
|
-
"description": "Quickly kick off your data project using the simple-data-analysis and journalism libraries.",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "https://github.com/nshiab/setup-data-project"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"main": "./script/main.js",
|
|
11
|
-
"module": "./esm/main.js",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": "./esm/main.js",
|
|
15
|
-
"require": "./script/main.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"scripts": {},
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@clack/prompts": "^1.3.0",
|
|
24
|
-
"@deno/shim-deno": "~0.18.0"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/node": "^20.9.0"
|
|
28
|
-
},
|
|
29
|
-
"_generatedBy": "dnt@dev"
|
|
30
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "./_dnt_2.shims.js";
|
|
2
|
-
export { Deno } from "@deno/shim-deno";
|
|
3
|
-
export declare const dntGlobalThis: Omit<Omit<typeof globalThis, "Deno"> & {
|
|
4
|
-
Deno: typeof dntShim.Deno;
|
|
5
|
-
}, "Deno"> & {
|
|
6
|
-
Deno: typeof dntShim.Deno;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=_dnt.shims.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAKvC,eAAO,MAAM,aAAa;;;;CAAsD,CAAC"}
|
package/npm/script/_dnt.shims.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.dntGlobalThis = exports.Deno = void 0;
|
|
37
|
-
const dntShim = __importStar(require("./_dnt_2.shims.js"));
|
|
38
|
-
const shim_deno_1 = require("@deno/shim-deno");
|
|
39
|
-
var shim_deno_2 = require("@deno/shim-deno");
|
|
40
|
-
Object.defineProperty(exports, "Deno", { enumerable: true, get: function () { return shim_deno_2.Deno; } });
|
|
41
|
-
const dntGlobals = {
|
|
42
|
-
Deno: shim_deno_1.Deno,
|
|
43
|
-
};
|
|
44
|
-
exports.dntGlobalThis = createMergeProxy(dntShim.dntGlobalThis, dntGlobals);
|
|
45
|
-
function createMergeProxy(baseObj, extObj) {
|
|
46
|
-
return new Proxy(baseObj, {
|
|
47
|
-
get(_target, prop, _receiver) {
|
|
48
|
-
if (prop in extObj) {
|
|
49
|
-
return extObj[prop];
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return baseObj[prop];
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
set(_target, prop, value) {
|
|
56
|
-
if (prop in extObj) {
|
|
57
|
-
delete extObj[prop];
|
|
58
|
-
}
|
|
59
|
-
baseObj[prop] = value;
|
|
60
|
-
return true;
|
|
61
|
-
},
|
|
62
|
-
deleteProperty(_target, prop) {
|
|
63
|
-
let success = false;
|
|
64
|
-
if (prop in extObj) {
|
|
65
|
-
delete extObj[prop];
|
|
66
|
-
success = true;
|
|
67
|
-
}
|
|
68
|
-
if (prop in baseObj) {
|
|
69
|
-
delete baseObj[prop];
|
|
70
|
-
success = true;
|
|
71
|
-
}
|
|
72
|
-
return success;
|
|
73
|
-
},
|
|
74
|
-
ownKeys(_target) {
|
|
75
|
-
const baseKeys = Reflect.ownKeys(baseObj);
|
|
76
|
-
const extKeys = Reflect.ownKeys(extObj);
|
|
77
|
-
const extKeysSet = new Set(extKeys);
|
|
78
|
-
return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
|
|
79
|
-
},
|
|
80
|
-
defineProperty(_target, prop, desc) {
|
|
81
|
-
if (prop in extObj) {
|
|
82
|
-
delete extObj[prop];
|
|
83
|
-
}
|
|
84
|
-
Reflect.defineProperty(baseObj, prop, desc);
|
|
85
|
-
return true;
|
|
86
|
-
},
|
|
87
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
88
|
-
if (prop in extObj) {
|
|
89
|
-
return Reflect.getOwnPropertyDescriptor(extObj, prop);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return Reflect.getOwnPropertyDescriptor(baseObj, prop);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
has(_target, prop) {
|
|
96
|
-
return prop in extObj || prop in baseObj;
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt_2.shims.d.ts","sourceRoot":"","sources":["../src/_dnt_2.shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAKvC,eAAO,MAAM,aAAa;;CAA2C,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dntGlobalThis = exports.Deno = void 0;
|
|
4
|
-
const shim_deno_1 = require("@deno/shim-deno");
|
|
5
|
-
var shim_deno_2 = require("@deno/shim-deno");
|
|
6
|
-
Object.defineProperty(exports, "Deno", { enumerable: true, get: function () { return shim_deno_2.Deno; } });
|
|
7
|
-
const dntGlobals = {
|
|
8
|
-
Deno: shim_deno_1.Deno,
|
|
9
|
-
};
|
|
10
|
-
exports.dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
|
|
11
|
-
function createMergeProxy(baseObj, extObj) {
|
|
12
|
-
return new Proxy(baseObj, {
|
|
13
|
-
get(_target, prop, _receiver) {
|
|
14
|
-
if (prop in extObj) {
|
|
15
|
-
return extObj[prop];
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return baseObj[prop];
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
set(_target, prop, value) {
|
|
22
|
-
if (prop in extObj) {
|
|
23
|
-
delete extObj[prop];
|
|
24
|
-
}
|
|
25
|
-
baseObj[prop] = value;
|
|
26
|
-
return true;
|
|
27
|
-
},
|
|
28
|
-
deleteProperty(_target, prop) {
|
|
29
|
-
let success = false;
|
|
30
|
-
if (prop in extObj) {
|
|
31
|
-
delete extObj[prop];
|
|
32
|
-
success = true;
|
|
33
|
-
}
|
|
34
|
-
if (prop in baseObj) {
|
|
35
|
-
delete baseObj[prop];
|
|
36
|
-
success = true;
|
|
37
|
-
}
|
|
38
|
-
return success;
|
|
39
|
-
},
|
|
40
|
-
ownKeys(_target) {
|
|
41
|
-
const baseKeys = Reflect.ownKeys(baseObj);
|
|
42
|
-
const extKeys = Reflect.ownKeys(extObj);
|
|
43
|
-
const extKeysSet = new Set(extKeys);
|
|
44
|
-
return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
|
|
45
|
-
},
|
|
46
|
-
defineProperty(_target, prop, desc) {
|
|
47
|
-
if (prop in extObj) {
|
|
48
|
-
delete extObj[prop];
|
|
49
|
-
}
|
|
50
|
-
Reflect.defineProperty(baseObj, prop, desc);
|
|
51
|
-
return true;
|
|
52
|
-
},
|
|
53
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
54
|
-
if (prop in extObj) {
|
|
55
|
-
return Reflect.getOwnPropertyDescriptor(extObj, prop);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return Reflect.getOwnPropertyDescriptor(baseObj, prop);
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
has(_target, prop) {
|
|
62
|
-
return prop in extObj || prop in baseObj;
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createFolderStructure.d.ts","sourceRoot":"","sources":["../../src/helpers/createFolderStructure.ts"],"names":[],"mappings":"AAKA,wBAAsB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,EAAE,mBA+CrE"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createFolderStructure = createFolderStructure;
|
|
4
|
-
const node_fs_1 = require("node:fs");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
|
-
const prompts_1 = require("@clack/prompts");
|
|
7
|
-
const handleFileConflict_js_1 = require("./handleFileConflict.js");
|
|
8
|
-
async function createFolderStructure(selectedPackages) {
|
|
9
|
-
const sdaFolder = "sda";
|
|
10
|
-
const folders = ["data", "helpers", "output"];
|
|
11
|
-
if (!(0, node_fs_1.existsSync)(sdaFolder)) {
|
|
12
|
-
(0, node_fs_1.mkdirSync)(sdaFolder, { recursive: true });
|
|
13
|
-
prompts_1.log.info(`Created folder ${sdaFolder}/`);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
prompts_1.log.warn(`Folder ${sdaFolder}/ already exists. Skipping creation.`);
|
|
17
|
-
}
|
|
18
|
-
for (const folder of folders) {
|
|
19
|
-
const path = (0, node_path_1.join)(sdaFolder, folder);
|
|
20
|
-
if (!(0, node_fs_1.existsSync)(path)) {
|
|
21
|
-
(0, node_fs_1.mkdirSync)(path, { recursive: true });
|
|
22
|
-
prompts_1.log.info(`Created folder ${path}/`);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
prompts_1.log.warn(`Folder ${path}/ already exists. Skipping creation.`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const mainTsPath = (0, node_path_1.join)(sdaFolder, "main.ts");
|
|
29
|
-
let mainTsContent = 'console.log("Hello simple-data-analysis!");\n';
|
|
30
|
-
if (selectedPackages.includes("@nshiab/simple-data-analysis")) {
|
|
31
|
-
mainTsContent = `import { SimpleDB } from "@nshiab/simple-data-analysis";
|
|
32
|
-
|
|
33
|
-
const sdb = new SimpleDB();
|
|
34
|
-
const table = await sdb.newTable();
|
|
35
|
-
|
|
36
|
-
// Do your magic here!
|
|
37
|
-
|
|
38
|
-
await sdb.done();
|
|
39
|
-
`;
|
|
40
|
-
}
|
|
41
|
-
const status = await (0, handleFileConflict_js_1.handleFileConflict)(mainTsPath, mainTsContent);
|
|
42
|
-
if (status === "created") {
|
|
43
|
-
prompts_1.log.info(`Created ${mainTsPath}`);
|
|
44
|
-
}
|
|
45
|
-
else if (status === "updated") {
|
|
46
|
-
prompts_1.log.info(`Updated ${mainTsPath}`);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
prompts_1.log.warn(`${mainTsPath} skipping creation.`);
|
|
50
|
-
}
|
|
51
|
-
return sdaFolder;
|
|
52
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensureAgents.d.ts","sourceRoot":"","sources":["../../src/helpers/ensureAgents.ts"],"names":[],"mappings":"AAIA,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACnC,OAAO,EAAE,MAAM,iBA+FhB"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureAgents = ensureAgents;
|
|
4
|
-
const prompts_1 = require("@clack/prompts");
|
|
5
|
-
const handleFileConflict_js_1 = require("./handleFileConflict.js");
|
|
6
|
-
const packageRegistry_js_1 = require("./packageRegistry.js");
|
|
7
|
-
async function ensureAgents(docsMapping, runtime) {
|
|
8
|
-
let journalismFunctions = "";
|
|
9
|
-
let sdaClassesAndMethods = "";
|
|
10
|
-
for (const [pkg, doc] of Object.entries(docsMapping)) {
|
|
11
|
-
const pkgConfig = packageRegistry_js_1.SUPPORTED_PACKAGES.find((p) => p.value === pkg);
|
|
12
|
-
const pkgType = pkgConfig?.type || "other";
|
|
13
|
-
if (pkgType === "journalism") {
|
|
14
|
-
const repoName = pkg.split("/")[1];
|
|
15
|
-
journalismFunctions += `\n### ${repoName}\n\n`;
|
|
16
|
-
journalismFunctions += doc
|
|
17
|
-
.split("\n")
|
|
18
|
-
.filter((line) => line.trim().startsWith("#"))
|
|
19
|
-
.filter((line) => {
|
|
20
|
-
const depth = line.match(/^#+/)?.[0].length || 0;
|
|
21
|
-
return depth >= 2; // Match ##, ###, #### etc.
|
|
22
|
-
})
|
|
23
|
-
.map((line) => line.replace(/^#+\s+/, "").trim())
|
|
24
|
-
.join("\n") + "\n";
|
|
25
|
-
}
|
|
26
|
-
else if (pkgType === "sda") {
|
|
27
|
-
sdaClassesAndMethods = doc
|
|
28
|
-
.split("\n")
|
|
29
|
-
.filter((line) => line.trim().startsWith("#"))
|
|
30
|
-
.filter((line) => {
|
|
31
|
-
const depth = line.match(/^#+/)?.[0].length || 0;
|
|
32
|
-
return depth === 2 || depth === 4;
|
|
33
|
-
})
|
|
34
|
-
.map((line) => {
|
|
35
|
-
const depth = line.match(/^#+/)?.[0].length || 0;
|
|
36
|
-
if (depth === 2) {
|
|
37
|
-
return "\n" + line.replace(/^#+\s+/, "").trim();
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return line.replace(/^#+\s+Parameters/, " - ")
|
|
41
|
-
.replace(/^#+\s+/, " - ")
|
|
42
|
-
.replaceAll("`", "");
|
|
43
|
-
}
|
|
44
|
-
})
|
|
45
|
-
.join("\n");
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
const configFile = runtime === "deno" ? "deno.json" : "package.json";
|
|
49
|
-
const runSda = runtime === "deno" ? "deno task sda" : "npm run sda";
|
|
50
|
-
const runClean = runtime === "deno" ? "deno task clean" : "npm run clean";
|
|
51
|
-
let content = `Always verify if there is a ${configFile} file in the root of the project and familiarize yourself with the scripts available in it and the libraries already installed in the project.
|
|
52
|
-
|
|
53
|
-
Always use "sda" task when available (e.g. \`${runSda}\`).
|
|
54
|
-
|
|
55
|
-
${runtime === "deno"
|
|
56
|
-
? "If it's a Deno project, you can also run `deno run -A --node-modules-dir=auto --env-file --check sda/main.ts` to test your code. Before handing off your work, run `deno lint` and `deno fmt` as well. Fix any errors or warnings triggered along the way."
|
|
57
|
-
: "If it's a Node.js project, you can also run `node --env-file=.env --experimental-strip-types --no-warnings sda/main.ts` to test your code. Before handing off your work, always fix any errors or warnings triggered along the way."}
|
|
58
|
-
|
|
59
|
-
Use the \`clean\` task (e.g. \`${runClean}\`) to remove the cache and other temporary files.
|
|
60
|
-
|
|
61
|
-
Always use "sda/main.ts" as the entry point.
|
|
62
|
-
|
|
63
|
-
If you need to create other TypeScript files, create them in the "sda/helpers" folder. Prioritize the use of helper functions to keep the code well organized and maintainable, with one helper function per file, with the file named after the function. Prioritize default exports for helper functions.
|
|
64
|
-
|
|
65
|
-
If you need to download data, always put the files in the "sda/data" folder, which is gitignored.
|
|
66
|
-
|
|
67
|
-
If you need to output data to a file, always put the file in the "sda/output" folder.
|
|
68
|
-
|
|
69
|
-
Always prioritize the use of the "journalism" and "simple-data-analysis" libraries when they are installed. These libraries can be used directly like this:
|
|
70
|
-
\`\`\`typescript
|
|
71
|
-
import { formatDate } from "@nshiab/journalism-format";
|
|
72
|
-
import { SimpleDB } from "@nshiab/simple-data-analysis";
|
|
73
|
-
\`\`\`
|
|
74
|
-
`;
|
|
75
|
-
if (journalismFunctions !== "") {
|
|
76
|
-
content += `
|
|
77
|
-
Here are the functions available in the "journalism" libraries. If one of the function might be relevant, read the complete documentation in the "./docs/" folder to properly use it.
|
|
78
|
-
${journalismFunctions}`;
|
|
79
|
-
}
|
|
80
|
-
if (sdaClassesAndMethods !== "") {
|
|
81
|
-
content += `
|
|
82
|
-
Here are the classes and their methods available in the "simple-data-analysis" library. If one of the classes or methods might be relevant, read the complete documentation at "./docs/simple-data-analysis.md" to properly use it. Remember that almost all methods are asynchronous, so you need to use \`await\` when calling them.
|
|
83
|
-
${sdaClassesAndMethods}`;
|
|
84
|
-
}
|
|
85
|
-
const status = await (0, handleFileConflict_js_1.handleFileConflict)("AGENTS.md", content);
|
|
86
|
-
if (status === "created") {
|
|
87
|
-
prompts_1.log.info("Created AGENTS.md");
|
|
88
|
-
}
|
|
89
|
-
else if (status === "updated") {
|
|
90
|
-
prompts_1.log.info("Updated AGENTS.md");
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
prompts_1.log.warn("AGENTS.md skipping creation.");
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensureEnvFile.d.ts","sourceRoot":"","sources":["../../src/helpers/ensureEnvFile.ts"],"names":[],"mappings":"AAGA,wBAAsB,aAAa,kBASlC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureEnvFile = ensureEnvFile;
|
|
4
|
-
const prompts_1 = require("@clack/prompts");
|
|
5
|
-
const handleFileConflict_js_1 = require("./handleFileConflict.js");
|
|
6
|
-
async function ensureEnvFile() {
|
|
7
|
-
const status = await (0, handleFileConflict_js_1.handleFileConflict)(".env", "");
|
|
8
|
-
if (status === "created") {
|
|
9
|
-
prompts_1.log.info("Created .env");
|
|
10
|
-
}
|
|
11
|
-
else if (status === "updated") {
|
|
12
|
-
prompts_1.log.info("Updated .env");
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
prompts_1.log.warn(".env skipping creation.");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensureGitignore.d.ts","sourceRoot":"","sources":["../../src/helpers/ensureGitignore.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,SAyB9B"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureGitignore = ensureGitignore;
|
|
4
|
-
const node_fs_1 = require("node:fs");
|
|
5
|
-
const prompts_1 = require("@clack/prompts");
|
|
6
|
-
const gitignoreEntries_js_1 = require("./gitignoreEntries.js");
|
|
7
|
-
function ensureGitignore() {
|
|
8
|
-
const path = ".gitignore";
|
|
9
|
-
let content = "";
|
|
10
|
-
let exists = false;
|
|
11
|
-
if ((0, node_fs_1.existsSync)(path)) {
|
|
12
|
-
content = (0, node_fs_1.readFileSync)(path, "utf-8");
|
|
13
|
-
exists = true;
|
|
14
|
-
}
|
|
15
|
-
const lines = content.split("\n").map((l) => l.trim());
|
|
16
|
-
const toAdd = gitignoreEntries_js_1.GITIGNORE_ENTRIES.filter((e) => !lines.includes(e));
|
|
17
|
-
if (toAdd.length > 0) {
|
|
18
|
-
const prefix = content.endsWith("\n") || content === "" ? "" : "\n";
|
|
19
|
-
const header = "\n# Added by setup-data-project\n";
|
|
20
|
-
const newContent = prefix + header + toAdd.join("\n") + "\n";
|
|
21
|
-
(0, node_fs_1.writeFileSync)(path, content + newContent);
|
|
22
|
-
if (exists) {
|
|
23
|
-
prompts_1.log.info(`Updated ${path}`);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
prompts_1.log.info(`Created ${path}`);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
else if (exists) {
|
|
30
|
-
prompts_1.log.warn(`${path} already up to date. Skipping.`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensureReadme.d.ts","sourceRoot":"","sources":["../../src/helpers/ensureReadme.ts"],"names":[],"mappings":"AAGA,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,iBAoCjD"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureReadme = ensureReadme;
|
|
4
|
-
const prompts_1 = require("@clack/prompts");
|
|
5
|
-
const handleFileConflict_js_1 = require("./handleFileConflict.js");
|
|
6
|
-
async function ensureReadme(runtime) {
|
|
7
|
-
const readmeContent = `This repository has been created with
|
|
8
|
-
[setup-data-project](https://github.com/nshiab/setup-data-project/).
|
|
9
|
-
|
|
10
|
-
It's installing
|
|
11
|
-
[simple-data-analysis](https://github.com/nshiab/simple-data-analysis) and
|
|
12
|
-
[journalism](https://github.com/nshiab/journalism) libraries, with up-to-date
|
|
13
|
-
documentation and AI agent instructions.
|
|
14
|
-
|
|
15
|
-
Here's the recommended workflow:
|
|
16
|
-
|
|
17
|
-
- Put your raw data in the \`sda/data\` folder. Note that this folder is
|
|
18
|
-
gitignored.
|
|
19
|
-
- Use the \`sda/main.ts\` file to clean and process your raw data. Write the
|
|
20
|
-
results to the \`sda/output\` folder.
|
|
21
|
-
|
|
22
|
-
When working on your project, use the following command:
|
|
23
|
-
|
|
24
|
-
- \`${runtime === "deno" ? "deno task" : "npm run"} sda\` will watch your \`sda/main.ts\` and its dependencies. Everytime
|
|
25
|
-
you'll save some changes, the data will be reprocessed.
|
|
26
|
-
- \`${runtime === "deno" ? "deno task" : "npm run"} clean\` will remove \`.sda-cache/\`, \`.journalism-cache/\` and \`.tmp/\`,
|
|
27
|
-
if present.
|
|
28
|
-
|
|
29
|
-
Have fun!`;
|
|
30
|
-
const status = await (0, handleFileConflict_js_1.handleFileConflict)("README.md", readmeContent);
|
|
31
|
-
if (status === "created") {
|
|
32
|
-
prompts_1.log.info("Created README.md");
|
|
33
|
-
}
|
|
34
|
-
else if (status === "updated") {
|
|
35
|
-
prompts_1.log.info("Updated README.md");
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
prompts_1.log.warn("README.md skipping creation.");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInstalledPackages.d.ts","sourceRoot":"","sources":["../../src/helpers/getInstalledPackages.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CA4B/C"}
|