spawnpack 0.1.21 → 0.1.22

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 (2) hide show
  1. package/dist/spawnpack.js +13 -11
  2. package/package.json +1 -1
package/dist/spawnpack.js CHANGED
@@ -1764,7 +1764,7 @@ function generatePackageJson(config, versions) {
1764
1764
  };
1765
1765
  if (config.scripting === "typescript") {
1766
1766
  packageJson.devDependencies = {
1767
- dprint: "^0.49.1",
1767
+ dprint: "^0.50.2",
1768
1768
  typescript: "^5.7.3"
1769
1769
  };
1770
1770
  }
@@ -1800,18 +1800,20 @@ function generateTsConfig(config) {
1800
1800
  }
1801
1801
  function generateDprintConfig() {
1802
1802
  return {
1803
- indentWidth: 4,
1804
- lineWidth: 160,
1805
1803
  typescript: {
1806
1804
  deno: true,
1807
- indentWidth: 4,
1808
- lineWidth: 160,
1805
+ lineWidth: 100,
1806
+ useTabs: true,
1809
1807
  "module.sortImportDeclarations": "caseSensitive",
1810
1808
  "importDeclaration.sortNamedImports": "caseSensitive"
1811
1809
  },
1810
+ json: {
1811
+ lineWidth: 100,
1812
+ useTabs: true
1813
+ },
1812
1814
  excludes: ["**/node_modules", "**/*-lock.json"],
1813
1815
  plugins: [
1814
- "https://plugins.dprint.dev/typescript-0.95.12.wasm",
1816
+ "https://plugins.dprint.dev/typescript-0.95.13.wasm",
1815
1817
  "https://plugins.dprint.dev/json-0.21.0.wasm",
1816
1818
  "https://plugins.dprint.dev/markdown-0.20.0.wasm"
1817
1819
  ]
@@ -1920,7 +1922,7 @@ function generateMainTs(config) {
1920
1922
  return `import { world } from "@minecraft/server";
1921
1923
 
1922
1924
  world.afterEvents.worldLoad.subscribe(() => {
1923
- console.warn("[${config.identifier}:${config.projectId}] Addon loaded!");
1925
+ console.warn("[${config.identifier}:${config.projectId}] Addon loaded!");
1924
1926
  });
1925
1927
  `;
1926
1928
  }
@@ -2125,7 +2127,7 @@ var RP_NAMESPACED_NESTED_DIRECTORIES = [
2125
2127
  ["textures", "items"]
2126
2128
  ];
2127
2129
  function stringifyJson(value) {
2128
- return `${JSON.stringify(value, null, 4)}
2130
+ return `${JSON.stringify(value, null, "\t")}
2129
2131
  `;
2130
2132
  }
2131
2133
  async function writeJsonFile(filePath, value) {
@@ -2221,9 +2223,9 @@ async function generateProject(config) {
2221
2223
  writeJsonFile(join(rpPath, "sounds", "sound_definitions.json"), generateSoundDefinitions()),
2222
2224
  writeJsonFile(join(rpPath, "textures", "item_texture.json"), generateItemTexture(config)),
2223
2225
  writeJsonFile(join(rpPath, "textures", "terrain_texture.json"), generateTerrainTexture(config)),
2224
- writeTextFile(join(rpPath, "textures", "flipbook_textures.json"), "[]"),
2225
- writeTextFile(join(bpPath, "texts", "languages.json"), '["en_US"]'),
2226
- writeTextFile(join(rpPath, "texts", "languages.json"), '["en_US"]'),
2226
+ writeJsonFile(join(rpPath, "textures", "flipbook_textures.json"), []),
2227
+ writeJsonFile(join(bpPath, "texts", "languages.json"), ["en_US"]),
2228
+ writeJsonFile(join(rpPath, "texts", "languages.json"), ["en_US"]),
2227
2229
  writeTextFile(join(destination, ".gitignore"), generateGitignore(config)),
2228
2230
  writeTextFile(join(destination, "README.md"), generateReadme(config))
2229
2231
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spawnpack",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Minecraft Bedrock addon project generator — scaffold your BP+RP in seconds",
5
5
  "author": "veedy-dev",
6
6
  "license": "MIT",